Browse Source

ArduSub: use singleton to access AP_Terrain data

gps-1.3.1
Peter Barker 4 years ago committed by Andrew Tridgell
parent
commit
088120b8f3
  1. 6
      ArduSub/system.cpp

6
ArduSub/system.cpp

@ -83,12 +83,6 @@ void Sub::init_ardupilot() @@ -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);

Loading…
Cancel
Save