mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 02:43:33 +08:00
delete gyro_report (alias for sensor_gyro_s)
This commit is contained in:
committed by
Lorenz Meier
parent
42f9aa6e43
commit
acc24da0c2
@@ -249,7 +249,7 @@ int DfLsm9ds1Wrapper::start()
|
||||
}
|
||||
|
||||
// TODO: don't publish garbage here
|
||||
gyro_report gyro_report = {};
|
||||
sensor_gyro_s gyro_report = {};
|
||||
_gyro_topic = orb_advertise_multi(ORB_ID(sensor_gyro), &gyro_report,
|
||||
&_gyro_orb_class_instance, ORB_PRIO_DEFAULT);
|
||||
|
||||
@@ -618,8 +618,8 @@ int DfLsm9ds1Wrapper::_publish(struct imu_sensor_data &data)
|
||||
|
||||
perf_begin(_publish_perf);
|
||||
|
||||
accel_report accel_report = {};
|
||||
gyro_report gyro_report = {};
|
||||
sensor_accel_s accel_report = {};
|
||||
sensor_gyro_s gyro_report = {};
|
||||
mag_report mag_report = {};
|
||||
|
||||
accel_report.timestamp = gyro_report.timestamp = hrt_absolute_time();
|
||||
|
||||
@@ -488,8 +488,8 @@ int DfMPU6050Wrapper::_publish(struct imu_sensor_data &data)
|
||||
|
||||
perf_begin(_publish_perf);
|
||||
|
||||
accel_report accel_report = {};
|
||||
gyro_report gyro_report = {};
|
||||
sensor_accel_s accel_report = {};
|
||||
sensor_gyro_s gyro_report = {};
|
||||
|
||||
accel_report.timestamp = gyro_report.timestamp = hrt_absolute_time();
|
||||
|
||||
|
||||
@@ -285,7 +285,7 @@ DfMpu9250Wrapper::~DfMpu9250Wrapper()
|
||||
int DfMpu9250Wrapper::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);
|
||||
|
||||
@@ -295,7 +295,7 @@ int DfMpu9250Wrapper::start()
|
||||
}
|
||||
|
||||
// TODO: don't publish garbage here
|
||||
gyro_report gyro_report = {};
|
||||
sensor_gyro_s gyro_report = {};
|
||||
_gyro_topic = orb_advertise_multi(ORB_ID(sensor_gyro), &gyro_report,
|
||||
&_gyro_orb_class_instance, ORB_PRIO_DEFAULT);
|
||||
|
||||
@@ -612,8 +612,8 @@ int DfMpu9250Wrapper::_publish(struct imu_sensor_data &data)
|
||||
_update_mag_calibration();
|
||||
}
|
||||
|
||||
accel_report accel_report = {};
|
||||
gyro_report gyro_report = {};
|
||||
sensor_accel_s accel_report = {};
|
||||
sensor_gyro_s gyro_report = {};
|
||||
mag_report mag_report = {};
|
||||
|
||||
accel_report.timestamp = gyro_report.timestamp = hrt_absolute_time();
|
||||
|
||||
@@ -96,7 +96,7 @@ static int _accel_orb_class_instance; /**< instance handle for accel devi
|
||||
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 sensor_gyro_s _gyro; /**< gyro report */
|
||||
static sensor_accel_s _accel; /**< accel report */
|
||||
static struct mag_report _mag; /**< mag report */
|
||||
static struct gyro_calibration_s _gyro_sc; /**< gyro scale */
|
||||
@@ -367,7 +367,7 @@ void parameters_init()
|
||||
bool create_pubs()
|
||||
{
|
||||
// initialize the reports
|
||||
memset(&_gyro, 0, sizeof(struct gyro_report));
|
||||
memset(&_gyro, 0, sizeof(sensor_gyro_s));
|
||||
memset(&_accel, 0, sizeof(sensor_accel_s));
|
||||
memset(&_mag, 0, sizeof(struct mag_report));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user