mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-08 08:53:56 -04:00
Copter: use new RangeFinder API
This commit is contained in:
parent
99b7972794
commit
2046271da4
@ -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(¤t_loc, 0, sizeof(current_loc));
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user