Open Cirromulus opened 4 years ago
Agree.
there was a lot of learning going on at the time. I think we found that over 600 started to 'break' things.... i.e. if you took the PWM past this point, at a hardware level things started to break down (involved look at ST docs required!).
Hi there! While using the protocol, some questions turned up. For example: The int32_t max_power parameter in protocol.h:50 is commented as
// max speed in this mode
, which seems like a copy-paste error. The parameter is also used in the c++ interface.It seems as if max_power is the PWM-Value clamp (from main.c:551) ranging from 0-1000 which should actually be 1024 (10 bit PWM):
CLAMP(pwms[i] + pwm, -SpeedData.speed_max_power, SpeedData.speed_max_power);
This is somewhat conflicting with protocolfunctions.h:78:I am not asking for wiki or doxygen-style documentation. For me it would be enough if funtions or defines had small and consistent comments.
The same issue would be for bipropellant-hoverboard-api, but I did not want to duplicate this issue.
Thanks