]> git.mxchange.org Git - flightgear.git/commitdiff
Made the following properties archivable:
authorcurt <curt>
Thu, 12 Jul 2001 23:35:18 +0000 (23:35 +0000)
committercurt <curt>
Thu, 12 Jul 2001 23:35:18 +0000 (23:35 +0000)
- /position/latitude-deg
- /position/longitude-deg
- /position/altitude-ft
- /orientation/roll-deg
- /orientation/pitch-deg
- /orientation/heading-deg
- /velocities/speed-north-fps
- /velocities/speed-east-fps
- /velocities/speed-down-fps
(TODO: add rotational velocities)

src/FDM/flight.cxx

index 5c454769dc71a3bcf6fdc2b9b7a66f3a7eb970d3..8bd66f39a996d412e0fabc94a28810c62ef4f624 100644 (file)
@@ -270,14 +270,17 @@ FGInterface::bind ()
        &FGInterface::get_Latitude_deg,
        &FGInterface::set_Latitude_deg,
        false);
+  fgSetArchivable("/position/latitude-deg");
   fgTie("/position/longitude-deg", this,
        &FGInterface::get_Longitude_deg,
        &FGInterface::set_Longitude_deg,
        false);
+  fgSetArchivable("/position/longitude-deg");
   fgTie("/position/altitude-ft", this,
        &FGInterface::get_Altitude,
        &FGInterface::set_Altitude,
        false);
+  fgSetArchivable("/position/altitude-ft");
   fgTie("/position/altitude-agl-ft", this,
        &FGInterface::get_Altitude_AGL); // read-only
 
@@ -285,12 +288,15 @@ FGInterface::bind ()
   fgTie("/orientation/roll-deg", this,
        &FGInterface::get_Phi_deg,
        &FGInterface::set_Phi_deg);
+  fgSetArchivable("/orientation/roll-deg");
   fgTie("/orientation/pitch-deg", this,
        &FGInterface::get_Theta_deg,
        &FGInterface::set_Theta_deg);
+  fgSetArchivable("/orientation/pitch-deg");
   fgTie("/orientation/heading-deg", this,
        &FGInterface::get_Psi_deg,
        &FGInterface::set_Psi_deg);
+  fgSetArchivable("/orientation/heading-deg");
 
                                // Calibrated airspeed
   fgTie("/velocities/airspeed-kt", this,
@@ -301,12 +307,15 @@ FGInterface::bind ()
   fgTie("/velocities/speed-north-fps", this,
        &FGInterface::get_V_north,
        &FGInterface::set_V_north);
+  fgSetArchivable("/velocities/speed-north-fps");
   fgTie("/velocities/speed-east-fps", this,
        &FGInterface::get_V_east,
        &FGInterface::set_V_east);
+  fgSetArchivable("/velocities/speed-east-fps");
   fgTie("/velocities/speed-down-fps", this,
        &FGInterface::get_V_down,
        &FGInterface::set_V_down);
+  fgSetArchivable("/velocities/speed-down-fps");
 
                                // Relative wind
   fgTie("/velocities/uBody-fps", this,