mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Upfront of refs #369
* consolidated ICoordinateGeodetic (e.g. fixed nested properties) * shifted common functionality for objects/containers with callsign into interface * shifted common functionality for objects/containers with geo position into interface * shifted common functionality for objects/containers with timestamp into interface * updated corresponding value objects / specialized lists * adjusted all places where renamed functions are used
This commit is contained in:
@@ -118,13 +118,13 @@ namespace BlackSimPlugin
|
||||
// We want the distance in Latitude direction. Longitude must be equal for old and new position.
|
||||
helperPosition.setLatitude(newPosition.latitude());
|
||||
helperPosition.setLongitude(oldPosition.longitude());
|
||||
CLength distanceLatitudeObj = greatCircleDistance(oldPosition, helperPosition);
|
||||
CLength distanceLatitudeObj = calculateGreatCircleDistance(oldPosition, helperPosition);
|
||||
|
||||
|
||||
// Now we want the Longitude distance. Latitude must be equal for old and new position.
|
||||
helperPosition.setLatitude(oldPosition.latitude());
|
||||
helperPosition.setLongitude(newSituation.longitude());
|
||||
CLength distanceLongitudeObj = greatCircleDistance(oldPosition, helperPosition);
|
||||
CLength distanceLongitudeObj = calculateGreatCircleDistance(oldPosition, helperPosition);
|
||||
|
||||
// Latitude and Longitude velocity
|
||||
positionVelocity.lat_velocity = distanceLatitudeObj.value(CLengthUnit::ft()) * 65536.0 / updateInterval;
|
||||
|
||||
Reference in New Issue
Block a user