Both FDM set the heading to negative values when turning left
through north. This should be fixed by this commit.
// update euler angles
_set_Euler_Angles( get_Phi(), get_Theta(),
- fmod(get_Psi() + turn, SGD_2PI) );
+ SGMiscd::normalizePeriodic(0, SGD_2PI, get_Psi() + turn) );
_set_Euler_Rates(0,0,0);
// update (lon/lat) position
sgGeodToGeoc( get_Latitude(), get_Altitude(), &sl_radius, &lat_geoc );
// update euler angles
- double heading = fmod(get_Psi() + turn + yaw, SGD_2PI);
+ double heading = SGMiscd::normalizePeriodic(0, SGD_2PI, get_Psi() + turn + yaw );
_set_Euler_Angles(roll, pitch, heading);
_set_Euler_Rates(0,0,0);