mirror of https://github.com/ArduPilot/ardupilot
ArduCopter: use singleton to access AP_Terrain data
This commit is contained in:
parent
b625596dfa
commit
52f6c0e5ca
|
@ -106,12 +106,6 @@ void Copter::init_ardupilot()
|
|||
AP::compass().set_log_bit(MASK_LOG_COMPASS);
|
||||
AP::compass().init();
|
||||
|
||||
// init Location class
|
||||
#if AP_TERRAIN_AVAILABLE
|
||||
Location::set_terrain(&terrain);
|
||||
wp_nav->set_terrain(&terrain);
|
||||
#endif
|
||||
|
||||
#if AC_OAPATHPLANNER_ENABLED == ENABLED
|
||||
g2.oa.init();
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue