controller_bb_8_driver/src/lld_encoder.c
void lldEncoderReset( motorNumberValue_t number )
{
    if( number == A )
    {
        enc1_tick_cntr       = 0;
        enc1_revs_cntr       = 0;
        enc1_dir_state       = 0;
    }
    else if( number == B )
    {
        enc2_tick_cntr       = 0;
        enc2_revs_cntr       = 0;
        enc2_dir_state       = 0;
    }
    else if( number == C )
    {
        enc3_tick_cntr       = 0;
        enc3_revs_cntr       = 0;
        enc3_dir_state       = 0;
    }
}
/*
 * @brief   Reset all variable for lld-encoder unit
 */
@brief   Reset all variable for lld-encoder unit
@brief Reset all variable for lld - encoder unit
void lldEncoderReset( motorNumberValue_t number )
{
    if( number == A )
    {
        enc1_tick_cntr       = 0;
        enc1_revs_cntr       = 0;
        enc1_dir_state       = 0;
    }
    else if( number == B )
    {
        enc2_tick_cntr       = 0;
        enc2_revs_cntr       = 0;
        enc2_dir_state       = 0;
    }
    else if( number == C )
    {
        enc3_tick_cntr       = 0;
        enc3_revs_cntr       = 0;
        enc3_dir_state       = 0;
    }
}
void lldEncoderReset ( motorNumberValue_t number ) { if ( number == A ) { enc1_tick_cntr = 0 ; enc1_revs_cntr = 0 ; enc1_dir_state = 0 ; } else if ( number == B ) { enc2_tick_cntr = 0 ; enc2_revs_cntr = 0 ; enc2_dir_state = 0 ; } else if ( number == C ) { enc3_tick_cntr = 0 ; enc3_revs_cntr = 0 ; enc3_dir_state = 0 ; } }
@brief   Reset all variable for lld-encoder unit
@brief Reset all variable for lld - encoder unit