stancecoke
1 MW
I've already updated the feature_torque_senor branch, you have to edit the config.h to #define THROTTLE instead of #define TORQUESENSOR.
I've tested just the switch from SVM 6 steps to SVM 127 steps. That worked with no problems.
Perhaps you can try to switch from SVM 6 steps to SVM 8 steps first.
edit: just checked with excel, the formula doesn't work in the espected way. It is safer to use
If this works you can increase steps to 16,32 etc. slowly.
This shoud avoid, that the rotor accelerates too much in the first electric revolution with angle interpolation.
Regards
stancecoke
I've tested just the switch from SVM 6 steps to SVM 127 steps. That worked with no problems.
Perhaps you can try to switch from SVM 6 steps to SVM 8 steps first.
Code:
ui8_interpolation_angle = (uint8_t) ((ui16_PWM_cycles_counter << 3) / (ui16_PWM_cycles_counter_total>>5));
edit: just checked with excel, the formula doesn't work in the espected way. It is safer to use
Code:
ui16_TEMP=ui16_PWM_cycles_counter >>3;
ui16_TEMP=ui16_TEMP<<3
ui8_interpolation_angle = (uint8_t) ((ui16_TEMP<<7) / (ui16_PWM_cycles_counter_total>>1));
If this works you can increase steps to 16,32 etc. slowly.
This shoud avoid, that the rotor accelerates too much in the first electric revolution with angle interpolation.
Regards
stancecoke