SITL: correct RC2_REV to RC2_REVERSED in comment

This commit is contained in:
Peter Barker 2019-07-24 11:28:01 +10:00 committed by Randy Mackay
parent 47e1733bc5
commit 81222fbde0
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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