1 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7 ------------- Copyright (C) 1999 Jon S. Berndt (jsb@hal-pc.org) -------------
9 This program is free software; you can redistribute it and/or modify it under
10 the terms of the GNU General Public License as published by the Free Software
11 Foundation; either version 2 of the License, or (at your option) any later
14 This program is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
19 You should have received a copy of the GNU General Public License along with
20 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
21 Place - Suite 330, Boston, MA 02111-1307, USA.
23 Further information about the GNU General Public License can also be found on
24 the world wide web at http://www.gnu.org.
27 --------------------------------------------------------------------------------
30 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
32 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
37 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
39 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
42 # include <simgear/compiler.h>
43 # ifdef SG_HAVE_STD_INCLUDES
53 #include "filtersjb/FGFCSComponent.h"
56 #include "FGConfigFile.h"
58 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
60 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
64 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
66 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
68 typedef enum { iDe=0, iDaL, iDaR, iDr, iDsb, iDsp, iDf, NNorm } FcIdx;
69 typedef enum { ofRad=0, ofNorm, ofMag , NForms} OutputForm;
71 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
72 COMMENTS, REFERENCES, and NOTES [use "class documentation" below for API docs]
73 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
75 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
77 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
79 /** Encapsulates the Flight Control System (FCS) functionality.
80 <ul><li>\URL[Source Code]{FGFCS.cpp.html}</li>
81 <li>\URL[Header File]{FGFCS.h.html}</li></ul>
82 This class owns and contains the list of \URL[components]{FGFCSComponent.html}
83 that define the control system for this aircraft. The config file for the
84 aircraft contains a description of the control path that starts at an input
85 or command and ends at an effector, e.g. an aerosurface. The FCS components
86 which comprise the control laws for an axis are defined sequentially in
87 the configuration file. For instance, for the X-15:
90 < FLIGHT_CONTROL NAME="X-15 SAS">
92 < COMPONENT NAME="Pitch Trim Sum" TYPE="SUMMER">
95 INPUT FG_PITCH_TRIM_CMD
99 < COMPONENT NAME="Pitch Command Scale" TYPE="AEROSURFACE_SCALE">
106 < COMPONENT NAME="Pitch Gain 1" TYPE="PURE_GAIN">
112 < COMPONENT NAME="Pitch Scheduled Gain 1" TYPE="SCHEDULED_GAIN">
116 SCHEDULED_BY FG_ELEVATOR_POS
128 In the above case we can see the first few components of the pitch channel
129 defined. The input to the first component, as can be seen in the "Pitch trim
130 sum" component, is really the sum of two parameters: elevator command (from
131 the stick - a pilot input), and pitch trim. The type of this component is
132 "Summer". Its ID is 0 - the ID is used by other components to reference it.
133 The next component created is an aerosurface scale component - a type of
134 gain (see the LoadFCS() method for insight on how the various types of
135 components map into the actual component classes). You can see the input of
136 the "Pitch Command Scale" component takes "0" as input. When a number is
137 specified as an input, it refers to the ID of another FCS component. In this
138 case, ID 0 refers to the previously defined and discussed "Pitch Trim Sum"
139 component. This continues until the final component for an axis when the
140 OUTPUT keyword specifies where the output is supposed to go. See the
141 individual components for more information on how they are mechanized.
143 @author Jon S. Berndt
153 @see <a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jsbsim/JSBSim/FGFCS.h?rev=HEAD&content-type=text/vnd.viewcvs-markup">
155 @see <a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jsbsim/JSBSim/FGFCS.cpp?rev=HEAD&content-type=text/vnd.viewcvs-markup">
159 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
161 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
163 class FGFCS : public FGModel {
167 @param Executive a pointer to the parent executive object */
172 /** Runs the Flight Controls model; called by the Executive
173 @return false if no error */
176 /// @name Pilot input command retrieval
178 /** Gets the aileron command.
179 @return aileron command in percent */
180 inline double GetDaCmd(void) const { return DaCmd; }
182 /** Gets the elevator command.
183 @return elevator command in percent */
184 inline double GetDeCmd(void) const { return DeCmd; }
186 /** Gets the rudder command.
187 @return rudder command in percent */
188 inline double GetDrCmd(void) const { return DrCmd; }
190 /** Gets the flaps command.
191 @return flaps command in percent */
192 inline double GetDfCmd(void) const { return DfCmd; }
194 /** Gets the speedbrake command.
195 @return speedbrake command in percent */
196 inline double GetDsbCmd(void) const { return DsbCmd; }
198 /** Gets the spoiler command.
199 @return spoiler command in percent */
200 inline double GetDspCmd(void) const { return DspCmd; }
202 /** Gets the throttle command.
203 @param engine engine ID number
204 @return throttle command in percent ( 0 - 100) for the given engine */
205 double GetThrottleCmd(int engine) const;
207 /** Gets the mixture command.
208 @param engine engine ID number
209 @return mixture command in percent ( 0 - 100) for the given engine */
210 inline double GetMixtureCmd(int engine) const { return MixtureCmd[engine]; }
212 /** Gets the prop pitch command.
213 @param engine engine ID number
214 @return pitch command in percent ( 0.0 - 1.0) for the given engine */
215 inline double GetPropAdvanceCmd(int engine) const { return PropAdvanceCmd[engine]; }
217 /** Gets the pitch trim command.
218 @return pitch trim command in percent */
219 inline double GetPitchTrimCmd(void) const { return PTrimCmd; }
221 /** Gets the rudder trim command.
222 @return rudder trim command in percent */
223 inline double GetYawTrimCmd(void) const { return YTrimCmd; }
225 /** Gets the aileron trim command.
226 @return aileron trim command in percent */
227 inline double GetRollTrimCmd(void) const { return RTrimCmd; }
229 /** Get the gear extend/retract command. 0 commands gear up, 1 down.
231 @return the current value of the gear extend/retract command*/
232 inline double GetGearCmd(void) const { return GearCmd; }
235 /// @name AUTOPilot -> FCS effectors command retrieval
237 /** Gets the AUTOPilot aileron command.
238 @return aileron command in radians */
239 inline double GetAPDaCmd(void) const { return AP_DaCmd; }
241 /** Gets the AUTOPilot elevator command.
242 @return elevator command in radians */
243 inline double GetAPDeCmd(void) const { return AP_DeCmd; }
245 /** Gets the AUTOPilot rudder command.
246 @return rudder command in radians */
247 inline double GetAPDrCmd(void) const { return AP_DrCmd; }
249 /** Gets the AUTOPilot throttle (all engines) command.
250 @return throttle command in percent */
251 inline double GetAPThrottleCmd(void) const { return AP_ThrottleCmd; }
254 /// @name AUTOPilot setpoint retrieval
256 /** Gets the autopilot pitch attitude setpoint
257 @return Pitch attitude setpoint in radians */
258 inline double GetAPAttitudeSetPt(void) const {return APAttitudeSetPt;}
260 /** Gets the autopilot altitude setpoint
261 @return Altitude setpoint in feet */
262 inline double GetAPAltitudeSetPt(void) const {return APAltitudeSetPt;}
264 /** Gets the autopilot heading setpoint
265 @return Heading setpoint in radians */
266 inline double GetAPHeadingSetPt(void) const {return APHeadingSetPt;}
268 /** Gets the autopilot airspeed setpoint
269 @return Airspeed setpoint in fps */
270 inline double GetAPAirspeedSetPt(void) const {return APAirspeedSetPt;}
273 /// @name AUTOPilot setpoint setting
275 /// Sets the autopilot pitch attitude setpoint
276 inline void SetAPAttitudeSetPt(double set) {APAttitudeSetPt = set;}
278 /// Sets the autopilot altitude setpoint
279 inline void SetAPAltitudeSetPt(double set) {APAltitudeSetPt = set;}
281 /// Sets the autopilot heading setpoint
282 inline void SetAPHeadingSetPt(double set) {APHeadingSetPt = set;}
284 /// Sets the autopilot airspeed setpoint
285 inline void SetAPAirspeedSetPt(double set) {APAirspeedSetPt = set;}
289 /// @name AUTOPilot mode setting
291 /** Turns on/off the attitude-seeking autopilot.
292 @param set true turns the mode on, false turns it off **/
293 inline void SetAPAcquireAttitude(bool set) {APAcquireAttitude = set;}
295 /** Turns on/off the altitude-seeking autopilot.
296 @param set true turns the mode on, false turns it off **/
297 inline void SetAPAcquireAltitude(bool set) {APAcquireAltitude = set;}
299 /** Turns on/off the heading-seeking autopilot.
300 @param set true turns the mode on, false turns it off **/
301 inline void SetAPAcquireHeading(bool set) {APAcquireHeading = set;}
303 /** Turns on/off the airspeed-seeking autopilot.
304 @param set true turns the mode on, false turns it off **/
305 inline void SetAPAcquireAirspeed(bool set) {APAcquireAirspeed = set;}
307 /** Turns on/off the attitude-holding autopilot.
308 @param set true turns the mode on, false turns it off **/
309 inline void SetAPAttitudeHold(bool set) {APAttitudeHold = set;}
311 /** Turns on/off the altitude-holding autopilot.
312 @param set true turns the mode on, false turns it off **/
313 inline void SetAPAltitudeHold(bool set) {APAltitudeHold = set;}
315 /** Turns on/off the heading-holding autopilot.
316 @param set true turns the mode on, false turns it off **/
317 inline void SetAPHeadingHold(bool set) {APHeadingHold = set;}
319 /** Turns on/off the airspeed-holding autopilot.
320 @param set true turns the mode on, false turns it off **/
321 inline void SetAPAirspeedHold(bool set) {APAirspeedHold = set;}
323 /** Turns on/off the wing-leveler autopilot.
324 @param set true turns the mode on, false turns it off **/
325 inline void SetAPWingsLevelHold(bool set) {APWingsLevelHold = set;}
328 /// @name AUTOPilot mode retrieval
330 /** Retrieves the on/off mode of the autopilot AcquireAttitude mode
331 @return true if on, false if off */
332 inline bool GetAPAcquireAttitude(void) const {return APAcquireAttitude;}
334 /** Retrieves the on/off mode of the autopilot AcquireAltitude mode
335 @return true if on, false if off */
336 inline bool GetAPAcquireAltitude(void) const {return APAcquireAltitude;}
338 /** Retrieves the on/off mode of the autopilot AcquireHeading mode
339 @return true if on, false if off */
340 inline bool GetAPAcquireHeading(void) const {return APAcquireHeading;}
342 /** Retrieves the on/off mode of the autopilot AcquireAirspeed mode
343 @return true if on, false if off */
344 inline bool GetAPAcquireAirspeed(void) const {return APAcquireAirspeed;}
346 /** Retrieves the on/off mode of the autopilot AttitudeHold mode
347 @return true if on, false if off */
348 inline bool GetAPAttitudeHold(void) const {return APAttitudeHold;}
350 /** Retrieves the on/off mode of the autopilot AltitudeHold mode
351 @return true if on, false if off */
352 inline bool GetAPAltitudeHold(void) const {return APAltitudeHold;}
354 /** Retrieves the on/off mode of the autopilot HeadingHold mode
355 @return true if on, false if off */
356 inline bool GetAPHeadingHold(void) const {return APHeadingHold;}
358 /** Retrieves the on/off mode of the autopilot AirspeedHold mode
359 @return true if on, false if off */
360 inline bool GetAPAirspeedHold(void) const {return APAirspeedHold;}
362 /** Retrieves the on/off mode of the autopilot WingsLevelHold mode
363 @return true if on, false if off */
364 inline bool GetAPWingsLevelHold(void) const {return APWingsLevelHold;}
367 /// @name Aerosurface position retrieval
369 /** Gets the left aileron position.
370 @return aileron position in radians */
371 inline double GetDaLPos( int form = ofRad )
372 const { return DaLPos[form]; }
374 /// @name Aerosurface position retrieval
376 /** Gets the right aileron position.
377 @return aileron position in radians */
378 inline double GetDaRPos( int form = ofRad )
379 const { return DaRPos[form]; }
381 /** Gets the elevator position.
382 @return elevator position in radians */
383 inline double GetDePos( int form = ofRad )
384 const { return DePos[form]; }
386 /** Gets the rudder position.
387 @return rudder position in radians */
388 inline double GetDrPos( int form = ofRad )
389 const { return DrPos[form]; }
391 /** Gets the speedbrake position.
392 @return speedbrake position in radians */
393 inline double GetDsbPos( int form = ofRad )
394 const { return DsbPos[form]; }
396 /** Gets the spoiler position.
397 @return spoiler position in radians */
398 inline double GetDspPos( int form = ofRad )
399 const { return DspPos[form]; }
401 /** Gets the flaps position.
402 @return flaps position in radians */
403 inline double GetDfPos( int form = ofRad )
404 const { return DfPos[form]; }
406 /** Gets the throttle position.
407 @param engine engine ID number
408 @return throttle position for the given engine in percent ( 0 - 100)*/
409 double GetThrottlePos(int engine) const;
411 /** Gets the mixture position.
412 @param engine engine ID number
413 @return mixture position for the given engine in percent ( 0 - 100)*/
414 inline double GetMixturePos(int engine) const { return MixturePos[engine]; }
416 /** Gets the gear position (0 up, 1 down), defaults to down
417 @return gear position (0 up, 1 down) */
418 inline double GetGearPos(void) const { return GearPos; }
420 /** Gets the prop pitch position.
421 @param engine engine ID number
422 @return prop pitch position for the given engine in percent ( 0.0-1.0)*/
423 inline double GetPropAdvance(int engine) const { return PropAdvance[engine]; }
426 /** Retrieves the State object pointer.
427 This is used by the FGFCS-owned components.
428 @return pointer to the State object */
429 inline FGState* GetState(void) { return State; }
431 /** Retrieves a components output value
432 @param idx the index of the component (the component ID)
433 @return output value from the component */
434 double GetComponentOutput(int idx);
436 /** Retrieves the component name
437 @param idx the index of the component (the component ID)
438 @return name of the component */
439 string GetComponentName(int idx);
441 /** Retrieves all component names for inclusion in output stream */
442 string GetComponentStrings(void);
444 /** Retrieves all component outputs for inclusion in output stream */
445 string GetComponentValues(void);
447 /// @name Pilot input command setting
449 /** Sets the aileron command
450 @param cmd aileron command in percent*/
451 inline void SetDaCmd( double cmd ) { DaCmd = cmd; }
453 /** Sets the elevator command
454 @param cmd elevator command in percent*/
455 inline void SetDeCmd(double cmd ) { DeCmd = cmd; }
457 /** Sets the rudder command
458 @param cmd rudder command in percent*/
459 inline void SetDrCmd(double cmd) { DrCmd = cmd; }
461 /** Sets the flaps command
462 @param cmd flaps command in percent*/
463 inline void SetDfCmd(double cmd) { DfCmd = cmd; }
465 /** Sets the speedbrake command
466 @param cmd speedbrake command in percent*/
467 inline void SetDsbCmd(double cmd) { DsbCmd = cmd; }
469 /** Sets the spoilers command
470 @param cmd spoilers command in percent*/
471 inline void SetDspCmd(double cmd) { DspCmd = cmd; }
473 /** Sets the pitch trim command
474 @param cmd pitch trim command in percent*/
475 inline void SetPitchTrimCmd(double cmd) { PTrimCmd = cmd; }
477 /** Sets the rudder trim command
478 @param cmd rudder trim command in percent*/
479 inline void SetYawTrimCmd(double cmd) { YTrimCmd = cmd; }
481 /** Sets the aileron trim command
482 @param cmd aileron trim command in percent*/
483 inline void SetRollTrimCmd(double cmd) { RTrimCmd = cmd; }
485 /** Sets the throttle command for the specified engine
486 @param engine engine ID number
487 @param cmd throttle command in percent (0 - 100)*/
488 void SetThrottleCmd(int engine, double cmd);
490 /** Sets the mixture command for the specified engine
491 @param engine engine ID number
492 @param cmd mixture command in percent (0 - 100)*/
493 void SetMixtureCmd(int engine, double cmd);
495 /** Set the gear extend/retract command, defaults to down
496 @param gear command 0 for up, 1 for down */
497 void SetGearCmd(double gearcmd) { GearCmd = gearcmd; }
499 /** Sets the propeller pitch command for the specified engine
500 @param engine engine ID number
501 @param cmd mixture command in percent (0.0 - 1.0)*/
502 void SetPropAdvanceCmd(int engine, double cmd);
505 /// @name AUTOPilot -> FCS effector command setting
507 /** Sets the AUTOPilot aileron command
508 @param cmd AUTOPilot aileron command in radians*/
509 inline void SetAPDaCmd( double cmd ) { AP_DaCmd = cmd; }
511 /** Sets the AUTOPilot elevator command
512 @param cmd AUTOPilot elevator command in radians*/
513 inline void SetAPDeCmd(double cmd ) { AP_DeCmd = cmd; }
515 /** Sets the AUTOPilot rudder command
516 @param cmd AUTOPilot rudder command in radians*/
517 inline void SetAPDrCmd(double cmd) { AP_DrCmd = cmd; }
519 /** Sets the AUTOPilot throttle command
520 @param cmd AUTOPilot throttle command in percent*/
521 inline void SetAPThrottleCmd(double cmd) { AP_ThrottleCmd = cmd; }
524 /// @name Aerosurface position setting
526 /** Sets the left aileron position
527 @param cmd left aileron position in radians*/
528 inline void SetDaLPos( int form , double pos )
529 { DaLPos[form] = pos; }
531 /** Sets the right aileron position
532 @param cmd right aileron position in radians*/
533 inline void SetDaRPos( int form , double pos )
534 { DaRPos[form] = pos; }
536 /** Sets the elevator position
537 @param cmd elevator position in radians*/
538 inline void SetDePos( int form , double pos )
539 { DePos[form] = pos; }
541 /** Sets the rudder position
542 @param cmd rudder position in radians*/
543 inline void SetDrPos( int form , double pos )
544 { DrPos[form] = pos; }
546 /** Sets the flaps position
547 @param cmd flaps position in radians*/
548 inline void SetDfPos( int form , double pos )
549 { DfPos[form] = pos; }
551 /** Sets the speedbrake position
552 @param cmd speedbrake position in radians*/
553 inline void SetDsbPos( int form , double pos )
554 { DsbPos[form] = pos; }
556 /** Sets the spoiler position
557 @param cmd spoiler position in radians*/
558 inline void SetDspPos( int form , double pos )
559 { DspPos[form] = pos; }
561 /** Sets the actual throttle setting for the specified engine
562 @param engine engine ID number
563 @param cmd throttle setting in percent (0 - 100)*/
564 void SetThrottlePos(int engine, double cmd);
566 /** Sets the actual mixture setting for the specified engine
567 @param engine engine ID number
568 @param cmd mixture setting in percent (0 - 100)*/
569 void SetMixturePos(int engine, double cmd);
571 /** Set the gear extend/retract position, defaults to down
572 @param gear position 0 up, 1 down */
573 void SetGearPos(double gearpos) { GearPos = gearpos; }
576 /** Sets the actual prop pitch setting for the specified engine
577 @param engine engine ID number
578 @param cmd prop pitch setting in percent (0.0 - 1.0)*/
579 void SetPropAdvance(int engine, double cmd);
582 /// @name Landing Gear brakes
584 /** Sets the left brake group
585 @param cmd brake setting in percent (0.0 - 1.0) */
586 void SetLBrake(double cmd) {LeftBrake = cmd;}
588 /** Sets the right brake group
589 @param cmd brake setting in percent (0.0 - 1.0) */
590 void SetRBrake(double cmd) {RightBrake = cmd;}
592 /** Sets the center brake group
593 @param cmd brake setting in percent (0.0 - 1.0) */
594 void SetCBrake(double cmd) {CenterBrake = cmd;}
596 /** Gets the brake for a specified group.
597 @param bg which brakegroup to retrieve the command for
598 @return the brake setting for the supplied brake group argument */
599 double GetBrake(FGLGear::BrakeGroup bg);
602 /** Loads the Flight Control System.
603 The FGAircraft instance is actually responsible for reading the config file
604 and calling the various Loadxx() methods of the other systems, passing in
605 the config file instance pointer. LoadFCS() is called from FGAircraft.
606 @param AC_cfg pointer to the config file instance
607 @return true if succesful */
608 bool Load(FGConfigFile* AC_cfg);
610 void AddThrottle(void);
612 FGPropertyManager* GetPropertyManager(void) { return PropertyManager; }
615 void bindModel(void);
616 void unbind(FGPropertyManager *node);
619 double DaCmd, DeCmd, DrCmd, DfCmd, DsbCmd, DspCmd;
620 double AP_DaCmd, AP_DeCmd, AP_DrCmd, AP_ThrottleCmd;
621 double DePos[NForms], DaLPos[NForms], DaRPos[NForms], DrPos[NForms];
622 double DfPos[NForms], DsbPos[NForms], DspPos[NForms];
623 double PTrimCmd, YTrimCmd, RTrimCmd;
624 vector <double> ThrottleCmd;
625 vector <double> ThrottlePos;
626 vector <double> MixtureCmd;
627 vector <double> MixturePos;
628 vector <double> PropAdvanceCmd;
629 vector <double> PropAdvance;
630 double LeftBrake, RightBrake, CenterBrake; // Brake settings
631 double GearCmd,GearPos;
633 enum Mode {mAP, mFCS, mNone} eMode;
635 double APAttitudeSetPt, APAltitudeSetPt, APHeadingSetPt, APAirspeedSetPt;
636 bool APAcquireAttitude, APAcquireAltitude, APAcquireHeading, APAcquireAirspeed;
637 bool APAttitudeHold, APAltitudeHold, APHeadingHold, APAirspeedHold, APWingsLevelHold;
640 void Normalize(void);
642 vector <FGFCSComponent*> FCSComponents;
643 vector <FGFCSComponent*> APComponents;
644 int ToNormalize[NNorm];
645 void Debug(int from);