mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 14:13:33 +08:00
delete accel_report (alias for sensor_accel_s)
This commit is contained in:
committed by
Lorenz Meier
parent
22c9fb7290
commit
2a83a40491
@@ -239,7 +239,7 @@ DfLsm9ds1Wrapper::~DfLsm9ds1Wrapper()
|
||||
int DfLsm9ds1Wrapper::start()
|
||||
{
|
||||
// TODO: don't publish garbage here
|
||||
accel_report accel_report = {};
|
||||
sensor_accel_s accel_report = {};
|
||||
_accel_topic = orb_advertise_multi(ORB_ID(sensor_accel), &accel_report,
|
||||
&_accel_orb_class_instance, ORB_PRIO_DEFAULT);
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ static orb_advert_t _mag_pub = nullptr; /**< compass data publication */
|
||||
static int _mag_orb_class_instance; /**< instance handle for mag devices */
|
||||
static int _params_sub; /**< parameter update subscription */
|
||||
static struct gyro_report _gyro; /**< gyro report */
|
||||
static struct accel_report _accel; /**< accel report */
|
||||
static sensor_accel_s _accel; /**< accel report */
|
||||
static struct mag_report _mag; /**< mag report */
|
||||
static struct gyro_calibration_s _gyro_sc; /**< gyro scale */
|
||||
static struct accel_calibration_s _accel_sc; /**< accel scale */
|
||||
@@ -368,7 +368,7 @@ bool create_pubs()
|
||||
{
|
||||
// initialize the reports
|
||||
memset(&_gyro, 0, sizeof(struct gyro_report));
|
||||
memset(&_accel, 0, sizeof(struct accel_report));
|
||||
memset(&_accel, 0, sizeof(sensor_accel_s));
|
||||
memset(&_mag, 0, sizeof(struct mag_report));
|
||||
|
||||
_gyro_pub = orb_advertise_multi(ORB_ID(sensor_gyro), &_gyro,
|
||||
|
||||
Reference in New Issue
Block a user