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

@ -126,7 +126,7 @@ Copter::Copter(void) :
#endif
in_mavlink_delay(false),
gcs_out_of_time(false),
param_loader(var_info)
param_loader(var_info)
{
memset(&current_loc, 0, sizeof(current_loc));

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