ArduCopter: stop passing mission in Terrain constructor

Terrain can use the mission singleton

This means Copter can have terrain while compiling mission out
This commit is contained in:
Peter Barker 2022-02-02 14:28:34 +11:00 committed by Andrew Tridgell
parent 6b21d117a9
commit 3989ed76cd
2 changed files with 2 additions and 6 deletions

View File

@ -512,8 +512,8 @@ private:
#endif
// terrain handling
#if AP_TERRAIN_AVAILABLE && MODE_AUTO_ENABLED == ENABLED
AP_Terrain terrain{mode_auto.mission};
#if AP_TERRAIN_AVAILABLE
AP_Terrain terrain;
#endif
// Precision Landing

View File

@ -664,10 +664,6 @@
#error ModeAuto requires ModeRTL which is disabled
#endif
#if AP_TERRAIN_AVAILABLE && !MODE_AUTO_ENABLED
#error Terrain requires ModeAuto which is disabled
#endif
#if FRAME_CONFIG == HELI_FRAME && !MODE_ACRO_ENABLED
#error Helicopter frame requires acro mode support which is disabled
#endif