mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 04:31:36 +08:00
baro sim: Fix code style
This commit is contained in:
@@ -279,7 +279,7 @@ BAROSIM::init()
|
|||||||
&_orb_class_instance, (is_external()) ? ORB_PRIO_HIGH : ORB_PRIO_DEFAULT);
|
&_orb_class_instance, (is_external()) ? ORB_PRIO_HIGH : ORB_PRIO_DEFAULT);
|
||||||
|
|
||||||
if (_baro_topic == nullptr) {
|
if (_baro_topic == nullptr) {
|
||||||
PX4_ERR("failed to create sensor_baro publication");
|
PX4_ERR("failed to create sensor_baro publication");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this do..while is goto without goto */
|
/* this do..while is goto without goto */
|
||||||
@@ -664,8 +664,7 @@ BAROSIM::collect()
|
|||||||
if (_baro_topic != nullptr) {
|
if (_baro_topic != nullptr) {
|
||||||
/* publish it */
|
/* publish it */
|
||||||
orb_publish(ORB_ID(sensor_baro), _baro_topic, &report);
|
orb_publish(ORB_ID(sensor_baro), _baro_topic, &report);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
PX4_WARN("BAROSIM::collect _baro_topic not initialized");
|
PX4_WARN("BAROSIM::collect _baro_topic not initialized");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user