summaryrefslogtreecommitdiff
path: root/src/ao_companion.c
Commit message (Collapse)AuthorAge
* altos: wait 10s for companion to bootKeith Packard2011-08-13
| | | | | | | In case the companion is delayed while booting, retry the setup 10 times with a 1s delay between tries. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Send serial/flight to companion boardKeith Packard2011-08-13
| | | | | | Lets the companion log them for later matching with TeleMetrum log Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Send SPI message at flight state changesKeith Packard2011-08-13
| | | | | | | Get the companion board starting its data logging as soon as possible after boost starts. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Check for companion init packet validity was bustedKeith Packard2011-08-13
| | | | | | | Was using board_id == ~board_id instead of board_id == ~board_id_inverse. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: add the 'L' command to show the status of a linked companion boardKeith Packard2011-08-13
| | | | | | | This prints out whether there is a board connected, along with the various values fetched from it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make sure companion task exits cleanly when doneKeith Packard2011-08-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Put SPI in slower mode when talking to companion boardKeith Packard2011-08-13
| | | | | | | | | The AVR CPU on the other side just can't go very fast. This reduces the SPI clock by a factor of 16, just under 200kHz. As the companion commands are reasonably short, this shouldn't have a huge effect on overall SPI utilization. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add SPI-based companion board supportKeith Packard2011-08-13
This sends current flight state information and retrieves companion data to include in telemetry. Signed-off-by: Keith Packard <keithp@keithp.com>