diff --git a/APMrover2/Rover.h b/APMrover2/Rover.h index 7333552f77..4bc54b17d7 100644 --- a/APMrover2/Rover.h +++ b/APMrover2/Rover.h @@ -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 diff --git a/APMrover2/system.cpp b/APMrover2/system.cpp index dee4d5c65a..b617cb3d64 100644 --- a/APMrover2/system.cpp +++ b/APMrover2/system.cpp @@ -93,7 +93,7 @@ void Rover::init_ardupilot() AP::compass().init(); // initialise rangefinder - rangefinder.init(); + rangefinder.init(ROTATION_NONE); // init proximity sensor init_proximity();