mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-28 00:53:45 +08:00
Type GPS binary fixture numeric fields
This commit is contained in:
@@ -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
@@ -1 +1 @@
|
||||
{"protected_inventory_sha256": "930837ba0fc177694202dee9f34e14500e180e414b5077f96e289d148fedc261", "schema_version": 1}
|
||||
{"protected_inventory_sha256": "9b444034a6346dfce39f799cea11f019d41a5cd95d58b6e96e0e1e694be747b6", "schema_version": 1}
|
||||
|
||||
Reference in New Issue
Block a user