openpilot v0.4.6 release

old-commit-hash: c6df34f55b
This commit is contained in:
Vehicle Researcher
2018-05-23 03:59:04 +00:00
parent a481644949
commit 8fc7b0b828
119 changed files with 535 additions and 389 deletions
+3 -6
View File
@@ -114,12 +114,9 @@ on of this parser
self.valid = (iode1 == iode2) and (iode1 == (iodc & 0xff))
self.iode = iode1
if GET_FIELD_U(subframes[4][2+0], 2, 28) != 1:
raise RuntimeError("subframe 4 not of type 1")
if GET_FIELD_U(subframes[5][2+0], 2, 28) != 1:
raise RuntimeError("subframe 5 not of type 1")
print 'page :', GET_FIELD_U(subframes[4][2+0], 6, 22)
if GET_FIELD_U(subframes[4][2+0], 6, 22) == 56:
if GET_FIELD_U(subframes[4][2+0], 6, 22) == 56 and \
GET_FIELD_U(subframes[4][2+0], 2, 28) == 1 and \
GET_FIELD_U(subframes[5][2+0], 2, 28) == 1:
a0 = GET_FIELD_S(subframes[4][2], 8, 14) * pow(2, -30)
a1 = GET_FIELD_S(subframes[4][2], 8, 6) * pow(2, -27)
a2 = GET_FIELD_S(subframes[4][3], 8, 22) * pow(2, -24)