@return rudder command in percent */
inline double GetDrCmd(void) const { return DrCmd; }
+ /** Gets the steering command.
+ @return steering command in percent */
+ inline double GetDsCmd(void) const { return DsCmd; }
+
/** Gets the flaps command.
@return flaps command in percent */
inline double GetDfCmd(void) const { return DfCmd; }
@return mixture position for the given engine in percent ( 0 - 100)*/
inline double GetMixturePos(int engine) const { return MixturePos[engine]; }
+ /** Gets the steering position.
+ @return steering position in degrees */
+ double GetSteerPosDeg(int gear) const { return SteerPosDeg[gear]; }
+
/** Gets the gear position (0 up, 1 down), defaults to down
@return gear position (0 up, 1 down) */
inline double GetGearPos(void) const { return GearPos; }
@return pointer to the State object */
inline FGState* GetState(void) { return State; }
- /** Retrieves all component names for inclusion in output stream */
- string GetComponentStrings(void);
+ /** Retrieves all component names for inclusion in output stream
+ @param delimeter either a tab or comma string depending on output type
+ @return a string containing the descriptive names for all components */
+ string GetComponentStrings(string delimeter);
- /** Retrieves all component outputs for inclusion in output stream */
- string GetComponentValues(void);
+ /** Retrieves all component outputs for inclusion in output stream
+ @param delimeter either a tab or comma string depending on output type
+ @return a string containing the numeric values for the current set of
+ component outputs */
+ string GetComponentValues(string delimeter);
/// @name Pilot input command setting
//@{
@param cmd rudder command in percent*/
inline void SetDrCmd(double cmd) { DrCmd = cmd; }
+ /** Sets the steering command
+ @param cmd steering command in percent*/
+ inline void SetDsCmd(double cmd) { DsCmd = cmd; }
+
/** Sets the flaps command
@param cmd flaps command in percent*/
inline void SetDfCmd(double cmd) { DfCmd = cmd; }
@param cmd mixture setting in percent (0 - 100)*/
void SetMixturePos(int engine, double cmd);
+ /** Sets the steering position
+ @param cmd steering position in degrees*/
+ void SetSteerPosDeg(int gear, double pos) { SteerPosDeg[gear] = pos; }
+
/** Set the gear extend/retract position, defaults to down
@param gear position 0 up, 1 down */
void SetGearPos(double gearpos) { GearPos = gearpos; }
bool Load(FGConfigFile* AC_cfg);
void AddThrottle(void);
+ void AddGear(void);
FGPropertyManager* GetPropertyManager(void) { return PropertyManager; }
void unbind(FGPropertyManager *node);
private:
- double DaCmd, DeCmd, DrCmd, DfCmd, DsbCmd, DspCmd;
+ double DaCmd, DeCmd, DrCmd, DsCmd, DfCmd, DsbCmd, DspCmd;
double AP_DaCmd, AP_DeCmd, AP_DrCmd, AP_ThrottleCmd;
double DePos[NForms], DaLPos[NForms], DaRPos[NForms], DrPos[NForms];
double DfPos[NForms], DsbPos[NForms], DspPos[NForms];
vector <double> MixturePos;
vector <double> PropAdvanceCmd;
vector <double> PropAdvance;
+ vector <double> SteerPosDeg;
double LeftBrake, RightBrake, CenterBrake; // Brake settings
double GearCmd,GearPos;