mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 14:59:24 -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) {
|
||||
const uint32_t normalized_abs = std::abs(normalized);
|
||||
return ((((float) normalized_abs) * 5) / 3) / (100 * 10000);
|
||||
return ((((float) normalized) * 5) / 3) / (100 * 10000);
|
||||
}
|
||||
|
||||
static std::string mmsi(
|
||||
|
Loading…
Reference in New Issue
Block a user