geofft
10 kW
stancecoke said:geofft said:I look forward to using my new gadget for real sometime.. :wink:
you can print out ui16_current_cal_b in column 1 instead of dutycycle for example and compare it with the recent current in column three, to see why the motor pushed at standstill...
Stancecoke, I've been trying this using the printf command (main.c):-
#ifdef DIAGNOSTICS
printf("%u, %lu, %u, %u, %u, %u\r\n", ui16_current_cal_b, uint32_current_target, ui16_BatteryCurrent, ui16_PAS, ui16_sum_torque, (uint16_t) ui32_SPEED_km_h);
#endif
...but it fails to compile with this error in the cmd page:-
main.c:465: error 20: Undefined identifier 'uint32_current_target'
...I can't work out why it doesn't like 'uint32_current_target' - can you help?