mirror of https://github.com/ArduPilot/ardupilot
AP_GPS: add and use AP_GPS_DRONECAN_ENABLED
This commit is contained in:
parent
1723cca023
commit
00bc4a9e8b
|
@ -16,9 +16,12 @@
|
|||
//
|
||||
// UAVCAN GPS driver
|
||||
//
|
||||
#include "AP_GPS_config.h"
|
||||
|
||||
#if AP_GPS_DRONECAN_ENABLED
|
||||
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
|
||||
#if HAL_ENABLE_DRONECAN_DRIVERS
|
||||
#include "AP_GPS_DroneCAN.h"
|
||||
|
||||
#include <AP_CANManager/AP_CANManager.h>
|
||||
|
@ -891,4 +894,4 @@ bool AP_GPS_DroneCAN::instance_exists(const AP_DroneCAN* ap_dronecan)
|
|||
}
|
||||
#endif // AP_DRONECAN_SEND_GPS
|
||||
|
||||
#endif // HAL_ENABLE_DRONECAN_DRIVERS
|
||||
#endif // AP_GPS_DRONECAN_ENABLED
|
||||
|
|
|
@ -18,9 +18,12 @@
|
|||
//
|
||||
#pragma once
|
||||
|
||||
#include "AP_GPS_config.h"
|
||||
|
||||
#if AP_GPS_DRONECAN_ENABLED
|
||||
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
#if HAL_ENABLE_DRONECAN_DRIVERS
|
||||
#include "AP_GPS.h"
|
||||
#include "GPS_Backend.h"
|
||||
#include "RTCM3_Parser.h"
|
||||
|
@ -147,4 +150,5 @@ private:
|
|||
ByteBuffer *buf;
|
||||
} _rtcm_stream;
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif // AP_GPS_DRONECAN_ENABLED
|
||||
|
|
|
@ -10,6 +10,10 @@
|
|||
#define AP_GPS_BACKEND_DEFAULT_ENABLED AP_GPS_ENABLED
|
||||
#endif
|
||||
|
||||
#ifndef AP_GPS_DRONECAN_ENABLED
|
||||
#define AP_GPS_DRONECAN_ENABLED HAL_ENABLE_DRONECAN_DRIVERS
|
||||
#endif
|
||||
|
||||
#ifndef AP_GPS_ERB_ENABLED
|
||||
#define AP_GPS_ERB_ENABLED AP_GPS_BACKEND_DEFAULT_ENABLED
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue