Is it possible to erase the onboard mission upon boot with some commands on the SDcard? Sometime’s I’d like to guarantee the autopilot does not have an old mission on it when I boot it up and be forced to upload a new mission after boot. If so, can anyone point me in the direction of what commands could be used and where?
I don’t have a written out solution for your problem, but check this out.
http://nuttx.org/doku.php?id=documentation:nuttshell
Section 1.8 and Section 2.51
There’s almost certainly a way in nuttX to check a directory to delete/check whatever file it is that would contain that information by modifying that rCS script located in /src/Firmware/ROMFS/px4fmu_common/init.d
You’d just have to do some digging into nuttx I imagine.