Type GPS binary fixture numeric fields

This commit is contained in:
Dom
2026-10-18 00:12:40 -05:00
parent d6f66df19d
commit 60d02accce
2 changed files with 2 additions and 2 deletions
@@ -22,7 +22,7 @@ from openpilot.starpilot.ui.onroad_map import MapFeed
def binary_position(axis, *, source=2, week=2400, vdop=2.):
fmt, names = parse_struct(position_report)
values = dict.fromkeys(names, 0)
values: dict[str, int | float] = dict.fromkeys(names, 0)
values.update({'u_PosSource': source, 'w_GpsWeekNumber': week, 'q_GpsFixTimeMs': 10000,
't_DblFinalPosLatLon[0]': math.radians(40), 't_DblFinalPosLatLon[1]': math.radians(-90),
'q_FltFinalPosAlt': 200., 'q_FltHeadingRad': 1., 'q_FltHeadingUncRad': .1,
+1 -1
View File
@@ -1 +1 @@
{"protected_inventory_sha256": "930837ba0fc177694202dee9f34e14500e180e414b5077f96e289d148fedc261", "schema_version": 1}
{"protected_inventory_sha256": "9b444034a6346dfce39f799cea11f019d41a5cd95d58b6e96e0e1e694be747b6", "schema_version": 1}