mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-13 11:53:45 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 41e3a0f699 |
@@ -315,6 +315,8 @@ struct Live100Data {
|
|||||||
alertText1 @24 :Text;
|
alertText1 @24 :Text;
|
||||||
alertText2 @25 :Text;
|
alertText2 @25 :Text;
|
||||||
awarenessStatus @26 :Float32;
|
awarenessStatus @26 :Float32;
|
||||||
|
|
||||||
|
angleOffset @27 :Float32;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct LiveEventData {
|
struct LiveEventData {
|
||||||
|
|||||||
+1
-1
Submodule panda updated: 49c1e9c3da...be7d2ee397
@@ -1 +1 @@
|
|||||||
const char *openpilot_version = "0.3.0";
|
const char *openpilot_version = "0.3.1";
|
||||||
|
|||||||
@@ -380,6 +380,9 @@ def controlsd_thread(gctx, rate=100): #rate in Hz
|
|||||||
dat.live100.aTargetMax = float(plan.aTargetMax)
|
dat.live100.aTargetMax = float(plan.aTargetMax)
|
||||||
dat.live100.jerkFactor = float(plan.jerkFactor)
|
dat.live100.jerkFactor = float(plan.jerkFactor)
|
||||||
|
|
||||||
|
# log learned angle offset
|
||||||
|
dat.live100.angleOffset = float(angle_offset)
|
||||||
|
|
||||||
# lag
|
# lag
|
||||||
dat.live100.cumLagMs = -rk.remaining*1000.
|
dat.live100.cumLagMs = -rk.remaining*1000.
|
||||||
|
|
||||||
|
|||||||
@@ -219,12 +219,14 @@ def manager_thread():
|
|||||||
if os.getenv("NOPROG") is None:
|
if os.getenv("NOPROG") is None:
|
||||||
# checkout the matching panda repo
|
# checkout the matching panda repo
|
||||||
rootdir = os.path.dirname(os.path.abspath(__file__))
|
rootdir = os.path.dirname(os.path.abspath(__file__))
|
||||||
os.system("cd %s && git submodule init && git submodule update" % rootdir)
|
ret = os.system("cd %s && git submodule init && git submodule update" % rootdir)
|
||||||
|
cloudlog.info("git submodule update panda returned %d" % ret)
|
||||||
# flash the board
|
# flash the board
|
||||||
boarddir = os.path.dirname(os.path.abspath(__file__))+"/../panda/board/"
|
boarddir = os.path.dirname(os.path.abspath(__file__))+"/../panda/board/"
|
||||||
mkfile = "Makefile" if panda else "Makefile.legacy"
|
mkfile = "Makefile" if panda else "Makefile.legacy"
|
||||||
print "using", mkfile
|
print "using", mkfile
|
||||||
os.system("cd %s && make -f %s" % (boarddir, mkfile))
|
ret = os.system("cd %s && make -f %s" % (boarddir, mkfile))
|
||||||
|
cloudlog.info("flash board returned %d" % ret)
|
||||||
|
|
||||||
start_managed_process("boardd")
|
start_managed_process("boardd")
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user