mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-15 20:31:36 +08:00
Add DeviceBusType_MAVLINK
Signed-off-by: CarlOlsson <carlolsson.co@gmail.com>
This commit is contained in:
@@ -163,6 +163,10 @@
|
|||||||
#define DRV_ADC_DEVTYPE_ADS1115 0x90
|
#define DRV_ADC_DEVTYPE_ADS1115 0x90
|
||||||
#define DRV_DIST_DEVTYPE_VL53L1X 0x91
|
#define DRV_DIST_DEVTYPE_VL53L1X 0x91
|
||||||
|
|
||||||
|
// Generic types for unknown MAVLINK sensors
|
||||||
|
#define DRV_GPS_DEVTYPE_MAVLINK 0x92
|
||||||
|
#define DRV_MAG_DEVTYPE_MAVLINK 0x93
|
||||||
|
|
||||||
#define DRV_DEVTYPE_UNUSED 0xff
|
#define DRV_DEVTYPE_UNUSED 0xff
|
||||||
|
|
||||||
#endif /* _DRV_SENSOR_H */
|
#endif /* _DRV_SENSOR_H */
|
||||||
|
|||||||
@@ -147,6 +147,7 @@ public:
|
|||||||
DeviceBusType_SPI = 2,
|
DeviceBusType_SPI = 2,
|
||||||
DeviceBusType_UAVCAN = 3,
|
DeviceBusType_UAVCAN = 3,
|
||||||
DeviceBusType_SIMULATION = 4,
|
DeviceBusType_SIMULATION = 4,
|
||||||
|
DeviceBusType_MAVLINK = 5,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -192,6 +193,9 @@ public:
|
|||||||
case DeviceBusType_SIMULATION:
|
case DeviceBusType_SIMULATION:
|
||||||
return "SIMULATION";
|
return "SIMULATION";
|
||||||
|
|
||||||
|
case DeviceBusType_MAVLINK:
|
||||||
|
return "MAVLINK";
|
||||||
|
|
||||||
case DeviceBusType_UNKNOWN:
|
case DeviceBusType_UNKNOWN:
|
||||||
default:
|
default:
|
||||||
return "UNKNOWN";
|
return "UNKNOWN";
|
||||||
|
|||||||
Reference in New Issue
Block a user