mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-05 05:22:07 +08:00
23ee6342be
old-commit-hash: bc8ac03b15bdf46696a8e840dc48622e9ebda1e9
11 lines
294 B
Python
Executable File
11 lines
294 B
Python
Executable File
#!/usr/bin/env python3
|
|
import json
|
|
import sys
|
|
|
|
from common.params import Params
|
|
|
|
if __name__ == "__main__":
|
|
coords = sys.argv[1].split("/@")[-1].split("/")[0].split(",")
|
|
dest = {"latitude": float(coords[0]), "longitude": float(coords[1])}
|
|
Params().put("NavDestination", json.dumps(dest))
|