We should probably add support for this to the basic firmware but until then I think a Lua script is the best option.
The rover-motor-driver.lua is a good starting point because it shows how to get the throttle output (as a value from -1 to +1) from the main code and also shows how to then output that value as a PWM. For this case we’d need two outputs though I think, one for throttle and one for the reverse.
I guess the “reverser” servo takes a bit of time to reverse the thrust? It probably physically changes the direction so we probably need to filter it and/or “debounce” it so that it doesn’t switch too often.
I’ve got a lot on my plate at the moment so I’d prefer if someone else could write the script. It’s not too complicated
@rmackay9 thanks for your reply.
I will pass this information to my friend.
From what I can understand you will need to implement min and max pwm for the servo reverse, direction, delay in ms before the mechanic part is in place.