controller_bb_8_driver/src/lld_encoder.c
encoderRevsValue_t lldGetEncoderRevs( motorNumberValue_t number )
{
    if( number == A )
      return ( enc1_revs_cntr + enc1_tick_cntr / (float)ENC_MAX_TICK_NUM );
    else if( number == B )
      return ( enc2_revs_cntr + enc2_tick_cntr / (float)ENC_MAX_TICK_NUM );
    else if( number == C )
      return ( enc3_revs_cntr + enc3_tick_cntr / (float)ENC_MAX_TICK_NUM );

    // must be Impossible
    return 0;
}
/**
 * @brief   Get number of encoder revolutions [float]
 * @note    1 revolution = MAX_TICK_NUM ticks
 * @return  Encoder revolutions number depends on direction of rotation
 */
@brief   Get number of encoder revolutions [float]
@note    1 revolution = MAX_TICK_NUM ticks
@return  Encoder revolutions number depends on direction of rotation
@brief Get number of encoder revolutions [ float ] @note 1 revolution = MAX_TICK_NUM ticks @return Encoder revolutions number depends on direction of rotation
encoderRevsValue_t lldGetEncoderRevs( motorNumberValue_t number )
{
    if( number == A )
      return ( enc1_revs_cntr + enc1_tick_cntr / (float)ENC_MAX_TICK_NUM );
    else if( number == B )
      return ( enc2_revs_cntr + enc2_tick_cntr / (float)ENC_MAX_TICK_NUM );
    else if( number == C )
      return ( enc3_revs_cntr + enc3_tick_cntr / (float)ENC_MAX_TICK_NUM );
    return 0;
}
encoderRevsValue_t lldGetEncoderRevs ( motorNumberValue_t number ) { if ( number == A ) return ( enc1_revs_cntr + enc1_tick_cntr / ( float ) ENC_MAX_TICK_NUM ) ; else if ( number == B ) return ( enc2_revs_cntr + enc2_tick_cntr / ( float ) ENC_MAX_TICK_NUM ) ; else if ( number == C ) return ( enc3_revs_cntr + enc3_tick_cntr / ( float ) ENC_MAX_TICK_NUM ) ; return 0 ; }
@brief   Get number of encoder revolutions [float]
 @note    1 revolution = MAX_TICK_NUM ticks
 @return  Encoder revolutions number depends on direction of rotation
@brief Get number of encoder revolutions [ float ] @note 1 revolution = MAX_TICK_NUM ticks @return Encoder revolutions number depends on direction of rotation
// must be Impossible