From 23ee6342be694aa3911227dd73b29df5d7178bc8 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 24 May 2021 00:56:45 -0700 Subject: [PATCH] coords need to be float old-commit-hash: bc8ac03b15bdf46696a8e840dc48622e9ebda1e9 --- selfdrive/ui/qt/maps/set_destination.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/maps/set_destination.py b/selfdrive/ui/qt/maps/set_destination.py index bc51a29c93..b9721171cc 100755 --- a/selfdrive/ui/qt/maps/set_destination.py +++ b/selfdrive/ui/qt/maps/set_destination.py @@ -6,5 +6,5 @@ from common.params import Params if __name__ == "__main__": coords = sys.argv[1].split("/@")[-1].split("/")[0].split(",") - dest = {"latitude": coords[0], "longitude": coords[1]} + dest = {"latitude": float(coords[0]), "longitude": float(coords[1])} Params().put("NavDestination", json.dumps(dest))