mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-26 08:22:05 +08:00
coords need to be float
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user