mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 03:33:34 +08:00
delete baro_report (alias for sensor_baro_s)
This commit is contained in:
committed by
Lorenz Meier
parent
85c2b6307c
commit
571364c617
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user