// the user is switching views.
net->hground = cur_fdm_state->get_ground_elev_ft() * SG_FEET_TO_METER;
net->magvar = fgGetDouble("/environment/magnetic-variation-deg");
+
+ net->icing = fgGetDouble("/hazards/icing/wing");
+
net->speedup = fgGetInt("/sim/speed-up");
net->freeze = 0;
if ( honor_freezes ) {
htond(net->press_inhg);
htond(net->hground);
htond(net->magvar);
+ net->icing = htonl(net->icing);
net->speedup = htonl(net->speedup);
net->freeze = htonl(net->freeze);
}
htond(net->press_inhg);
htond(net->hground);
htond(net->magvar);
+ net->icing = htonl(net->icing);
net->speedup = htonl(net->speedup);
net->freeze = htonl(net->freeze);
}
// ground elevation ???
+ fgSetDouble("/hazards/icing/wing", net->icing);
+
fgSetInt( "/sim/speed-up", net->speedup );
if ( honor_freezes ) {
# error This library requires C++
#endif
-const int FG_NET_CTRLS_VERSION = 20;
+const int FG_NET_CTRLS_VERSION = 21;
// Define a structure containing the control parameters
double hground; // ground elevation (meters)
double magvar; // local magnetic variation in degs.
+ // hazards
+ bool icing; // icing status could me much
+ // more complex but I'm
+ // starting simple here.
+
// simulation control
int speedup; // integer speedup multiplier
int freeze; // 0=normal