mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 21:13:33 +08:00
dist-sensor: use enum instead of integer
This commit is contained in:
committed by
Mathieu Bresciani
parent
bb0210ecd7
commit
8bca467c15
@@ -39,8 +39,8 @@ PX4Rangefinder::PX4Rangefinder(const uint32_t device_id, const uint8_t device_or
|
|||||||
{
|
{
|
||||||
set_device_id(device_id);
|
set_device_id(device_id);
|
||||||
set_orientation(device_orientation);
|
set_orientation(device_orientation);
|
||||||
set_rangefinder_type(distance_sensor_s::MAV_DISTANCE_SENSOR_LASER); // Default to type LASER
|
set_rangefinder_type(distance_sensor_s::MAV_DISTANCE_SENSOR_LASER);
|
||||||
set_mode(UINT8_C(0));
|
set_mode(distance_sensor_s::DISTANCE_SENSOR_MODE_UNKNOWN);
|
||||||
}
|
}
|
||||||
|
|
||||||
PX4Rangefinder::~PX4Rangefinder()
|
PX4Rangefinder::~PX4Rangefinder()
|
||||||
|
|||||||
Reference in New Issue
Block a user