mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 04:21:35 +08:00
delete gyro_report (alias for sensor_gyro_s)
This commit is contained in:
committed by
Lorenz Meier
parent
42f9aa6e43
commit
acc24da0c2
@@ -209,7 +209,7 @@ ADIS16477::init()
|
||||
PX4_ERR("ADVERT FAIL");
|
||||
}
|
||||
|
||||
gyro_report grp = {};
|
||||
sensor_gyro_s grp = {};
|
||||
_gyro->_gyro_topic = orb_advertise_multi(ORB_ID(sensor_gyro), &grp, &_gyro->_gyro_orb_class_instance, ORB_PRIO_MAX);
|
||||
|
||||
if (_gyro->_gyro_topic == nullptr) {
|
||||
@@ -622,7 +622,7 @@ ADIS16477::publish_accel(const ADISReport &report)
|
||||
bool
|
||||
ADIS16477::publish_gyro(const ADISReport &report)
|
||||
{
|
||||
gyro_report grb = {};
|
||||
sensor_gyro_s grb = {};
|
||||
grb.timestamp = hrt_absolute_time();
|
||||
grb.device_id = _gyro->_device_id.devid;
|
||||
grb.error_count = perf_event_count(_bad_transfers);
|
||||
|
||||
Reference in New Issue
Block a user