Hey Ardu-people!
I have been experimenting with using Rover for a project I am working on, and have run into a wall of sorts regarding driving a rover upside-down / inverted. Specifically, I want to invert my RC controls whenever my rover is upside down.
There’s a companion computer onboard, so I’m able to process the telemetry and understand the vehicle’s orientation. This is used to do several things including flipping the onboard camera stream to match the “right-side-up” orientation when the vehicle is “upside-down”. The issue I’m having is with respect to changing RC parameters without restarting the flight controller.
I have tried:
- using the
SERVOx_REVERSED
parameter to reverse the output of my left and right wheels when upside down. This does not work because when the servo is reversed I simply start moving backwards. Oops! - I am not able to update my flight controller’s
SERVOx_FUNCTION
to swap throttle left and throttle right because this requires a autopilot reboot.
Currently considering some type of RC input remapping, where the min and max PWM for the steering input is reversed. Not sure how to go about implementing this, so I’d appreciate any help folks here can provide.
Thanks,
Aaditya