mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 04:03:34 +08:00
LL40LS: Implement driver-specific filtering based on the datasheet and experiments
This commit is contained in:
committed by
Paul Riseborough
parent
e1f2360560
commit
35bde5c9fc
+2
@@ -162,6 +162,8 @@ int DfBebopRangeFinderWrapper::_publish(struct bebop_range &data)
|
||||
|
||||
distance_data.covariance = 1.0f; // TODO set correct value
|
||||
|
||||
distance_data.signal_strength = -1;
|
||||
|
||||
if (_range_topic == nullptr) {
|
||||
_range_topic = orb_advertise_multi(ORB_ID(distance_sensor), &distance_data,
|
||||
&_orb_class_instance, ORB_PRIO_DEFAULT);
|
||||
|
||||
@@ -169,6 +169,8 @@ int DfISL29501Wrapper::_publish(struct range_sensor_data &data)
|
||||
|
||||
d.covariance = 0.0f;
|
||||
|
||||
d.signal_strength = -1;
|
||||
|
||||
if (_range_topic == nullptr) {
|
||||
_range_topic = orb_advertise_multi(ORB_ID(distance_sensor), &d,
|
||||
&_orb_class_instance, ORB_PRIO_DEFAULT);
|
||||
|
||||
@@ -175,6 +175,8 @@ int DfTROneWrapper::_publish(struct range_sensor_data &data)
|
||||
|
||||
d.covariance = 0.0f;
|
||||
|
||||
d.signal_strength = -1;
|
||||
|
||||
if (_range_topic == nullptr) {
|
||||
_range_topic = orb_advertise_multi(ORB_ID(distance_sensor), &d,
|
||||
&_orb_class_instance, ORB_PRIO_DEFAULT);
|
||||
|
||||
Reference in New Issue
Block a user