Skip to content

Commit

Permalink
[gps_fbw] GPS_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
dewagter committed Oct 7, 2016
1 parent a2f7cf3 commit 420f3e0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sw/airborne/subsystems/intermcu/intermcu_fbw.c
Expand Up @@ -67,6 +67,11 @@ static void checkPx4RebootCommand(unsigned char b);
#endif

#ifdef USE_GPS

#ifndef IMCU_GPS_ID
#define IMCU_GPS_ID GPS_MULTI_ID
#endif

#include "subsystems/abi.h"
#include "subsystems/gps.h"
static abi_event gps_ev;
Expand All @@ -78,7 +83,7 @@ void intermcu_init(void)
pprz_transport_init(&intermcu.transport);

#if USE_GPS
AbiBindMsgGPS(ABI_BROADCAST, &gps_ev, gps_cb);
AbiBindMsgGPS(IMCU_GPS_ID, &gps_ev, gps_cb);
#endif

#ifdef BOARD_PX4IO
Expand Down

0 comments on commit 420f3e0

Please sign in to comment.