mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-06 01:20:36 +08:00
distance sensors: Improve variable naming / description
This commit is contained in:
committed by
Paul Riseborough
parent
35bde5c9fc
commit
da2fbf60b5
+1
-1
@@ -162,7 +162,7 @@ int DfBebopRangeFinderWrapper::_publish(struct bebop_range &data)
|
||||
|
||||
distance_data.covariance = 1.0f; // TODO set correct value
|
||||
|
||||
distance_data.signal_strength = -1;
|
||||
distance_data.signal_quality = -1;
|
||||
|
||||
if (_range_topic == nullptr) {
|
||||
_range_topic = orb_advertise_multi(ORB_ID(distance_sensor), &distance_data,
|
||||
|
||||
@@ -169,7 +169,7 @@ int DfISL29501Wrapper::_publish(struct range_sensor_data &data)
|
||||
|
||||
d.covariance = 0.0f;
|
||||
|
||||
d.signal_strength = -1;
|
||||
d.signal_quality = -1;
|
||||
|
||||
if (_range_topic == nullptr) {
|
||||
_range_topic = orb_advertise_multi(ORB_ID(distance_sensor), &d,
|
||||
|
||||
@@ -175,7 +175,7 @@ int DfTROneWrapper::_publish(struct range_sensor_data &data)
|
||||
|
||||
d.covariance = 0.0f;
|
||||
|
||||
d.signal_strength = -1;
|
||||
d.signal_quality = -1;
|
||||
|
||||
if (_range_topic == nullptr) {
|
||||
_range_topic = orb_advertise_multi(ORB_ID(distance_sensor), &d,
|
||||
|
||||
Reference in New Issue
Block a user