]> git.mxchange.org Git - flightgear.git/commitdiff
PVE serial output tweaks.
authorcurt <curt>
Fri, 1 Oct 1999 20:07:44 +0000 (20:07 +0000)
committercurt <curt>
Fri, 1 Oct 1999 20:07:44 +0000 (20:07 +0000)
Other minor tweaks.

src/Autopilot/autopilot.cxx
src/Cockpit/panel.cxx
src/FDM/LaRCsim.cxx
src/FDM/flight.hxx
src/GUI/gui.cxx
src/Main/fg_serial.cxx

index f2b8b46aead832cc7f03885f0701719b29c1696c..a3d91db1e7382f1869b7f4b10ea3ec94d863ce62 100644 (file)
@@ -1063,7 +1063,7 @@ void fgAPInit( fgAIRCRAFT *current_aircraft ) {
 
     // 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;
index d1a4382c0938e8b75849ccafa5ae3794d0f40b84..90c1dd3313c1f07c860dc616022a666d15489b7a 100644 (file)
@@ -580,7 +580,7 @@ void FGTexInstrument::UpdatePointer(void){
     if (alpha < alpha1)
         alpha = alpha1;
     if (alpha > alpha2)
-        alpha = alpha2;
+        alpha -= alpha2;
     xglMatrixMode(GL_MODELVIEW);  
     xglPushMatrix();
     xglLoadIdentity();
index d6a3be07d81c924865c732d5a1471519db97e27b..db8c352c7ab4f101baf8de212c36eae5650d211e 100644 (file)
@@ -305,7 +305,7 @@ int fgLaRCsim_2_FGInterface (FGInterface& f) {
     // 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 );
index fe238a11a8c9b79da64369c257910ceeecdf49a2..2e3d793942f0aeb93465bd96399ca6418a43628c 100644 (file)
@@ -447,15 +447,15 @@ public:
     
     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;
index bd5d15764b4a8241781233f9192e2ffbc88ccb82..fb4eb19ed0a3764e0e3d5fefd96739c30ef439bd 100644 (file)
@@ -195,6 +195,7 @@ void guiMotionFunc ( int x, int y )
        while (offset > full) {
          offset -= full;
        }
+       v->set_view_offset(offset);
        v->set_goal_view_offset(offset);
       }
 
@@ -221,6 +222,7 @@ void guiMouseFunc(int button, int updown, int x, int y)
       case MOUSE_YOKE:
        break;
       case MOUSE_VIEW:
+        current_view.set_view_offset( 0.00 );
         current_view.set_goal_view_offset( 0.00 );
        break;
       }
index fe65893fd57c23238505deb5f79fd4e6ec229a5b..59fbb1735ecfe9cbd597d46ad821bb705291887a 100644 (file)
@@ -529,7 +529,7 @@ static void send_rul_out( fgIOCHANNEL *p ) {
 // 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
@@ -572,7 +572,7 @@ static void send_pve_out( fgIOCHANNEL *p ) {
        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)