From bab79d00942b59cd88c8d9765198df16843e13be Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 2 Feb 2022 14:28:34 +1100 Subject: [PATCH] ArduPlane: stop passing mission in Terrain constructor Terrain can use the mission singleton This means Copter can have terrain while compiling mission out --- ArduPlane/Plane.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/Plane.h b/ArduPlane/Plane.h index 139820da36..5d1591ed9a 100644 --- a/ArduPlane/Plane.h +++ b/ArduPlane/Plane.h @@ -641,7 +641,7 @@ private: // terrain handling #if AP_TERRAIN_AVAILABLE - AP_Terrain terrain{mission}; + AP_Terrain terrain; #endif AP_Landing landing{mission,ahrs,&TECS_controller,nav_controller,aparm,