Skip to content

Commit

Permalink
[fbw_datalink] Call Fixedwing-style
Browse files Browse the repository at this point in the history
  • Loading branch information
dewagter authored and flixr committed Oct 6, 2014
1 parent bb455f9 commit 96b3ccc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sw/airborne/firmwares/fixedwing/main_fbw.c
Expand Up @@ -56,6 +56,10 @@
#include "link_mcu_usart.h"
#endif

#ifdef FBW_DATALINK
#include "fbw_datalink.h"
#endif

uint8_t fbw_mode;

#include "inter_mcu.h"
Expand Down Expand Up @@ -285,12 +289,19 @@ void event_task_fbw( void) {
#endif /* MCU_SPI_LINK */
#endif /* INTER_MCU */

#ifdef FBW_DATALINK
FbwDataLinkEvent();
#endif
}


/************* PERIODIC ******************************************************/
void periodic_task_fbw( void ) {

#ifdef FBW_DATALINK
FbwDataLinkPeriodic();
#endif

#ifdef RADIO_CONTROL
radio_control_periodic_task();
if (fbw_mode == FBW_MODE_MANUAL && radio_control.status == RC_REALLY_LOST) {
Expand Down

0 comments on commit 96b3ccc

Please sign in to comment.