rland93 / ollyfc

A small rust-embedded flight computer. RTIC, FrSky protocols, and STM32F4 hardware.
Mozilla Public License 2.0
1 stars 0 forks source link

System Modes #3

Closed rland93 closed 9 months ago

rland93 commented 9 months ago

Create system modes for flight mode and data download mode.

Flight mode:

The transition between the two modes occurs when the USB port is connected to a host PC. We can use interrupts to accomplish this, I think?

Data mode:

rland93 commented 9 months ago

OK, I think the way I do this is just checking for a USB device at boot. If there is a USB device present, I will boot into data mode, if not I boot into flight mode.