You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stancecoke edited this page Jun 10, 2023
·
7 revisions
If you can't get your system running, please flash the controller with display type "Debug" setting and look at the UART data, the controller is sending @56000 BAUD.
Common fault: the throttle offset value is too low, the controller hangs in the while loop at start up: while(adcData[1]>THROTTLE_OFFSET) (recently line 544 of the main.c)
To get basic information about relevant paramaters edit line 1045 (recently) to:
adcData[1]: ADC raw data of the throttle input adcData[6]: ADC raw data of the AI1 input, may be used as torque signal input uint32_torque_cumulated>>5: torque signal averaged over one crank revolution MS.i_q_setpoint: setpoint for motor current iq uint32_PAS: duratiaon between two PAS pulses, must decrease with faster turning cranks. int32_temp_current_target: temporary value for iq during internal calculations MS.i_d: recent value of motor current id (is controlled to be zero, as long as no field weakening is wanted) MS.i_q: recent value of motor current iq, this part is directly proportional to the motor torque SystemState: Shows the state of the system, zero means PWM is off.