Baro: Move to generated uORB topics

This commit is contained in:
Lorenz Meier
2015-08-20 10:18:35 +02:00
parent 33a1e3127a
commit 7e24240ec3
2 changed files with 7 additions and 16 deletions
+5
View File
@@ -0,0 +1,5 @@
float32 pressure
float32 altitude
float32 temperature
uint64 timestamp
uint64 error_count
+2 -16
View File
@@ -50,22 +50,8 @@
#define BARO_BASE_DEVICE_PATH "/dev/baro"
#define BARO0_DEVICE_PATH "/dev/baro0"
/**
* baro report structure. Reads from the device must be in multiples of this
* structure.
*/
struct baro_report {
float pressure;
float altitude;
float temperature;
uint64_t timestamp;
uint64_t error_count;
};
/*
* ObjDev tag for raw barometer data.
*/
ORB_DECLARE(sensor_baro);
#include <uOrb/topics/sensor_baro.h>
#define baro_report sensor_baro_s
/*
* ioctl() definitions