mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-12 15:59:49 -05:00
Fixed AIS RX negative Lat/Long (#241)
This commit is contained in:
parent
9ecf765344
commit
aa77657092
@ -53,8 +53,7 @@ static std::string latlon(const Latitude latitude, const Longitude longitude) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static float latlon_float(const int32_t normalized) {
|
static float latlon_float(const int32_t normalized) {
|
||||||
const uint32_t normalized_abs = std::abs(normalized);
|
return ((((float) normalized) * 5) / 3) / (100 * 10000);
|
||||||
return ((((float) normalized_abs) * 5) / 3) / (100 * 10000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string mmsi(
|
static std::string mmsi(
|
||||||
|
Loading…
Reference in New Issue
Block a user