mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +08:00
msg: change sensor device ID's to signed integers
Required to use driver class instance as surrogate sensor ID
This commit is contained in:
committed by
Lorenz Meier
parent
0485c2b94a
commit
60c12aaa36
@@ -15,4 +15,4 @@ int16 y_raw
|
|||||||
int16 z_raw
|
int16 z_raw
|
||||||
int16 temperature_raw
|
int16 temperature_raw
|
||||||
|
|
||||||
uint32 device_id # unique device ID for the sensor that does not change between power cycles
|
int32 device_id # unique device ID for the sensor that does not change between power cycles
|
||||||
|
|||||||
+1
-1
@@ -2,4 +2,4 @@ float32 pressure # static pressure measurement in millibar
|
|||||||
float32 altitude # ISA pressure altitude in meters
|
float32 altitude # ISA pressure altitude in meters
|
||||||
float32 temperature # static temperature measurement in deg C
|
float32 temperature # static temperature measurement in deg C
|
||||||
uint64 error_count
|
uint64 error_count
|
||||||
uint32 device_id # Sensor ID that must be unique for each baro sensor and must not change
|
int32 device_id # Sensor ID that must be unique for each baro sensor and must not change
|
||||||
|
|||||||
+1
-1
@@ -15,4 +15,4 @@ int16 y_raw
|
|||||||
int16 z_raw
|
int16 z_raw
|
||||||
int16 temperature_raw
|
int16 temperature_raw
|
||||||
|
|
||||||
uint32 device_id # unique device ID for the sensor that does not change between power cycles
|
int32 device_id # unique device ID for the sensor that does not change between power cycles
|
||||||
|
|||||||
Reference in New Issue
Block a user