New user here, and very grateful for the wealth of information on these forums. I am using the Solo as a mobile platform for a sensor that I am controlling using a raspberry pi via Mavlink. I have written a script to control the sensor through SSH via my phone or laptop, as long as the rpi is connected to the controller-broadcasted wifi. Currently, the program runs by activation on the phone/laptop, which sends the drone into an autonomous flight across several GPS points. At each point it hovers and triggers the sensor to take measurements. Upon completion of the list of points it returns home. I would like to know if it is possible to reprogram one of the controller buttons to trigger the sensor activation, thereby allowing me to fly manually and take measurements on a given point with a simple button press, instead of having to hover and type commands.
The rpi is connected to the drone through a USB directly connected to the Pixhawk (stock 2.0). I read on another thread that it is possible to reprogram the controller buttons to drive servo motors using PWM, but I am not sure if I can send some kind of command that the rpi could detect through the USB? Any advice or suggestions would be greatly appreciated.
The rpi is connected to the drone through a USB directly connected to the Pixhawk (stock 2.0). I read on another thread that it is possible to reprogram the controller buttons to drive servo motors using PWM, but I am not sure if I can send some kind of command that the rpi could detect through the USB? Any advice or suggestions would be greatly appreciated.