Vivian MEAZZA: fix subsubmodels
This commit is contained in:
parent
bf02d9bdd0
commit
7d94177636
1 changed files with 3 additions and 4 deletions
|
@ -487,13 +487,12 @@ void FGSubmodelMgr::transform(submodel *sm)
|
|||
IC.azimuth += 360;
|
||||
else if (IC.azimuth >= 360)
|
||||
IC.azimuth -= 360;
|
||||
}
|
||||
// cout << "azimuth2 " << IC.azimuth<<endl;
|
||||
|
||||
// cout << "azimuth2 " << IC.azimuth<<endl;
|
||||
|
||||
IC.elevation = -atan(IC.total_speed_down / sqrt(IC.total_speed_north
|
||||
IC.elevation = -atan(IC.total_speed_down / sqrt(IC.total_speed_north
|
||||
* IC.total_speed_north + IC.total_speed_east * IC.total_speed_east))
|
||||
* SG_RADIANS_TO_DEGREES;
|
||||
}
|
||||
}
|
||||
|
||||
void FGSubmodelMgr::updatelat(double lat)
|
||||
|
|
Loading…
Add table
Reference in a new issue