Compare commits

...

1 Commits

Author SHA1 Message Date
CarlOlsson 1c0d7fc45c Add DeviceBusType_MAVLINK
Signed-off-by: CarlOlsson <carlolsson.co@gmail.com>
2021-01-13 10:18:31 +01:00
2 changed files with 8 additions and 0 deletions

View File

@ -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 */

View File

@ -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";