GPS GNSS
Dependencies: Vector3
Diff: GPS_HAPS.cpp
- Revision:
- 4:708e05b10257
- Parent:
- 3:b0d594e5d9e2
- Child:
- 5:f23265e8d4aa
diff -r b0d594e5d9e2 -r 708e05b10257 GPS_HAPS.cpp --- a/GPS_HAPS.cpp Tue Sep 07 08:24:31 2021 +0000 +++ b/GPS_HAPS.cpp Wed Sep 08 13:02:17 2021 +0000 @@ -217,7 +217,7 @@ while (Satellites <= 4 || Latitude == 0.0f || Longitude == 0.0f || Elevation == 0.0f) { } - CalcurateUnit(); + CalculateUnit(); } Vector3 GPS_HAPS::ToUniversalUnit() @@ -238,7 +238,7 @@ return (Radius + Elevation) * v; } -void GPS_HAPS::CalcurateUnit() +void GPS_HAPS::CalculateUnit() { Vector3 _d = -1.0f * ToUniversalUnit(); @@ -251,7 +251,7 @@ UniversalZeroUnitD = _d; } -void GPS_HAPS::Calcurate() +void GPS_HAPS::Calculate() { UniversalPosition = ToUniversal(); Vector3 relative = UniversalPosition - UniversalZeroPosition; @@ -259,7 +259,7 @@ Position = _position; } -Vector3 GPS_HAPS::Calcurate(Vector3 position) +Vector3 GPS_HAPS::Calculate(Vector3 position) { UniversalPosition = ToUniversal(); Vector3 relative = position - UniversalZeroPosition;