Lanbao driver: correct rangefinder type to IR

This commit is contained in:
Matthias Grob 2024-02-08 16:08:54 +01:00 committed by Beat Küng
parent 7fdb5ef3cb
commit b355c16141
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ CM8JL65::CM8JL65(const char *port, uint8_t rotation) :
_px4_rangefinder.set_max_distance(7.9f); // Datasheet: 8.0m _px4_rangefinder.set_max_distance(7.9f); // Datasheet: 8.0m
_px4_rangefinder.set_fov(0.0488692f); _px4_rangefinder.set_fov(0.0488692f);
_px4_rangefinder.set_device_type(DRV_DIST_DEVTYPE_CM8JL65); _px4_rangefinder.set_device_type(DRV_DIST_DEVTYPE_CM8JL65);
_px4_rangefinder.set_rangefinder_type(distance_sensor_s::MAV_DISTANCE_SENSOR_LASER); _px4_rangefinder.set_rangefinder_type(distance_sensor_s::MAV_DISTANCE_SENSOR_INFRARED);
} }
CM8JL65::~CM8JL65() CM8JL65::~CM8JL65()