- This is a simple mode i want integrated into multiwii msp, until then, here is the code as patch's.
- Can i please request reservation of MSP_PASSTHRU_SERIAL 244 in MSP for this, or be assigned another number if one better suits.
It's a real time & labour saver meaning you can communicate with for example your serial connected osd (or any serial connected device) without having to disconnect it and switch your ftdi between flight controller and osd. The flight controller is switched into this mode via MSP command, that can be issued via osd gui, once activated the fc just passes data backwards and forth between serial 0 and the chosen serial port.
When in this mode, the flight controller does nothing else, and it becomes its dedicated task for latency reasons. A reboot is required to leave this mode.
Firmware upgrades are possible too, but that's where it gets a bit more complicated, as you will need hardware means to selectively switch the ftdi reset line from between the ftdi and fc to the osd instead, as the fc must be running in pass through mode at the time the sketch is uploaded, and not be in the process of rebooting from a reset command, and the osd must get the reset command instead to initiate its sketch upload mode.
Attached is the multiwii code i propose, patched against 1745, and the code for multwii osd to generate the msp command to activate it with a new button that is clicked once comport connection is established: