delete baro_report (alias for sensor_baro_s)

This commit is contained in:
Daniel Agar
2018-11-06 07:43:43 +08:00
committed by Lorenz Meier
parent 85c2b6307c
commit 571364c617
16 changed files with 38 additions and 39 deletions
+3 -3
View File
@@ -99,7 +99,7 @@ protected:
ringbuffer::RingBuffer *_reports;
/* last report */
struct baro_report report;
sensor_baro_s report;
orb_advert_t _baro_topic;
int _orb_class_instance;
@@ -162,7 +162,7 @@ int
BAROSIM::init()
{
int ret;
struct baro_report brp = {};
sensor_baro_s brp = {};
ret = VirtDevObj::init();
@@ -172,7 +172,7 @@ BAROSIM::init()
}
/* allocate basic report buffers */
_reports = new ringbuffer::RingBuffer(2, sizeof(baro_report));
_reports = new ringbuffer::RingBuffer(2, sizeof(sensor_baro_s));
if (_reports == nullptr) {
PX4_ERR("can't get memory for reports");
+1 -1
View File
@@ -1061,7 +1061,7 @@ int Simulator::publish_sensor_topics(mavlink_hil_sensor_t *imu)
/* baro */
{
struct baro_report baro = {};
sensor_baro_s baro = {};
baro.timestamp = timestamp;
baro.pressure = imu->abs_pressure;