Fixed AIS RX negative Lat/Long (#241)

This commit is contained in:
mjwaxios 2019-05-06 19:59:49 -04:00 committed by Furrtek
parent 9ecf765344
commit aa77657092

View File

@ -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(