changed marker azimuth to course property, add math to handle true north convertion

This commit is contained in:
Valmo Trindade
2024-08-28 18:23:52 -03:00
parent e2dc5aa3ae
commit 5f2a1a79bc

View File

@@ -59,7 +59,7 @@ func parseMarkerArgs(args []string) (Marker, error) {
Latitude: latitude, Latitude: latitude,
Longitude: longitude, Longitude: longitude,
Speed: int(speed / 4), Speed: int(speed / 4),
Azimuth: int(bearing), Course: int(bearing) + 6,
Type: args[5], Type: args[5],
Name: args[6], Name: args[6],
HAE: int(altitude), HAE: int(altitude),