Explorar o código

Match GPS height step with upstream

Xi Ruoyao %!s(int64=5) %!d(string=hai) anos
pai
achega
3bedf0f6ef
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      main.cc

+ 1 - 1
main.cc

@@ -158,7 +158,7 @@ static void parse_and_record_flight_data(const char *buf, size_t sz)
 				current.ils_height = height;
 			break;
 		case 0x87:
-			height = load<int32_t>(&buf[168]) * 0.1;
+			height = load<int32_t>(&buf[168]) * 0.01;
 			if (height >= -300 && height <= 100000)
 				current.gps_height = height;
 			break;