From: Keith Packard Date: Sun, 14 Aug 2011 01:30:00 +0000 (-0700) Subject: altos: Send serial/flight to companion board X-Git-Tag: 0.9.6.0~11 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=41e5be32819d305c8268e6f992be91411ea13435;ds=sidebyside altos: Send serial/flight to companion board Lets the companion log them for later matching with TeleMetrum log Signed-off-by: Keith Packard --- diff --git a/src/ao.h b/src/ao.h index b14b65f2..6a4da31e 100644 --- a/src/ao.h +++ b/src/ao.h @@ -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)); }