From badfd1d5590f4cb94de506fd2e5856ebeda0aa99 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 8 Feb 2019 18:39:30 +1100 Subject: [PATCH] SITL: name parameters being passed to ICEngine contructor --- libraries/SITL/SIM_Plane.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/libraries/SITL/SIM_Plane.h b/libraries/SITL/SIM_Plane.h index 9d0ef6ec5d..f45cc05b78 100644 --- a/libraries/SITL/SIM_Plane.h +++ b/libraries/SITL/SIM_Plane.h @@ -104,7 +104,18 @@ protected: float launch_time; uint64_t launch_start_ms; - ICEngine icengine{2, 14, 12, 13, 100}; + const uint8_t throttle_servo = 2; + const int8_t choke_servo = 14; + const int8_t ignition_servo = 12; + const int8_t starter_servo = 13; + const float slewrate = 100; + ICEngine icengine{ + throttle_servo, + choke_servo, + ignition_servo, + starter_servo, + slewrate + }; float liftCoeff(float alpha) const; float dragCoeff(float alpha) const;