bluerobotics / companion

Companion computer startup scripts and examples
https://www.ardusub.com/operators-manual/companion-web.html
GNU General Public License v3.0
48 stars 54 forks source link

Do not allow Firmware update if Pixhawk is not detected. #253

Closed Williangalvani closed 2 years ago

Williangalvani commented 5 years ago

I just tried to update without it connected and it gave me this error:

Attempting upload from file /home/pi/companion/fw/ArduSub-v2.px4
Stopping mavproxy
Flashing Pixhawk...
Loaded firmware for 9,0, size: 830240 bytes, waiting for the bootloader...
Timed out trying to catch bootloader!
Please try again.
Waiting to restart mavproxy...
Restarting mavproxy
Complete!

We should not even allow the firmware changes without a device detected.