mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-11 02:33:51 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 29c58b4588 |
@@ -1,3 +1,7 @@
|
|||||||
|
Version 0.2.5 (2017-01-30)
|
||||||
|
===========================
|
||||||
|
* Fix race condition in manager
|
||||||
|
|
||||||
Version 0.2.4 (2017-01-27)
|
Version 0.2.4 (2017-01-27)
|
||||||
===========================
|
===========================
|
||||||
* OnePlus 3T support
|
* 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
|
import selfdrive.messaging as messaging
|
||||||
from selfdrive.thermal import read_thermal
|
from selfdrive.thermal import read_thermal
|
||||||
from selfdrive.registration import register
|
from selfdrive.registration import register
|
||||||
from selfdrive.loggerd.uploader import Uploader
|
|
||||||
|
|
||||||
import common.crash
|
import common.crash
|
||||||
|
|
||||||
@@ -132,7 +131,7 @@ def cleanup_all_processes(signal, frame):
|
|||||||
# ****************** run loop ******************
|
# ****************** run loop ******************
|
||||||
|
|
||||||
def manager_init():
|
def manager_init():
|
||||||
global gctx, fake_uploader
|
global gctx
|
||||||
|
|
||||||
reg_res = register()
|
reg_res = register()
|
||||||
if reg_res:
|
if reg_res:
|
||||||
@@ -148,8 +147,6 @@ def manager_init():
|
|||||||
cloudlog.bind_global(dongle_id=dongle_id)
|
cloudlog.bind_global(dongle_id=dongle_id)
|
||||||
common.crash.bind_user(dongle_id=dongle_id)
|
common.crash.bind_user(dongle_id=dongle_id)
|
||||||
|
|
||||||
fake_uploader = Uploader(dongle_id, dongle_secret, ROOT)
|
|
||||||
|
|
||||||
# set gctx
|
# set gctx
|
||||||
gctx = {
|
gctx = {
|
||||||
"calibration": {
|
"calibration": {
|
||||||
@@ -251,10 +248,7 @@ def manager_thread():
|
|||||||
|
|
||||||
# report to server once per minute
|
# report to server once per minute
|
||||||
if (count%60) == 0:
|
if (count%60) == 0:
|
||||||
names, total_size = fake_uploader.get_data_stats()
|
|
||||||
cloudlog.event("STATUS_PACKET",
|
cloudlog.event("STATUS_PACKET",
|
||||||
names=names,
|
|
||||||
total_size=total_size,
|
|
||||||
running=running.keys(),
|
running=running.keys(),
|
||||||
count=count,
|
count=count,
|
||||||
health=(td.to_dict() if td else None),
|
health=(td.to_dict() if td else None),
|
||||||
|
|||||||
Reference in New Issue
Block a user