]> git.mxchange.org Git - flightgear.git/commitdiff
Pass stall warning info in net_fdm.hxx
authorcurt <curt>
Fri, 27 Sep 2002 21:20:28 +0000 (21:20 +0000)
committercurt <curt>
Fri, 27 Sep 2002 21:20:28 +0000 (21:20 +0000)
src/FDM/ExternalNet.cxx
src/Network/net_fdm.hxx

index 8e6512af58046932dc135ade51da0cd9550cb2c8..fdf9bd7ebcfbd2006c463c0d630d64d042463536 100644 (file)
@@ -180,6 +180,7 @@ static void net2global( FGNetFDM *net ) {
     htond(net->v_north);
     htond(net->v_east);
     htond(net->v_down);
+    htond(net->stall_warning);
 
     htond(net->A_X_pilot);
     htond(net->A_Y_pilot);
@@ -227,6 +228,7 @@ static void net2global( FGNetFDM *net ) {
         cur_fdm_state->_set_Velocities_Local( net->v_north,
                                               net->v_east,
                                               net->v_down );
+        fgSetDouble( "/sim/aero/alarms/stall-warning", net->stall_warning );
         cur_fdm_state->_set_Accels_Pilot_Body( net->A_X_pilot,
                                               net->A_Y_pilot,
                                               net->A_Z_pilot );
index 7828bc3958a05b593e5d0e56cd83c91c2d811267..736d3ec210a78c298c427a87f9450ede06108be6 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <time.h> // time_t
 
-const int FG_NET_FDM_VERSION = 9;
+const int FG_NET_FDM_VERSION = 10;
 
 
 // Define a structure containing the top level flight dynamics model
@@ -73,6 +73,9 @@ public:
     double v_east;              // east velocity in local/body frame, fps
     double v_down;              // down/vertical velocity in local/body frame, fps
 
+    // Stall
+    double stall_warning;        // 0.0 - 1.0 indicating the amount of stall
+
     // Accelerations
     double A_X_pilot;          // X accel in body frame ft/sec^2
     double A_Y_pilot;          // Y accel in body frame ft/sec^2