mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 02:43:35 +08:00
fix compile time
This commit is contained in:
@@ -72,7 +72,7 @@ if DRIVERS_UAVCAN
|
||||
|
||||
config UAVCAN_SENSOR_GNSS_FIX2
|
||||
bool "Subscribe to GPS Fix2: uavcan::equipment::gnss::Fix2"
|
||||
default n
|
||||
default y
|
||||
|
||||
config UAVCAN_SENSOR_GNSS_FIX3
|
||||
bool "Subscribe to GPS Fix3 (preferred): uavcan::equipment::gnss::Fix3"
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
#if defined(CONFIG_UAVCAN_SENSOR_FUEL_TANK_STATUS)
|
||||
#include "fuel_tank_status.hpp"
|
||||
#endif
|
||||
#if defined(CONFIG_UAVCAN_SENSOR_GNSS)
|
||||
#if defined(CONFIG_UAVCAN_SENSOR_GNSS_AUXILIARY) || defined(CONFIG_UAVCAN_SENSOR_GNSS_FIX) || defined(CONFIG_UAVCAN_SENSOR_GNSS_FIX2) || defined(CONFIG_UAVCAN_SENSOR_GNSS_FIX3)
|
||||
#include "gnss.hpp"
|
||||
#endif
|
||||
#if defined(CONFIG_UAVCAN_SENSOR_GNSS_RELATIVE)
|
||||
@@ -155,7 +155,7 @@ void IUavcanSensorBridge::make_all(uavcan::INode &node, List<IUavcanSensorBridge
|
||||
#endif
|
||||
|
||||
// GPS
|
||||
#if defined(CONFIG_UAVCAN_SENSOR_GNSS)
|
||||
#if defined(CONFIG_UAVCAN_SENSOR_GNSS_AUXILIARY) || defined(CONFIG_UAVCAN_SENSOR_GNSS_FIX) || defined(CONFIG_UAVCAN_SENSOR_GNSS_FIX2) || defined(CONFIG_UAVCAN_SENSOR_GNSS_FIX3)
|
||||
int32_t uavcan_sub_gps = 1;
|
||||
param_get(param_find("UAVCAN_SUB_GPS"), &uavcan_sub_gps);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user