From 1d11a60183cf118b1e7e679bebd4865d8cc355b5 Mon Sep 17 00:00:00 2001 From: Christophe De Wagter Date: Thu, 29 Oct 2015 21:00:53 +0100 Subject: [PATCH] test airfram --- conf/airframes/TUDelft/airframes/test.xml | 237 +++++++++++++++++++++ sw/airborne/subsystems/intermcu/intermcu.c | 7 + 2 files changed, 244 insertions(+) create mode 100644 conf/airframes/TUDelft/airframes/test.xml diff --git a/conf/airframes/TUDelft/airframes/test.xml b/conf/airframes/TUDelft/airframes/test.xml new file mode 100644 index 00000000000..3811973103d --- /dev/null +++ b/conf/airframes/TUDelft/airframes/test.xml @@ -0,0 +1,237 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ +
+ + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + +
+ +
+ + + + + + +
+ +
+ + + + + +
+ +
+ + + +
+ +
+ + + + +
+ +
diff --git a/sw/airborne/subsystems/intermcu/intermcu.c b/sw/airborne/subsystems/intermcu/intermcu.c index 57480b45168..af28be72a8a 100644 --- a/sw/airborne/subsystems/intermcu/intermcu.c +++ b/sw/airborne/subsystems/intermcu/intermcu.c @@ -378,6 +378,11 @@ void intermcu_on_rc_frame(void) InterMcuSend_INTERMCU_RADIO(fbw_state->channels); } +void intermcu_send_status(void) +{ + // Send Status +} + #endif @@ -386,6 +391,8 @@ struct InterMCU inter_mcu; void intermcu_periodic(void) { + RunOnceEvery(25, intermcu_send_status()); + if (inter_mcu.time_since_last_frame >= INTERMCU_LOST_CNT) { inter_mcu.status = INTERMCU_LOST; } else {