For a school project I’ve written some simple code to flash onto a Pixhawk 4 controller which controls a UAV. However, everytime I want to tune something differently I have to power off, walk up, disconnect, flash with new code, connect, and power on. I’m guessing there’s a way to flash this remotely with a RPi (preferably a Zero), but I’m not sure where to start. Is it as simple as building the code on the RPi and connecting it via USB to the Pixhawk, then SSHing into the Pi, flashing, and sending a command to restart the Pixhawk?
I don’t know enough about it and don’t have a ton of money so I’m a bit afraid of bricking it by trying a bunch of guesses, but any advice or a point in the right direction would be very much appreciated.