Andy Ross:
Make rotational rate FDM values available from the property tree. This is required for some cool stuff I've been doing with the Harrier.
This commit is contained in:
parent
9a5080b6ad
commit
5a439826ff
2 changed files with 12 additions and 0 deletions
src/FDM
|
@ -323,6 +323,15 @@ FGInterface::bind ()
|
||||||
&FGInterface::set_Psi_deg);
|
&FGInterface::set_Psi_deg);
|
||||||
fgSetArchivable("/orientation/heading-deg");
|
fgSetArchivable("/orientation/heading-deg");
|
||||||
|
|
||||||
|
// Body-axis "euler rates" (rotation speed, but in a funny
|
||||||
|
// representation).
|
||||||
|
fgTie("/orientation/roll-rate-degps", this,
|
||||||
|
&FGInterface::get_Phi_dot_degps);
|
||||||
|
fgTie("/orientation/pitch-rate-degps", this,
|
||||||
|
&FGInterface::get_Theta_dot_degps);
|
||||||
|
fgTie("/orientation/yaw-rate-degps", this,
|
||||||
|
&FGInterface::get_Psi_dot_degps);
|
||||||
|
|
||||||
// Calibrated airspeed
|
// Calibrated airspeed
|
||||||
fgTie("/velocities/airspeed-kt", this,
|
fgTie("/velocities/airspeed-kt", this,
|
||||||
&FGInterface::get_V_calibrated_kts,
|
&FGInterface::get_V_calibrated_kts,
|
||||||
|
|
|
@ -839,6 +839,9 @@ public:
|
||||||
inline double get_Phi_dot() const { return euler_rates_v[0]; }
|
inline double get_Phi_dot() const { return euler_rates_v[0]; }
|
||||||
inline double get_Theta_dot() const { return euler_rates_v[1]; }
|
inline double get_Theta_dot() const { return euler_rates_v[1]; }
|
||||||
inline double get_Psi_dot() const { return euler_rates_v[2]; }
|
inline double get_Psi_dot() const { return euler_rates_v[2]; }
|
||||||
|
inline double get_Phi_dot_degps() const { return euler_rates_v[0] * SGD_RADIANS_TO_DEGREES; }
|
||||||
|
inline double get_Theta_dot_degps() const { return euler_rates_v[1] * SGD_RADIANS_TO_DEGREES; }
|
||||||
|
inline double get_Psi_dot_degps() const { return euler_rates_v[2] * SGD_RADIANS_TO_DEGREES; }
|
||||||
|
|
||||||
// inline double * get_Geocentric_rates_v() { return geocentric_rates_v; }
|
// inline double * get_Geocentric_rates_v() { return geocentric_rates_v; }
|
||||||
inline double get_Latitude_dot() const { return geocentric_rates_v[0]; }
|
inline double get_Latitude_dot() const { return geocentric_rates_v[0]; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue