Add DeviceBusType_MAVLINK

Signed-off-by: CarlOlsson <carlolsson.co@gmail.com>
This commit is contained in:
CarlOlsson 2020-11-18 15:48:33 +01:00
parent 3834690c4b
commit 1c0d7fc45c
2 changed files with 8 additions and 0 deletions

View File

@ -163,6 +163,10 @@
#define DRV_ADC_DEVTYPE_ADS1115 0x90
#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
#endif /* _DRV_SENSOR_H */

View File

@ -147,6 +147,7 @@ public:
DeviceBusType_SPI = 2,
DeviceBusType_UAVCAN = 3,
DeviceBusType_SIMULATION = 4,
DeviceBusType_MAVLINK = 5,
};
/*
@ -192,6 +193,9 @@ public:
case DeviceBusType_SIMULATION:
return "SIMULATION";
case DeviceBusType_MAVLINK:
return "MAVLINK";
case DeviceBusType_UNKNOWN:
default:
return "UNKNOWN";