mirror of
https://github.com/dzid26/sunnypilot.git
synced 2026-06-08 07:44:55 +08:00
openpilot v0.2.5 release
old-commit-hash: 29c58b45882ac79595356caf98580c1d2a626011
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
Version 0.2.5 (2017-01-30)
|
||||
===========================
|
||||
* Fix race condition in manager
|
||||
|
||||
Version 0.2.4 (2017-01-27)
|
||||
===========================
|
||||
* OnePlus 3T support
|
||||
|
||||
@@ -1 +1 @@
|
||||
const char *openpilot_version = "0.2.4";
|
||||
const char *openpilot_version = "0.2.5";
|
||||
|
||||
@@ -18,7 +18,6 @@ from selfdrive.swaglog import cloudlog
|
||||
import selfdrive.messaging as messaging
|
||||
from selfdrive.thermal import read_thermal
|
||||
from selfdrive.registration import register
|
||||
from selfdrive.loggerd.uploader import Uploader
|
||||
|
||||
import common.crash
|
||||
|
||||
@@ -132,7 +131,7 @@ def cleanup_all_processes(signal, frame):
|
||||
# ****************** run loop ******************
|
||||
|
||||
def manager_init():
|
||||
global gctx, fake_uploader
|
||||
global gctx
|
||||
|
||||
reg_res = register()
|
||||
if reg_res:
|
||||
@@ -148,8 +147,6 @@ def manager_init():
|
||||
cloudlog.bind_global(dongle_id=dongle_id)
|
||||
common.crash.bind_user(dongle_id=dongle_id)
|
||||
|
||||
fake_uploader = Uploader(dongle_id, dongle_secret, ROOT)
|
||||
|
||||
# set gctx
|
||||
gctx = {
|
||||
"calibration": {
|
||||
@@ -251,10 +248,7 @@ def manager_thread():
|
||||
|
||||
# report to server once per minute
|
||||
if (count%60) == 0:
|
||||
names, total_size = fake_uploader.get_data_stats()
|
||||
cloudlog.event("STATUS_PACKET",
|
||||
names=names,
|
||||
total_size=total_size,
|
||||
running=running.keys(),
|
||||
count=count,
|
||||
health=(td.to_dict() if td else None),
|
||||
|
||||
Reference in New Issue
Block a user