Other minor tweaks.
// Hardwired for now should be in options
// 25% max control variablilty 0.5 / 2.0
- APData->disengage_threshold = 0.5;
+ APData->disengage_threshold = 1.0;
#if !defined( USING_SLIDER_CLASS )
MaxRollAdjust = 2 * APData->MaxRoll;
if (alpha < alpha1)
alpha = alpha1;
if (alpha > alpha2)
- alpha = alpha2;
+ alpha -= alpha2;
xglMatrixMode(GL_MODELVIEW);
xglPushMatrix();
xglLoadIdentity();
// f.set_Velocities_Local_Rel_Airmass( V_north_rel_airmass,
// V_east_rel_airmass, V_down_rel_airmass );
// f.set_Velocities_Gust( U_gust, V_gust, W_gust );
- // f.set_Velocities_Wind_Body( U_body, V_body, W_body );
+ f.set_Velocities_Wind_Body( U_body, V_body, W_body );
// f.set_V_rel_wind( V_rel_wind );
// f.set_V_true_kts( V_true_kts );
FG_VECTOR_3 v_wind_body_v; // Wind-relative velocities in body axis
// inline double * get_V_wind_body_v() { return v_wind_body_v; }
- // inline double get_U_body() const { return v_wind_body_v[0]; }
- // inline double get_V_body() const { return v_wind_body_v[1]; }
- // inline double get_W_body() const { return v_wind_body_v[2]; }
- /* inline void set_Velocities_Wind_Body( double u, double v, double w)
+ inline double get_U_body() const { return v_wind_body_v[0]; }
+ inline double get_V_body() const { return v_wind_body_v[1]; }
+ inline double get_W_body() const { return v_wind_body_v[2]; }
+ inline void set_Velocities_Wind_Body( double u, double v, double w)
{
v_wind_body_v[0] = u;
v_wind_body_v[1] = v;
v_wind_body_v[2] = w;
- } */
+ }
double v_rel_wind, v_true_kts, v_rel_ground, v_inertial;
double v_ground_speed, v_equiv, v_equiv_kts;
while (offset > full) {
offset -= full;
}
+ v->set_view_offset(offset);
v->set_goal_view_offset(offset);
}
case MOUSE_YOKE:
break;
case MOUSE_VIEW:
+ current_view.set_view_offset( 0.00 );
current_view.set_goal_view_offset( 0.00 );
break;
}
// First bite: ASCII character "P" ( 0x50 or 80 decimal )
// Second byte: "roll" value (1-255) 1 being 0* and 255 being 359*
// Third byte: "pitch" value (1-255) 1 being 0* and 255 being 359*
-// Fourth byte: "heave" value (or forward acceleration)
+// Fourth byte: "heave" value (or vertical acceleration?)
//
// So sending 80 127 127 to the two axis motors will position on 180*
// The RS- 232 port is a nine pin connector and the only pins used are
pitch_deg -= 360;
}
- int heave = (int)(f->get_U_dot_body() * 3.0);
+ int heave = (int)(f->get_W_body());
// scale roll and pitch to output format (1 - 255)
// straight && level == (128, 128)