From aa77657092492591aefa5566cb14bf112ad3ef15 Mon Sep 17 00:00:00 2001
From: mjwaxios <mjw@axiosengineering.com>
Date: Mon, 6 May 2019 19:59:49 -0400
Subject: [PATCH] Fixed AIS RX  negative Lat/Long (#241)

---
 firmware/application/apps/ais_app.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/firmware/application/apps/ais_app.cpp b/firmware/application/apps/ais_app.cpp
index 3903cb67..89244e87 100644
--- a/firmware/application/apps/ais_app.cpp
+++ b/firmware/application/apps/ais_app.cpp
@@ -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(
-- 
GitLab