Handle agl data correctly (so that ultimately the replay system can place
aircraft shadows correctly.)
This commit is contained in:
parent
9b545fd648
commit
33afeef6f1
1 changed files with 2 additions and 0 deletions
|
@ -128,6 +128,7 @@ void FGProps2NetFDM( FGNetFDM *net, bool net_byte_order ) {
|
|||
net->longitude = cur_fdm_state->get_Longitude();
|
||||
net->latitude = cur_fdm_state->get_Latitude();
|
||||
net->altitude = cur_fdm_state->get_Altitude() * SG_FEET_TO_METER;
|
||||
net->agl = cur_fdm_state->get_Altitude_AGL() * SG_FEET_TO_METER;
|
||||
net->phi = cur_fdm_state->get_Phi();
|
||||
net->theta = cur_fdm_state->get_Theta();
|
||||
net->psi = cur_fdm_state->get_Psi();
|
||||
|
@ -335,6 +336,7 @@ void FGNetFDM2Props( FGNetFDM *net, bool net_byte_order ) {
|
|||
net->longitude,
|
||||
net->altitude
|
||||
* SG_METER_TO_FEET );
|
||||
cur_fdm_state->_set_Altitude_AGL( net->agl * SG_METER_TO_FEET );
|
||||
cur_fdm_state->_set_Euler_Angles( net->phi,
|
||||
net->theta,
|
||||
net->psi );
|
||||
|
|
Loading…
Reference in a new issue