Rover: Fix RangeFinder init

This commit is contained in:
Michael du Breuil 2019-04-05 02:14:23 -07:00 committed by Peter Barker
parent 21b64ad19b
commit 8cf7c47f96
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -93,7 +93,7 @@ void Rover::init_ardupilot()
AP::compass().init();
// initialise rangefinder
rangefinder.init();
rangefinder.init(ROTATION_NONE);
// init proximity sensor
init_proximity();