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);
|
Location_Class::set_ahrs(&ahrs);
|
||||||
#if AP_TERRAIN_AVAILABLE && AC_TERRAIN
|
#if AP_TERRAIN_AVAILABLE && AC_TERRAIN
|
||||||
Location_Class::set_terrain(&terrain);
|
Location_Class::set_terrain(&terrain);
|
||||||
|
wp_nav.set_terrain(&terrain);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
pos_control.set_dt(MAIN_LOOP_SECONDS);
|
pos_control.set_dt(MAIN_LOOP_SECONDS);
|
||||||
|
Loading…
Reference in New Issue
Block a user