Browse Source

Match GPS height step with upstream

Xi Ruoyao 5 years ago
parent
commit
3bedf0f6ef
1 changed files with 1 additions and 1 deletions
  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;