Pass data needed to make David's new ASI model work correctly.
This commit is contained in:
parent
1604c9bae2
commit
4763dbae6a
2 changed files with 16 additions and 1 deletions
|
@ -185,6 +185,9 @@ static void net2global( FGNetFDM *net ) {
|
||||||
htond(net->v_north);
|
htond(net->v_north);
|
||||||
htond(net->v_east);
|
htond(net->v_east);
|
||||||
htond(net->v_down);
|
htond(net->v_down);
|
||||||
|
htond(net->v_wind_body_north);
|
||||||
|
htond(net->v_wind_body_east);
|
||||||
|
htond(net->v_wind_body_down);
|
||||||
htond(net->stall_warning);
|
htond(net->stall_warning);
|
||||||
|
|
||||||
htond(net->A_X_pilot);
|
htond(net->A_X_pilot);
|
||||||
|
@ -233,6 +236,10 @@ static void net2global( FGNetFDM *net ) {
|
||||||
cur_fdm_state->_set_Velocities_Local( net->v_north,
|
cur_fdm_state->_set_Velocities_Local( net->v_north,
|
||||||
net->v_east,
|
net->v_east,
|
||||||
net->v_down );
|
net->v_down );
|
||||||
|
cur_fdm_state->_set_Velocities_Wind_Body( net->v_wind_body_north,
|
||||||
|
net->v_wind_body_east,
|
||||||
|
net->v_wind_body_down );
|
||||||
|
|
||||||
fgSetDouble( "/sim/aero/alarms/stall-warning", net->stall_warning );
|
fgSetDouble( "/sim/aero/alarms/stall-warning", net->stall_warning );
|
||||||
cur_fdm_state->_set_Accels_Pilot_Body( net->A_X_pilot,
|
cur_fdm_state->_set_Accels_Pilot_Body( net->A_X_pilot,
|
||||||
net->A_Y_pilot,
|
net->A_Y_pilot,
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
#include <time.h> // time_t
|
#include <time.h> // time_t
|
||||||
|
|
||||||
const int FG_NET_FDM_VERSION = 10;
|
const int FG_NET_FDM_VERSION = 11;
|
||||||
|
|
||||||
|
|
||||||
// Define a structure containing the top level flight dynamics model
|
// Define a structure containing the top level flight dynamics model
|
||||||
|
@ -72,6 +72,12 @@ public:
|
||||||
double v_north; // north velocity in local/body frame, fps
|
double v_north; // north velocity in local/body frame, fps
|
||||||
double v_east; // east velocity in local/body frame, fps
|
double v_east; // east velocity in local/body frame, fps
|
||||||
double v_down; // down/vertical velocity in local/body frame, fps
|
double v_down; // down/vertical velocity in local/body frame, fps
|
||||||
|
double v_wind_body_north; // north velocity in local/body frame
|
||||||
|
// relative to local airmass, fps
|
||||||
|
double v_wind_body_east; // east velocity in local/body frame
|
||||||
|
// relative to local airmass, fps
|
||||||
|
double v_wind_body_down; // down/vertical velocity in local/body
|
||||||
|
// frame relative to local airmass, fps
|
||||||
|
|
||||||
// Stall
|
// Stall
|
||||||
double stall_warning; // 0.0 - 1.0 indicating the amount of stall
|
double stall_warning; // 0.0 - 1.0 indicating the amount of stall
|
||||||
|
@ -81,6 +87,8 @@ public:
|
||||||
double A_Y_pilot; // Y accel in body frame ft/sec^2
|
double A_Y_pilot; // Y accel in body frame ft/sec^2
|
||||||
double A_Z_pilot; // Z accel in body frame ft/sec^2
|
double A_Z_pilot; // Z accel in body frame ft/sec^2
|
||||||
|
|
||||||
|
// Pressure
|
||||||
|
|
||||||
// Engine status
|
// Engine status
|
||||||
int num_engines; // Number of valid engines
|
int num_engines; // Number of valid engines
|
||||||
int eng_state[FG_MAX_ENGINES]; // Engine state (off, cranking, running)
|
int eng_state[FG_MAX_ENGINES]; // Engine state (off, cranking, running)
|
||||||
|
|
Loading…
Reference in a new issue