ArduCopter: use singleton to access AP_Terrain data

This commit is contained in:
Peter Barker 2021-02-13 14:46:35 +11:00 committed by Andrew Tridgell
parent b625596dfa
commit 52f6c0e5ca
1 changed files with 0 additions and 6 deletions

View File

@ -106,12 +106,6 @@ void Copter::init_ardupilot()
AP::compass().set_log_bit(MASK_LOG_COMPASS); AP::compass().set_log_bit(MASK_LOG_COMPASS);
AP::compass().init(); 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 #if AC_OAPATHPLANNER_ENABLED == ENABLED
g2.oa.init(); g2.oa.init();
#endif #endif