diff options
author | Keith Packard <keithp@keithp.com> | 2011-08-13 18:30:00 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-13 18:46:12 -0700 |
commit | 41e5be32819d305c8268e6f992be91411ea13435 (patch) | |
tree | d3d8babe009e11a2a8a2a2f50b447d23fbd8acbf /src | |
parent | fa7dd04741bf3fd9cedc59ed3b45b69ef9312609 (diff) |
altos: Send serial/flight to companion board
Lets the companion log them for later matching with TeleMetrum log
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/ao.h | 2 | ||||
-rw-r--r-- | src/ao_companion.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -1587,6 +1587,8 @@ struct ao_companion_command { uint8_t command; uint8_t flight_state; uint16_t tick; + uint16_t serial; + uint16_t flight; }; struct ao_companion_setup { diff --git a/src/ao_companion.c b/src/ao_companion.c index f0ce3f12..8f23ba25 100644 --- a/src/ao_companion.c +++ b/src/ao_companion.c @@ -43,6 +43,8 @@ ao_companion_send_command(uint8_t command) ao_companion_command.command = command; ao_companion_command.flight_state = ao_flight_state; ao_companion_command.tick = ao_time(); + ao_companion_command.serial = ao_serial_number; + ao_companion_command.flight = ao_flight_number; ao_spi_send(&ao_companion_command, sizeof (ao_companion_command)); } |