|
|
@ -30,7 +30,7 @@ from selfdrive.loggerd.config import ROOT |
|
|
|
from selfdrive.loggerd.xattr_cache import getxattr, setxattr |
|
|
|
from selfdrive.loggerd.xattr_cache import getxattr, setxattr |
|
|
|
from selfdrive.swaglog import cloudlog, SWAGLOG_DIR |
|
|
|
from selfdrive.swaglog import cloudlog, SWAGLOG_DIR |
|
|
|
import selfdrive.crash as crash |
|
|
|
import selfdrive.crash as crash |
|
|
|
from selfdrive.version import dirty, origin, branch, commit |
|
|
|
from selfdrive.version import dirty, origin, branch, commit, get_version, get_git_remote, get_git_branch, get_git_commit |
|
|
|
|
|
|
|
|
|
|
|
ATHENA_HOST = os.getenv('ATHENA_HOST', 'wss://athena.comma.ai') |
|
|
|
ATHENA_HOST = os.getenv('ATHENA_HOST', 'wss://athena.comma.ai') |
|
|
|
HANDLER_THREADS = int(os.getenv('HANDLER_THREADS', "4")) |
|
|
|
HANDLER_THREADS = int(os.getenv('HANDLER_THREADS', "4")) |
|
|
@ -132,6 +132,16 @@ def getMessage(service=None, timeout=1000): |
|
|
|
return ret.to_dict() |
|
|
|
return ret.to_dict() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@dispatcher.add_method |
|
|
|
|
|
|
|
def getVersion(): |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
"version": get_version(), |
|
|
|
|
|
|
|
"remote": get_git_remote(), |
|
|
|
|
|
|
|
"branch": get_git_branch(), |
|
|
|
|
|
|
|
"commit": get_git_commit(), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@dispatcher.add_method |
|
|
|
@dispatcher.add_method |
|
|
|
def setNavDestination(latitude=0, longitude=0): |
|
|
|
def setNavDestination(latitude=0, longitude=0): |
|
|
|
destination = { |
|
|
|
destination = { |
|
|
|