mirror of https://github.com/ArduPilot/ardupilot
ArduSub: use singleton to access AP_Terrain data
This commit is contained in:
parent
52f6c0e5ca
commit
088120b8f3
|
@ -83,12 +83,6 @@ void Sub::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 OPTFLOW == ENABLED
|
#if OPTFLOW == ENABLED
|
||||||
// initialise optical flow sensor
|
// initialise optical flow sensor
|
||||||
optflow.init(MASK_LOG_OPTFLOW);
|
optflow.init(MASK_LOG_OPTFLOW);
|
||||||
|
|
Loading…
Reference in New Issue