} else if ( arg.find( "--native-fdm=" ) == 0 ) {
add_channel( "native_fdm", arg.substr(13) );
} else if ( arg.find( "--mini-fdm=" ) == 0 ) {
- add_channel( "mini_fdm", arg.substr(13) );
+ add_channel( "mini_fdm", arg.substr(11) );
} else if ( arg.find( "--opengc=" ) == 0 ) {
// char stop;
// cout << "Adding channel for OpenGC Display" << endl; cin >> stop;
net->theta = cur_fdm_state->get_Theta();
net->psi = cur_fdm_state->get_Psi();
+ // Velocities
+ net->vcas = cur_fdm_state->get_V_calibrated_kts();
+ net->climb_rate = cur_fdm_state->get_Climb_Rate();
+
// Consumables
net->num_tanks = FGNetMiniFDM::FG_MAX_TANKS;
for ( i = 0; i < net->num_tanks; ++i ) {
htond(net->phi);
htond(net->theta);
htond(net->psi);
+ htond(net->vcas);
+ htond(net->climb_rate);
for ( i = 0; i < net->num_tanks; ++i ) {
htond(net->fuel_quantity[i]);
htond(net->phi);
htond(net->theta);
htond(net->psi);
+ htond(net->vcas);
+ htond(net->climb_rate);
net->num_tanks = htonl(net->num_tanks);
for ( i = 0; i < net->num_tanks; ++i ) {
net->theta,
net->psi );
+ cur_fdm_state->_set_V_calibrated_kts( net->vcas );
+ cur_fdm_state->_set_Climb_Rate( net->climb_rate );
+
for (i = 0; i < net->num_tanks; ++i ) {
SGPropertyNode * node
= fgGetNode("/consumables/fuel/tank", i, true);
double theta; // pitch (radians)
double psi; // yaw or true heading (radians)
+ // Velocities
+ double vcas;
+ double climb_rate; // feet per second
+
// Consumables
int num_tanks; // Max number of fuel tanks
double fuel_quantity[FG_MAX_TANKS];