mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
Copter: provide terrain reference to AC_WPNav
This commit is contained in:
parent
cac79f297e
commit
cd97aa97a3
@ -204,6 +204,7 @@ void Copter::init_ardupilot()
|
||||
Location_Class::set_ahrs(&ahrs);
|
||||
#if AP_TERRAIN_AVAILABLE && AC_TERRAIN
|
||||
Location_Class::set_terrain(&terrain);
|
||||
wp_nav.set_terrain(&terrain);
|
||||
#endif
|
||||
|
||||
pos_control.set_dt(MAIN_LOOP_SECONDS);
|
||||
|
Loading…
Reference in New Issue
Block a user