+FGControls::update (int dt)
+{
+}
+
+
+\f
+////////////////////////////////////////////////////////////////////////
+// Setters and adjusters.
+////////////////////////////////////////////////////////////////////////
+
+void
+FGControls::set_aileron (double pos)
+{
+ aileron = pos;
+ CLAMP( &aileron, -1.0, 1.0 );
+
+ // check for autocoordination
+ if ( auto_coordination->getBoolValue() ) {
+ set_rudder( aileron / 2.0 );
+ }
+}
+
+void
+FGControls::move_aileron (double amt)
+{
+ aileron += amt;
+ CLAMP( &aileron, -1.0, 1.0 );
+
+ // check for autocoordination
+ if ( auto_coordination->getBoolValue() ) {
+ set_rudder( aileron / 2.0 );
+ }
+}
+
+void
+FGControls::set_aileron_trim( double pos )
+{
+ aileron_trim = pos;
+ CLAMP( &aileron_trim, -1.0, 1.0 );
+}
+
+void
+FGControls::move_aileron_trim( double amt )
+{
+ aileron_trim += amt;
+ CLAMP( &aileron_trim, -1.0, 1.0 );
+}
+
+void
+FGControls::set_elevator( double pos )
+{
+ elevator = pos;
+ CLAMP( &elevator, -1.0, 1.0 );
+}
+
+void
+FGControls::move_elevator( double amt )
+{
+ elevator += amt;
+ CLAMP( &elevator, -1.0, 1.0 );
+}
+
+void
+FGControls::set_elevator_trim( double pos )
+{
+ elevator_trim = pos;
+ CLAMP( &elevator_trim, -1.0, 1.0 );
+}
+
+void
+FGControls::move_elevator_trim( double amt )
+{
+ elevator_trim += amt;
+ CLAMP( &elevator_trim, -1.0, 1.0 );
+}
+
+void
+FGControls::set_rudder( double pos )
+{
+ rudder = pos;
+ CLAMP( &rudder, -1.0, 1.0 );
+}
+
+void
+FGControls::move_rudder( double amt )
+{
+ rudder += amt;
+ CLAMP( &rudder, -1.0, 1.0 );
+}
+
+void
+FGControls::set_rudder_trim( double pos )
+{
+ rudder_trim = pos;
+ CLAMP( &rudder_trim, -1.0, 1.0 );
+}
+
+void
+FGControls::move_rudder_trim( double amt )
+{
+ rudder_trim += amt;
+ CLAMP( &rudder_trim, -1.0, 1.0 );
+}
+
+void
+FGControls::set_flaps( double pos )
+{
+ flaps = pos;
+ CLAMP( &flaps, 0.0, 1.0 );
+}
+
+void
+FGControls::move_flaps( double amt )
+{
+ flaps += amt;
+ CLAMP( &flaps, 0.0, 1.0 );
+}
+
+void
+FGControls::set_throttle( int engine, double pos )
+{
+ if ( engine == ALL_ENGINES ) {
+ for ( int i = 0; i < MAX_ENGINES; i++ ) {
+ throttle[i] = pos;
+ CLAMP( &throttle[i], 0.0, 1.0 );
+ }
+ } else {
+ if ( (engine >= 0) && (engine < MAX_ENGINES) ) {
+ throttle[engine] = pos;
+ CLAMP( &throttle[engine], 0.0, 1.0 );
+ }
+ }
+}
+
+void
+FGControls::move_throttle( int engine, double amt )
+{
+ if ( engine == ALL_ENGINES ) {
+ for ( int i = 0; i < MAX_ENGINES; i++ ) {
+ throttle[i] += amt;
+ CLAMP( &throttle[i], 0.0, 1.0 );
+ }
+ } else {
+ if ( (engine >= 0) && (engine < MAX_ENGINES) ) {
+ throttle[engine] += amt;
+ CLAMP( &throttle[engine], 0.0, 1.0 );
+ }
+ }
+}
+
+void
+FGControls::set_mixture( int engine, double pos )
+{
+ if ( engine == ALL_ENGINES ) {
+ for ( int i = 0; i < MAX_ENGINES; i++ ) {
+ mixture[i] = pos;
+ CLAMP( &mixture[i], 0.0, 1.0 );
+ }
+ } else {
+ if ( (engine >= 0) && (engine < MAX_ENGINES) ) {
+ mixture[engine] = pos;
+ CLAMP( &mixture[engine], 0.0, 1.0 );
+ }
+ }
+}
+
+void
+FGControls::move_mixture( int engine, double amt )