mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
Fix code style
This commit is contained in:
committed by
Julian Oes
parent
28de6d2cbd
commit
2197bf518d
@@ -533,18 +533,18 @@ int DfMPU6050Wrapper::_publish(struct imu_sensor_data &data)
|
|||||||
if (!(m_pub_blocked)) {
|
if (!(m_pub_blocked)) {
|
||||||
|
|
||||||
if (_gyro_topic == nullptr) {
|
if (_gyro_topic == nullptr) {
|
||||||
_gyro_topic = orb_advertise_multi(ORB_ID(sensor_gyro), &gyro_report,
|
_gyro_topic = orb_advertise_multi(ORB_ID(sensor_gyro), &gyro_report,
|
||||||
&_gyro_orb_class_instance, ORB_PRIO_DEFAULT);
|
&_gyro_orb_class_instance, ORB_PRIO_DEFAULT);
|
||||||
}
|
|
||||||
else {
|
} else {
|
||||||
orb_publish(ORB_ID(sensor_gyro), _gyro_topic, &gyro_report);
|
orb_publish(ORB_ID(sensor_gyro), _gyro_topic, &gyro_report);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_accel_topic == nullptr) {
|
if (_accel_topic == nullptr) {
|
||||||
_accel_topic = orb_advertise_multi(ORB_ID(sensor_accel), &accel_report,
|
_accel_topic = orb_advertise_multi(ORB_ID(sensor_accel), &accel_report,
|
||||||
&_accel_orb_class_instance, ORB_PRIO_DEFAULT);
|
&_accel_orb_class_instance, ORB_PRIO_DEFAULT);
|
||||||
}
|
|
||||||
else {
|
} else {
|
||||||
orb_publish(ORB_ID(sensor_accel), _accel_topic, &accel_report);
|
orb_publish(ORB_ID(sensor_accel), _accel_topic, &accel_report);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user