ArduSub: 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 52f6c0e5ca
commit 088120b8f3
1 changed files with 0 additions and 6 deletions

View File

@ -83,12 +83,6 @@ void Sub::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 OPTFLOW == ENABLED
// initialise optical flow sensor
optflow.init(MASK_LOG_OPTFLOW);