#include <cmath>
#include <cstdint>
#include <ctime>
#include <limits>
#include <numbers>
#include <optional>
#include <QtCore/QByteArray>
#include "GPSReceiverConfig.h"
Go to the source code of this file.
|
| namespace | GPSProtocolMath |
| | Unit conversions and geodesy shared by receiver families and their callers.
|
|
| constexpr double | GPSProtocolMath::degreesFromE7 (int32_t value) |
| | Degrees of a coordinate in 1e-7 degree units, as u-blox and MAVLink send them.
|
| constexpr double | GPSProtocolMath::metersFromMillimeters (int32_t value) |
| double | GPSProtocolMath::roundedToMillimeters (double meters) |
| | meters rounded to whole millimetres.
|
| std::optional< uint32_t > | GPSProtocolMath::tenthMillimeters (double meters) |
| | meters in 0.1 mm, truncated toward zero. Empty when not finite, negative or beyond a 32-bit unsigned field.
|
| Ecef | GPSProtocolMath::toEcef (const GPSEllipsoidPosition &position) |
| GPSEllipsoidPosition | GPSProtocolMath::fromEcef (const Ecef &position) |
| double | GPSProtocolMath::distance (const Ecef &left, const Ecef &right) |
| | Straight-line distance between left and right, in metres.
|
| bool | GPSProtocolMath::nearEarthSurface (const Ecef &position) |
| uint64_t | GPSProtocolMath::utcMicroseconds (int year, int month, int day, int hour, int minute, int second, int32_t nsec) |
| QByteArray | gpsFixedDecimal (double value, int decimals) |
◆ gpsFixedDecimal()
| QByteArray gpsFixedDecimal |
( |
double | value, |
|
|
int | decimals ) |
|
nodiscard |