Copter: use new RangeFinder API

This commit is contained in:
Andrew Tridgell 2015-12-08 20:30:32 +11:00 committed by Randy Mackay
parent 99b7972794
commit 2046271da4
2 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ private:
AP_InertialSensor ins;
#if CONFIG_SONAR == ENABLED
RangeFinder sonar;
RangeFinder sonar{serial_manager};
bool sonar_enabled; // enable user switch for sonar
#endif