summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-08-13 18:30:00 -0700
committerKeith Packard <keithp@keithp.com>2011-08-13 18:46:12 -0700
commit41e5be32819d305c8268e6f992be91411ea13435 (patch)
treed3d8babe009e11a2a8a2a2f50b447d23fbd8acbf /src
parentfa7dd04741bf3fd9cedc59ed3b45b69ef9312609 (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.h2
-rw-r--r--src/ao_companion.c2
2 files changed, 4 insertions, 0 deletions
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));
}