1 // flight.c -- a general interface to the various flight models
3 // Written by Curtis Olson, started May 1997.
5 // Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 #include <simgear/constants.h>
27 #include <simgear/debug/logstream.hxx>
28 #include <simgear/math/sg_geodesy.hxx>
29 #include <simgear/timing/timestamp.hxx>
31 #include <Scenery/scenery.hxx>
32 #include <FDM/LaRCsim/ls_interface.h>
33 #include <Main/globals.hxx>
35 #include "External.hxx"
38 #include "LaRCsim.hxx"
42 // base_fdm_state is the internal state that is updated in integer
43 // multiples of "dt". This leads to "jitter" with respect to the real
44 // world time, so we introduce cur_fdm_state which is extrapolated by
45 // the difference between sim time and real world time
47 FGInterface *cur_fdm_state;
48 FGInterface base_fdm_state;
50 inline void init_vec(FG_VECTOR_3 vec) {
51 vec[0] = 0.0; vec[1] = 0.0; vec[2] = 0.0;
54 FGEngInterface::FGEngInterface(void) {
70 FGEngInterface::~FGEngInterface(void) {
75 FGInterface::FGInterface(void) {
76 init_vec( d_pilot_rp_body_v );
77 init_vec( d_cg_rp_body_v );
78 init_vec( f_body_total_v );
79 init_vec( f_local_total_v );
81 init_vec( f_engine_v );
83 init_vec( m_total_rp_v );
84 init_vec( m_total_cg_v );
86 init_vec( m_engine_v );
88 init_vec( v_dot_local_v );
89 init_vec( v_dot_body_v );
90 init_vec( a_cg_body_v );
91 init_vec( a_pilot_body_v );
92 init_vec( n_cg_body_v );
93 init_vec( n_pilot_body_v );
94 init_vec( omega_dot_body_v );
95 init_vec( v_local_v );
96 init_vec( v_local_rel_ground_v );
97 init_vec( v_local_airmass_v );
98 init_vec( v_local_rel_airmass_v );
99 init_vec( v_local_gust_v );
100 init_vec( v_wind_body_v );
101 init_vec( omega_body_v );
102 init_vec( omega_local_v );
103 init_vec( omega_total_v );
104 init_vec( euler_rates_v );
105 init_vec( geocentric_rates_v );
106 init_vec( geocentric_position_v );
107 init_vec( geodetic_position_v );
108 init_vec( euler_angles_v );
109 init_vec( d_cg_rwy_local_v );
110 init_vec( d_cg_rwy_rwy_v );
111 init_vec( d_pilot_rwy_local_v );
112 init_vec( d_pilot_rwy_rwy_v );
113 init_vec( t_local_to_body_m[0] );
114 init_vec( t_local_to_body_m[1] );
115 init_vec( t_local_to_body_m[2] );
117 mass=i_xx=i_yy=i_zz=i_xz=0;
119 v_rel_wind=v_true_kts=v_rel_ground=v_inertial=0;
120 v_ground_speed=v_equiv=v_equiv_kts=0;
121 v_calibrated=v_calibrated_kts=0;
123 centrifugal_relief=0;
124 alpha=beta=alpha_dot=beta_dot=0;
125 cos_alpha=sin_alpha=cos_beta=sin_beta=0;
126 cos_phi=sin_phi=cos_theta=sin_theta=cos_psi=sin_psi=0;
127 gamma_vert_rad=gamma_horiz_rad=0;
128 sigma=density=v_sound=mach_number=0;
129 static_pressure=total_pressure=impact_pressure=0;
131 static_temperature=total_temperature=0;
132 sea_level_radius=earth_position_angle=0;
133 runway_altitude=runway_latitude=runway_longitude=0;
137 sin_lat_geocentric=cos_lat_geocentric=0;
138 sin_latitude=cos_latitude=0;
139 sin_longitude=cos_longitude=0;
145 FGInterface::~FGInterface() {
149 bool FGInterface::init( double dt ) {
150 cout << "dummy init() ... SHOULDN'T BE CALLED!" << endl;
155 bool FGInterface::update( int multi_loop ) {
156 cout << "dummy update() ... SHOULDN'T BE CALLED!" << endl;
161 void FGInterface::_updatePosition( double lat_geoc, double lon, double alt ) {
162 double lat_geod, tmp_alt, sl_radius1, sl_radius2, tmp_lat_geoc;
164 sgGeocToGeod( lat_geoc, EQUATORIAL_RADIUS_M + alt * FEET_TO_METER,
165 &lat_geod, &tmp_alt, &sl_radius1 );
166 sgGeodToGeoc( lat_geod, alt * FEET_TO_METER, &sl_radius2, &tmp_lat_geoc );
168 FG_LOG( FG_FLIGHT, FG_DEBUG, "lon = " << lon
169 << " lat_geod = " << lat_geod
170 << " lat_geoc = " << lat_geoc
172 << " tmp_alt = " << tmp_alt * METER_TO_FEET
173 << " sl_radius1 = " << sl_radius1 * METER_TO_FEET
174 << " sl_radius2 = " << sl_radius2 * METER_TO_FEET
175 << " Equator = " << EQUATORIAL_RADIUS_FT );
177 _set_Geocentric_Position( lat_geoc, lon,
178 sl_radius2 * METER_TO_FEET + alt );
180 _set_Geodetic_Position( lat_geod, lon, alt );
182 _set_Sea_level_radius( sl_radius2 * METER_TO_FEET );
183 _set_Runway_altitude( scenery.cur_elev*METERS_TO_FEET );
185 _set_sin_lat_geocentric( lat_geoc );
186 _set_cos_lat_geocentric( lat_geoc );
188 _set_sin_cos_longitude( lon );
190 _set_sin_cos_latitude( lat_geod );
192 /* Norman's code for slope of the terrain */
193 /* needs to be tested -- get it on the HUD and taxi around */
194 /* double *tnorm = scenery.cur_normal;
196 double sy = sin ( -get_Psi() ) ;
197 double cy = cos ( -get_Psi() ) ;
199 double phitb, thetatb, psitb;
200 if(tnorm[1] != 0.0) {
201 psitb = -atan2 ( tnorm[0], tnorm[1] );
203 if(tnorm[2] != 0.0) {
204 thetatb = atan2 ( tnorm[0] * cy - tnorm[1] * sy, tnorm[2] );
205 phitb = -atan2 ( tnorm[1] * cy + tnorm[0] * sy, tnorm[2] );
208 _set_terrain_slope(phitb, thetatb, psitb)
213 // Extrapolate fdm based on time_offset (in usec)
214 void FGInterface::extrapolate( int time_offset ) {
215 double dt = time_offset / 1000000.0;
217 // -dw- metrowerks complains about ambiguous access, not critical
220 cout << "extrapolating FDM by dt = " << dt << endl;
223 double lat = geodetic_position_v[0] + geocentric_rates_v[0] * dt;
224 double lat_geoc = geocentric_position_v[0] + geocentric_rates_v[0] * dt;
226 double lon = geodetic_position_v[1] + geocentric_rates_v[1] * dt;
227 double lon_geoc = geocentric_position_v[1] + geocentric_rates_v[1] * dt;
229 double alt = geodetic_position_v[2] + geocentric_rates_v[2] * dt;
230 double radius = geocentric_position_v[2] + geocentric_rates_v[2] * dt;
232 geodetic_position_v[0] = lat;
233 geocentric_position_v[0] = lat_geoc;
235 geodetic_position_v[1] = lon;
236 geocentric_position_v[1] = lon_geoc;
238 geodetic_position_v[2] = alt;
239 geocentric_position_v[2] = radius;
243 // Set the altitude (force)
244 void fgFDMForceAltitude(int model, double alt_meters) {
245 double sea_level_radius_meters;
248 // Set the FG variables first
249 sgGeodToGeoc( base_fdm_state.get_Latitude(), alt_meters,
250 &sea_level_radius_meters, &lat_geoc);
252 base_fdm_state.set_Altitude( alt_meters * METER_TO_FEET );
253 base_fdm_state.set_Sea_level_radius( sea_level_radius_meters *
257 // additional work needed for some flight models
258 if ( model == FGInterface::FG_LARCSIM ) {
259 ls_ForceAltitude( base_fdm_state.get_Altitude() );
264 // Set the local ground elevation
265 void fgFDMSetGroundElevation(int model, double ground_meters) {
266 FG_LOG( FG_FLIGHT,FG_INFO, "fgFDMSetGroundElevation: "
267 << ground_meters*METER_TO_FEET );
268 base_fdm_state.set_Runway_altitude( ground_meters * METER_TO_FEET );
269 cur_fdm_state->set_Runway_altitude( ground_meters * METER_TO_FEET );
274 void FGInterface::set_Latitude(double lat) {
275 geodetic_position_v[0] = lat;
278 void FGInterface::set_Longitude(double lon) {
279 geodetic_position_v[1] = lon;
282 void FGInterface::set_Altitude(double alt) {
283 geodetic_position_v[2] = alt;
286 void FGInterface::set_AltitudeAGL(double altagl) {
291 void FGInterface::set_V_calibrated_kts(double vc) {
292 v_calibrated_kts = vc;
295 void FGInterface::set_Mach_number(double mach) {
299 void FGInterface::set_Velocities_Local( double north,
302 v_local_v[0] = north;
307 void FGInterface::set_Velocities_Wind_Body( double u,
310 v_wind_body_v[0] = u;
311 v_wind_body_v[1] = v;
312 v_wind_body_v[2] = w;
316 void FGInterface::set_Euler_Angles( double phi,
319 euler_angles_v[0] = phi;
320 euler_angles_v[1] = theta;
321 euler_angles_v[2] = psi;
325 void FGInterface::set_Climb_Rate( double roc) {
329 void FGInterface::set_Gamma_vert_rad( double gamma) {
330 gamma_vert_rad = gamma;
334 void FGInterface::set_Sea_level_radius(double slr) {
335 sea_level_radius = slr;
338 void FGInterface::set_Runway_altitude(double ralt) {
339 runway_altitude = ralt;
342 void FGInterface::set_Static_pressure(double p) { static_pressure = p; }
343 void FGInterface::set_Static_temperature(double T) { static_temperature = T; }
344 void FGInterface::set_Density(double rho) { density = rho; }
346 void FGInterface::set_Velocities_Local_Airmass (double wnorth,
349 v_local_airmass_v[0] = wnorth;
350 v_local_airmass_v[1] = weast;
351 v_local_airmass_v[2] = wdown;
355 void FGInterface::_busdump(void) {
357 FG_LOG(FG_FLIGHT,FG_INFO,"d_pilot_rp_body_v[3]: " << d_pilot_rp_body_v[0] << ", " << d_pilot_rp_body_v[1] << ", " << d_pilot_rp_body_v[2]);
358 FG_LOG(FG_FLIGHT,FG_INFO,"d_cg_rp_body_v[3]: " << d_cg_rp_body_v[0] << ", " << d_cg_rp_body_v[1] << ", " << d_cg_rp_body_v[2]);
359 FG_LOG(FG_FLIGHT,FG_INFO,"f_body_total_v[3]: " << f_body_total_v[0] << ", " << f_body_total_v[1] << ", " << f_body_total_v[2]);
360 FG_LOG(FG_FLIGHT,FG_INFO,"f_local_total_v[3]: " << f_local_total_v[0] << ", " << f_local_total_v[1] << ", " << f_local_total_v[2]);
361 FG_LOG(FG_FLIGHT,FG_INFO,"f_aero_v[3]: " << f_aero_v[0] << ", " << f_aero_v[1] << ", " << f_aero_v[2]);
362 FG_LOG(FG_FLIGHT,FG_INFO,"f_engine_v[3]: " << f_engine_v[0] << ", " << f_engine_v[1] << ", " << f_engine_v[2]);
363 FG_LOG(FG_FLIGHT,FG_INFO,"f_gear_v[3]: " << f_gear_v[0] << ", " << f_gear_v[1] << ", " << f_gear_v[2]);
364 FG_LOG(FG_FLIGHT,FG_INFO,"m_total_rp_v[3]: " << m_total_rp_v[0] << ", " << m_total_rp_v[1] << ", " << m_total_rp_v[2]);
365 FG_LOG(FG_FLIGHT,FG_INFO,"m_total_cg_v[3]: " << m_total_cg_v[0] << ", " << m_total_cg_v[1] << ", " << m_total_cg_v[2]);
366 FG_LOG(FG_FLIGHT,FG_INFO,"m_aero_v[3]: " << m_aero_v[0] << ", " << m_aero_v[1] << ", " << m_aero_v[2]);
367 FG_LOG(FG_FLIGHT,FG_INFO,"m_engine_v[3]: " << m_engine_v[0] << ", " << m_engine_v[1] << ", " << m_engine_v[2]);
368 FG_LOG(FG_FLIGHT,FG_INFO,"m_gear_v[3]: " << m_gear_v[0] << ", " << m_gear_v[1] << ", " << m_gear_v[2]);
369 FG_LOG(FG_FLIGHT,FG_INFO,"v_dot_local_v[3]: " << v_dot_local_v[0] << ", " << v_dot_local_v[1] << ", " << v_dot_local_v[2]);
370 FG_LOG(FG_FLIGHT,FG_INFO,"v_dot_body_v[3]: " << v_dot_body_v[0] << ", " << v_dot_body_v[1] << ", " << v_dot_body_v[2]);
371 FG_LOG(FG_FLIGHT,FG_INFO,"a_cg_body_v[3]: " << a_cg_body_v[0] << ", " << a_cg_body_v[1] << ", " << a_cg_body_v[2]);
372 FG_LOG(FG_FLIGHT,FG_INFO,"a_pilot_body_v[3]: " << a_pilot_body_v[0] << ", " << a_pilot_body_v[1] << ", " << a_pilot_body_v[2]);
373 FG_LOG(FG_FLIGHT,FG_INFO,"n_cg_body_v[3]: " << n_cg_body_v[0] << ", " << n_cg_body_v[1] << ", " << n_cg_body_v[2]);
374 FG_LOG(FG_FLIGHT,FG_INFO,"n_pilot_body_v[3]: " << n_pilot_body_v[0] << ", " << n_pilot_body_v[1] << ", " << n_pilot_body_v[2]);
375 FG_LOG(FG_FLIGHT,FG_INFO,"omega_dot_body_v[3]: " << omega_dot_body_v[0] << ", " << omega_dot_body_v[1] << ", " << omega_dot_body_v[2]);
376 FG_LOG(FG_FLIGHT,FG_INFO,"v_local_v[3]: " << v_local_v[0] << ", " << v_local_v[1] << ", " << v_local_v[2]);
377 FG_LOG(FG_FLIGHT,FG_INFO,"v_local_rel_ground_v[3]: " << v_local_rel_ground_v[0] << ", " << v_local_rel_ground_v[1] << ", " << v_local_rel_ground_v[2]);
378 FG_LOG(FG_FLIGHT,FG_INFO,"v_local_airmass_v[3]: " << v_local_airmass_v[0] << ", " << v_local_airmass_v[1] << ", " << v_local_airmass_v[2]);
379 FG_LOG(FG_FLIGHT,FG_INFO,"v_local_rel_airmass_v[3]: " << v_local_rel_airmass_v[0] << ", " << v_local_rel_airmass_v[1] << ", " << v_local_rel_airmass_v[2]);
380 FG_LOG(FG_FLIGHT,FG_INFO,"v_local_gust_v[3]: " << v_local_gust_v[0] << ", " << v_local_gust_v[1] << ", " << v_local_gust_v[2]);
381 FG_LOG(FG_FLIGHT,FG_INFO,"v_wind_body_v[3]: " << v_wind_body_v[0] << ", " << v_wind_body_v[1] << ", " << v_wind_body_v[2]);
382 FG_LOG(FG_FLIGHT,FG_INFO,"omega_body_v[3]: " << omega_body_v[0] << ", " << omega_body_v[1] << ", " << omega_body_v[2]);
383 FG_LOG(FG_FLIGHT,FG_INFO,"omega_local_v[3]: " << omega_local_v[0] << ", " << omega_local_v[1] << ", " << omega_local_v[2]);
384 FG_LOG(FG_FLIGHT,FG_INFO,"omega_total_v[3]: " << omega_total_v[0] << ", " << omega_total_v[1] << ", " << omega_total_v[2]);
385 FG_LOG(FG_FLIGHT,FG_INFO,"euler_rates_v[3]: " << euler_rates_v[0] << ", " << euler_rates_v[1] << ", " << euler_rates_v[2]);
386 FG_LOG(FG_FLIGHT,FG_INFO,"geocentric_rates_v[3]: " << geocentric_rates_v[0] << ", " << geocentric_rates_v[1] << ", " << geocentric_rates_v[2]);
387 FG_LOG(FG_FLIGHT,FG_INFO,"geocentric_position_v[3]: " << geocentric_position_v[0] << ", " << geocentric_position_v[1] << ", " << geocentric_position_v[2]);
388 FG_LOG(FG_FLIGHT,FG_INFO,"geodetic_position_v[3]: " << geodetic_position_v[0] << ", " << geodetic_position_v[1] << ", " << geodetic_position_v[2]);
389 FG_LOG(FG_FLIGHT,FG_INFO,"euler_angles_v[3]: " << euler_angles_v[0] << ", " << euler_angles_v[1] << ", " << euler_angles_v[2]);
390 FG_LOG(FG_FLIGHT,FG_INFO,"d_cg_rwy_local_v[3]: " << d_cg_rwy_local_v[0] << ", " << d_cg_rwy_local_v[1] << ", " << d_cg_rwy_local_v[2]);
391 FG_LOG(FG_FLIGHT,FG_INFO,"d_cg_rwy_rwy_v[3]: " << d_cg_rwy_rwy_v[0] << ", " << d_cg_rwy_rwy_v[1] << ", " << d_cg_rwy_rwy_v[2]);
392 FG_LOG(FG_FLIGHT,FG_INFO,"d_pilot_rwy_local_v[3]: " << d_pilot_rwy_local_v[0] << ", " << d_pilot_rwy_local_v[1] << ", " << d_pilot_rwy_local_v[2]);
393 FG_LOG(FG_FLIGHT,FG_INFO,"d_pilot_rwy_rwy_v[3]: " << d_pilot_rwy_rwy_v[0] << ", " << d_pilot_rwy_rwy_v[1] << ", " << d_pilot_rwy_rwy_v[2]);
395 FG_LOG(FG_FLIGHT,FG_INFO,"t_local_to_body_m[0][3]: " << t_local_to_body_m[0][0] << ", " << t_local_to_body_m[0][1] << ", " << t_local_to_body_m[0][2]);
396 FG_LOG(FG_FLIGHT,FG_INFO,"t_local_to_body_m[1][3]: " << t_local_to_body_m[1][0] << ", " << t_local_to_body_m[1][1] << ", " << t_local_to_body_m[1][2]);
397 FG_LOG(FG_FLIGHT,FG_INFO,"t_local_to_body_m[2][3]: " << t_local_to_body_m[2][0] << ", " << t_local_to_body_m[2][1] << ", " << t_local_to_body_m[2][2]);
399 FG_LOG(FG_FLIGHT,FG_INFO,"mass: " << mass );
400 FG_LOG(FG_FLIGHT,FG_INFO,"i_xx: " << i_xx );
401 FG_LOG(FG_FLIGHT,FG_INFO,"i_yy: " << i_yy );
402 FG_LOG(FG_FLIGHT,FG_INFO,"i_zz: " << i_zz );
403 FG_LOG(FG_FLIGHT,FG_INFO,"i_xz: " << i_xz );
404 FG_LOG(FG_FLIGHT,FG_INFO,"nlf: " << nlf );
405 FG_LOG(FG_FLIGHT,FG_INFO,"v_rel_wind: " << v_rel_wind );
406 FG_LOG(FG_FLIGHT,FG_INFO,"v_true_kts: " << v_true_kts );
407 FG_LOG(FG_FLIGHT,FG_INFO,"v_rel_ground: " << v_rel_ground );
408 FG_LOG(FG_FLIGHT,FG_INFO,"v_inertial: " << v_inertial );
409 FG_LOG(FG_FLIGHT,FG_INFO,"v_ground_speed: " << v_ground_speed );
410 FG_LOG(FG_FLIGHT,FG_INFO,"v_equiv: " << v_equiv );
411 FG_LOG(FG_FLIGHT,FG_INFO,"v_equiv_kts: " << v_equiv_kts );
412 FG_LOG(FG_FLIGHT,FG_INFO,"v_calibrated: " << v_calibrated );
413 FG_LOG(FG_FLIGHT,FG_INFO,"v_calibrated_kts: " << v_calibrated_kts );
414 FG_LOG(FG_FLIGHT,FG_INFO,"gravity: " << gravity );
415 FG_LOG(FG_FLIGHT,FG_INFO,"centrifugal_relief: " << centrifugal_relief );
416 FG_LOG(FG_FLIGHT,FG_INFO,"alpha: " << alpha );
417 FG_LOG(FG_FLIGHT,FG_INFO,"beta: " << beta );
418 FG_LOG(FG_FLIGHT,FG_INFO,"alpha_dot: " << alpha_dot );
419 FG_LOG(FG_FLIGHT,FG_INFO,"beta_dot: " << beta_dot );
420 FG_LOG(FG_FLIGHT,FG_INFO,"cos_alpha: " << cos_alpha );
421 FG_LOG(FG_FLIGHT,FG_INFO,"sin_alpha: " << sin_alpha );
422 FG_LOG(FG_FLIGHT,FG_INFO,"cos_beta: " << cos_beta );
423 FG_LOG(FG_FLIGHT,FG_INFO,"sin_beta: " << sin_beta );
424 FG_LOG(FG_FLIGHT,FG_INFO,"cos_phi: " << cos_phi );
425 FG_LOG(FG_FLIGHT,FG_INFO,"sin_phi: " << sin_phi );
426 FG_LOG(FG_FLIGHT,FG_INFO,"cos_theta: " << cos_theta );
427 FG_LOG(FG_FLIGHT,FG_INFO,"sin_theta: " << sin_theta );
428 FG_LOG(FG_FLIGHT,FG_INFO,"cos_psi: " << cos_psi );
429 FG_LOG(FG_FLIGHT,FG_INFO,"sin_psi: " << sin_psi );
430 FG_LOG(FG_FLIGHT,FG_INFO,"gamma_vert_rad: " << gamma_vert_rad );
431 FG_LOG(FG_FLIGHT,FG_INFO,"gamma_horiz_rad: " << gamma_horiz_rad );
432 FG_LOG(FG_FLIGHT,FG_INFO,"sigma: " << sigma );
433 FG_LOG(FG_FLIGHT,FG_INFO,"density: " << density );
434 FG_LOG(FG_FLIGHT,FG_INFO,"v_sound: " << v_sound );
435 FG_LOG(FG_FLIGHT,FG_INFO,"mach_number: " << mach_number );
436 FG_LOG(FG_FLIGHT,FG_INFO,"static_pressure: " << static_pressure );
437 FG_LOG(FG_FLIGHT,FG_INFO,"total_pressure: " << total_pressure );
438 FG_LOG(FG_FLIGHT,FG_INFO,"impact_pressure: " << impact_pressure );
439 FG_LOG(FG_FLIGHT,FG_INFO,"dynamic_pressure: " << dynamic_pressure );
440 FG_LOG(FG_FLIGHT,FG_INFO,"static_temperature: " << static_temperature );
441 FG_LOG(FG_FLIGHT,FG_INFO,"total_temperature: " << total_temperature );
442 FG_LOG(FG_FLIGHT,FG_INFO,"sea_level_radius: " << sea_level_radius );
443 FG_LOG(FG_FLIGHT,FG_INFO,"earth_position_angle: " << earth_position_angle );
444 FG_LOG(FG_FLIGHT,FG_INFO,"runway_altitude: " << runway_altitude );
445 FG_LOG(FG_FLIGHT,FG_INFO,"runway_latitude: " << runway_latitude );
446 FG_LOG(FG_FLIGHT,FG_INFO,"runway_longitude: " << runway_longitude );
447 FG_LOG(FG_FLIGHT,FG_INFO,"runway_heading: " << runway_heading );
448 FG_LOG(FG_FLIGHT,FG_INFO,"radius_to_rwy: " << radius_to_rwy );
449 FG_LOG(FG_FLIGHT,FG_INFO,"climb_rate: " << climb_rate );
450 FG_LOG(FG_FLIGHT,FG_INFO,"sin_lat_geocentric: " << sin_lat_geocentric );
451 FG_LOG(FG_FLIGHT,FG_INFO,"cos_lat_geocentric: " << cos_lat_geocentric );
452 FG_LOG(FG_FLIGHT,FG_INFO,"sin_longitude: " << sin_longitude );
453 FG_LOG(FG_FLIGHT,FG_INFO,"cos_longitude: " << cos_longitude );
454 FG_LOG(FG_FLIGHT,FG_INFO,"sin_latitude: " << sin_latitude );
455 FG_LOG(FG_FLIGHT,FG_INFO,"cos_latitude: " << cos_latitude );
456 FG_LOG(FG_FLIGHT,FG_INFO,"altitude_agl: " << altitude_agl );