X-CUBE-SPN11 for X-NUCLEO-IHM11M1: MC_SixStep_RESET

X-CUBE-SPN11 for X-NUCLEO-IHM11M1

X-CUBE-SPN11 for X-NUCLEO-IHM11M1
MC_SixStep_RESET

Reset all variables used for 6Step control algorithm. More...

Functions

void MC_SixStep_RESET ()
 

Detailed Description

Reset all variables used for 6Step control algorithm.

Return values
None

Function Documentation

void MC_SixStep_RESET ( void  )

Definition at line 353 of file 6Step_Lib.c.

References ADC_Bemf_CH1, ADC_Bemf_CH2, ADC_Bemf_CH3, SIXSTEP_Base_InitTypeDef::ADC_BEMF_threshold_DOWN, SIXSTEP_Base_InitTypeDef::ADC_BEMF_threshold_UP, ADC_CH_1, ADC_CH_2, ADC_CH_3, ADC_CH_4, SIXSTEP_Base_InitTypeDef::ADC_SEQ_CHANNEL, SIXSTEP_Base_InitTypeDef::ALIGN_OK, SIXSTEP_Base_InitTypeDef::ALIGNMENT, ARR_LF, SIXSTEP_Base_InitTypeDef::ARR_OK, array_completed, SIXSTEP_Base_InitTypeDef::BEMF_OK, SIXSTEP_Base_InitTypeDef::BEMF_Tdown_count, BEMF_THRSLD_DOWN, BEMF_THRSLD_UP, buffer_completed, SIXSTEP_Base_InitTypeDef::CL_READY, SIXSTEP_Base_InitTypeDef::CMD, cnt_bemf_event, constant_k, constant_multiplier_tmp, counter_ARR_Bemf, SIXSTEP_Base_InitTypeDef::Current_Reference, SIXSTEP_Base_InitTypeDef::CurrentRegular_BEMF_ch, delta, SIXSTEP_Base_InitTypeDef::demagn_counter, SIXSTEP_Base_InitTypeDef::demagn_value, El_Speed_Hz, Enable_start_button, FALSE, FILTER_DEEP, HF_TIMx, SIXSTEP_Base_InitTypeDef::HF_TIMx_ARR, SIXSTEP_Base_InitTypeDef::HF_TIMx_CCR, SIXSTEP_Base_InitTypeDef::HF_TIMx_PSC, HFBuffer, HFBufferIndex, HFBUFFERSIZE, index_adc_chn, index_align, index_ARR_step, index_array, index_motor_run, index_pot_filt, index_startup_motor, INITIAL_DEMAGN_DELAY, SIXSTEP_Base_InitTypeDef::Integral_Term_sum, SIXSTEP_Base_InitTypeDef::Ireference, LF_TIMx, SIXSTEP_Base_InitTypeDef::LF_TIMx_ARR, SIXSTEP_Base_InitTypeDef::LF_TIMx_PSC, MAX_POT_SPEED, MC_Set_PI_param(), MC_SixStep_Current_Reference_Setvalue(), MC_SixStep_Current_Reference_Start(), MC_SixStep_HF_TIMx_SetDutyCycle_CH1(), MC_SixStep_HF_TIMx_SetDutyCycle_CH2(), MC_SixStep_HF_TIMx_SetDutyCycle_CH3(), MC_SixStep_Ramp_Motor_calc(), mech_accel_hz, Mech_Speed_RPM, n_zcr_startup, NUMBER_OF_STEPS, SIXSTEP_Base_InitTypeDef::numberofitemArr, SIXSTEP_Base_InitTypeDef::NUMPOLESPAIRS, potent_filtered, SIXSTEP_Base_InitTypeDef::pulse_value, SIXSTEP_Base_InitTypeDef::Ramp_Start, SIXSTEP_PI_PARAM_InitTypeDef_t::Reference, SIXSTEP_Base_InitTypeDef::Regular_channel, Rotor_poles_pairs, SIXSTEP_Base_InitTypeDef::RUN_Motor, SIXSTEP_Base_InitTypeDef::speed_fdbk, speed_fdbk_error, SIXSTEP_Base_InitTypeDef::speed_fdbk_filtered, SPEED_LOOP_TIME, SIXSTEP_Base_InitTypeDef::Speed_Loop_Time, SIXSTEP_Base_InitTypeDef::Speed_Ref_filtered, speed_sum_pot_filt, speed_sum_sp_filt, SIXSTEP_Base_InitTypeDef::Speed_target_ramp, speed_tmp_array, speed_tmp_buffer, SIXSTEP_Base_InitTypeDef::SPEED_VALIDATED, startup_bemf_failure, STARTUP_CURRENT_REFERENCE, SIXSTEP_Base_InitTypeDef::status_prev, SIXSTEP_Base_InitTypeDef::step_position, SIXSTEP_Base_InitTypeDef::SYSCLK_frequency, T_single_step, T_single_step_first_value, TARGET_SPEED, target_speed, test_motor_run, Tick_cnt, Time_vector_prev_tmp, Time_vector_tmp, TRUE, uwTick, and SIXSTEP_Base_InitTypeDef::VALIDATION_OK.

Referenced by MC_SixStep_INIT(), and MC_StopMotor().

Generated by   doxygen 1.8.11