olliw42 / mLRS

2.4 GHz & 915/868 MHz & 433 MHz/70 cm LoRa based telemetry and radio link for remote controlled vehicles
GNU General Public License v3.0
266 stars 55 forks source link

tools, py script to flash receivers via fc passthru, based on brad's #187

Open olliw42 opened 1 month ago

olliw42 commented 1 month ago

title says it replaces @brad112358 's https://github.com/olliw42/mLRS/pull/186 requires @brad112358 's PR to ArduPilot https://github.com/ArduPilot/ardupilot/pull/27152

brad112358 commented 1 month ago

Are we actually allowed to redistribute this ST code?

brad112358 commented 1 month ago

Never mind, it looks like it is allowed.

brad112358 commented 1 month ago

Another thought... Can this same script be expanded to do the passthrough setup and perhaps the flash for esp devices as well? Just need to hold the boot button on power up. Perhaps detect esp device automatically somehow and choose appropriate flashing tool (by noticing reboot shutdown is not supported?)

olliw42 commented 1 month ago

I was thinking about it too I just don't see how this would be reasonably possibly with the esp ... I mean setting ap in passthru, easy, but then?? if you hold down button at power up ... not sure if the boot would reliably survive until the ap is set into passthru, I would think any e.g. heartbeat from the fc would confuse it to test the simplest would be to just add a -esp parameter

brad112358 commented 1 month ago

For some reason, the mavlink messages did not present a problem when I tested passthrough with programming the esp receiver I have integrated into my flight controllers. If it works with manual config of passthrough via QGC, it should work with the script.

olliw42 commented 1 month ago

add an option to only do passthru to the script for you to play with and test :)

olliw42 commented 1 month ago

you can give it a -esp option or in the gui uncheck systemboot