mirror of https://github.com/ArduPilot/ardupilot
Rover: Fix RangeFinder init
This commit is contained in:
parent
21b64ad19b
commit
8cf7c47f96
|
@ -174,7 +174,7 @@ private:
|
|||
AP_Baro barometer;
|
||||
Compass compass;
|
||||
AP_InertialSensor ins;
|
||||
RangeFinder rangefinder{serial_manager, ROTATION_NONE};
|
||||
RangeFinder rangefinder{serial_manager};
|
||||
AP_Button button;
|
||||
|
||||
// flight modes convenience array
|
||||
|
|
|
@ -93,7 +93,7 @@ void Rover::init_ardupilot()
|
|||
AP::compass().init();
|
||||
|
||||
// initialise rangefinder
|
||||
rangefinder.init();
|
||||
rangefinder.init(ROTATION_NONE);
|
||||
|
||||
// init proximity sensor
|
||||
init_proximity();
|
||||
|
|
Loading…
Reference in New Issue