dist-sensor: reduce enum names

This commit is contained in:
bresch
2024-09-09 15:40:40 +02:00
committed by Mathieu Bresciani
parent 8bca467c15
commit 15e9c65a8f
5 changed files with 9 additions and 9 deletions
@@ -499,7 +499,7 @@ void LightwareLaser::RunImpl()
case State::Running:
if (!_restriction) {
_px4_rangefinder.set_mode(distance_sensor_s::DISTANCE_SENSOR_MODE_RUN);
_px4_rangefinder.set_mode(distance_sensor_s::MODE_ENABLED);
if (PX4_OK != collect()) {
PX4_DEBUG("collection error");
@@ -511,7 +511,7 @@ void LightwareLaser::RunImpl()
}
} else {
_px4_rangefinder.set_mode(distance_sensor_s::DISTANCE_SENSOR_MODE_DISABLED);
_px4_rangefinder.set_mode(distance_sensor_s::MODE_DISABLED);
if (!_prev_restriction) { // Publish disabled status once
_px4_rangefinder.update(hrt_absolute_time(), -1.f, 0);