openpilot v0.9.7 release

date: 2024-06-11T01:36:39
master commit: f8cb04e4a8
This commit is contained in:
Vehicle Researcher
2024-06-11 01:36:40 +00:00
parent fa724893fb
commit d64fb1838d
1014 changed files with 40763 additions and 16667 deletions
+3 -2
View File
@@ -8,6 +8,7 @@ from typing import NoReturn
from timezonefinder import TimezoneFinder
import cereal.messaging as messaging
from openpilot.common.time import system_time_valid
from openpilot.common.params import Params
from openpilot.common.swaglog import cloudlog
from openpilot.system.hardware import AGNOS
@@ -56,7 +57,6 @@ def main() -> NoReturn:
"""
params = Params()
tf = TimezoneFinder()
# Restore timezone from param
tz = params.get("Timezone", encoding='utf8')
@@ -70,7 +70,8 @@ def main() -> NoReturn:
while True:
sm.update(1000)
msg = messaging.new_message('clocks', valid=True)
msg = messaging.new_message('clocks')
msg.valid = system_time_valid()
msg.clocks.wallTimeNanos = time.time_ns()
pm.send('clocks', msg)