Maybe fixed an altitude problem.
This commit is contained in:
parent
e577d8c7ef
commit
d707c00c13
1 changed files with 3 additions and 0 deletions
|
@ -84,6 +84,9 @@ int FGMagicCarpet::update( int multiloop ) {
|
|||
|
||||
set_Geocentric_Position( lat_geoc, get_Longitude(),
|
||||
sl_radius + get_Altitude() + climb );
|
||||
// cout << "sea level radius (ft) = " << sl_radius << endl;
|
||||
// cout << "(setto) sea level radius (ft) = " << get_Sea_level_radius() << endl;
|
||||
set_Sea_level_radius( sl_radius * METER_TO_FEET);
|
||||
set_Altitude( get_Altitude() + climb );
|
||||
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue