From 81222fbde0eb89f2977096b05d9f2a397e590db9 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 24 Jul 2019 11:28:01 +1000 Subject: [PATCH] SITL: correct RC2_REV to RC2_REVERSED in comment --- libraries/SITL/SIM_JSBSim.cpp | 2 +- libraries/SITL/SIM_Plane.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/SITL/SIM_JSBSim.cpp b/libraries/SITL/SIM_JSBSim.cpp index ae54b059e9..93980db4c2 100644 --- a/libraries/SITL/SIM_JSBSim.cpp +++ b/libraries/SITL/SIM_JSBSim.cpp @@ -346,7 +346,7 @@ void JSBSim::send_servos(const struct sitl_input &input) float ch1 = aileron; float ch2 = elevator; aileron = (ch2-ch1)/2.0f; - // the minus does away with the need for RC2_REV=-1 + // the minus does away with the need for RC2_REVERSED=-1 elevator = -(ch2+ch1)/2.0f; } else if (frame == FRAME_VTAIL) { // fake a vtail plane diff --git a/libraries/SITL/SIM_Plane.cpp b/libraries/SITL/SIM_Plane.cpp index 4463f2535b..270fe652f5 100644 --- a/libraries/SITL/SIM_Plane.cpp +++ b/libraries/SITL/SIM_Plane.cpp @@ -268,7 +268,7 @@ void Plane::calculate_forces(const struct sitl_input &input, Vector3f &rot_accel float ch1 = aileron; float ch2 = elevator; aileron = (ch2-ch1)/2.0f; - // the minus does away with the need for RC2_REV=-1 + // the minus does away with the need for RC2_REVERSED=-1 elevator = -(ch2+ch1)/2.0f; // assume no rudder