Repository navigation
Allow DShot to send zero value to allow for AM32 initialization - #3126
Conversation
|
Wow, This is dangerous! Thank goodness I did not have a prop on. But I did learn a lot :-) However, this current code is repossessing arming safety from the TX and apparently we also have DSHOT ESCs out there that will not play safely with this type of manual control from the TX. Suggested short term solution: Suggested long term solution is to create arming safety modes for use with DSHOT: I have not had a chance to look at @frank26080115 DSHOT handling fixes yet. |
|
AM32 ESCs also have different behaviour between Dshot 0 and Dshot 48 IIRC. - Dshot 0 freewheels, Dshot 48 brakes. If my recollection is right, this could lead to undesired lack of braking at 0% throttle inputs on AM32 ESCs |
|
Please consider review of #3139 as it appears to be a good place to include both AM32 DSHOT support and arming safety fix. Thank you, -p more detail: Arming safety can be restored to user control by removing this line: However, removing this line from master will restore arming safety for some ESCs but will just disable DSHOT arming of AM32 ESCs again. |
Some ESC firmware implementations require an initial DShot command of
0(disarmed) before allowing arming.devServoOutput.cpp sent a DShot value of 0 during start:
ExpressLRS/src/lib/ServoOutput/devServoOutput.cpp
Line 220 in 2e61e33
But this value was being overwritten by DSHOT_THROTTLE_MIN in DShotRMT.cpp. This adds an additional check to see if throttle_value = 0 and prevents it from being overwritten with DSHOT_THROTTLE_MIN.