summaryrefslogtreecommitdiff
path: root/src/drivers/ao_lco_func.c
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2017-04-22 23:42:23 -0600
committerBdale Garbee <bdale@gag.com>2017-04-22 23:42:23 -0600
commitd75351c5a07241bcbb951758796b4f639ace6b1f (patch)
tree57833e2bb82b87ad266de1476d161aa640d96ed3 /src/drivers/ao_lco_func.c
parent6cfd9411026d536b5b75098b8c9ec3ceb3d945aa (diff)
implement static test start and stop protocol for telefiretwo+telebt
Diffstat (limited to 'src/drivers/ao_lco_func.c')
-rw-r--r--src/drivers/ao_lco_func.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/ao_lco_func.c b/src/drivers/ao_lco_func.c
index 862cb1be..92b344ed 100644
--- a/src/drivers/ao_lco_func.c
+++ b/src/drivers/ao_lco_func.c
@@ -47,7 +47,7 @@ ao_lco_query(uint16_t box, struct ao_pad_query *query, uint16_t *tick_offset)
ao_mutex_get(&ao_lco_mutex);
command.tick = ao_time();
command.box = box;
- command.cmd = AO_LAUNCH_QUERY;
+ command.cmd = AO_PAD_QUERY;
command.channels = 0;
ao_radio_cmac_send(&command, sizeof (command));
sent_time = ao_time();
@@ -64,19 +64,19 @@ ao_lco_arm(uint16_t box, uint8_t channels, uint16_t tick_offset)
ao_mutex_get(&ao_lco_mutex);
command.tick = ao_time() - tick_offset;
command.box = box;
- command.cmd = AO_LAUNCH_ARM;
+ command.cmd = AO_PAD_ARM;
command.channels = channels;
ao_radio_cmac_send(&command, sizeof (command));
ao_mutex_put(&ao_lco_mutex);
}
void
-ao_lco_ignite(void)
+ao_lco_ignite(uint8_t cmd)
{
ao_mutex_get(&ao_lco_mutex);
command.tick = 0;
command.box = 0;
- command.cmd = AO_LAUNCH_FIRE;
+ command.cmd = cmd;
command.channels = 0;
ao_radio_cmac_send(&command, sizeof (command));
ao_mutex_put(&ao_lco_mutex);