Skip to content

Commit 801f0f0

Browse files
authored
Promoting OP 0.6.5 to Devel (#126)
* fix ALCA module * Update ALCA_module.py * Promote panda fixes from alpha to devel (#98) * Fix for mock car crash * fix ALCA module * do not use * radar_interface logic improvements * remove radar logging * radar_interface refactoring * Log radar_interface CAN error, Process Comm Errors (#95) * Log radar_interface CAN error * Add support for process comm error logging * Improve Process Comm error logging * Can and CommError throttling * Update radar_interface.py * fixing push per Raf's comments * ALCA and radar_interface work (#96) (#97) * do not use * radar_interface logic improvements * remove radar logging * radar_interface refactoring * Update radar_interface.py * fixing push per Raf's comments * fix process comm issue * switch radard from lane_parser to model * radar/ALCA changes * fix lane width * switched back to not deleting CarParams to avoid radar failure when rebooting EON while driving * cleanup some debug info to be able to restart ALCA research * tweaks on safety_tesla.h for can bus isolation * few more cleanups to safety_tesla.h * fix start signal logic * Increase LEXUS_IS safetyParam to 77 (#841) * use list comprehension (#839) * use list comprehension * oops index range fix * simplify encode/decode in dbc (#840) * simplify encode/decode * 2019 Highlander Hybrid Limited Platinum (#843) fingerprint from ogdragonzypher on Discord * Allow to lock safety mode to keep gm/tesla cars supported (#844) * Force subaru to assume the stock camera is connected (#849) * Revert to using the sum of the lane line probabilities instead of the the product * Add core OP support for CRC validation, with extra support for Volkswagen MQB (#836) * Generalized core OP CRC support plus extra bits for Volkswagen MQB. * Update ref to process_replay regression test * Remove unneded use of replace, causing json to fail loading the alert * Add supported car for 2019 Toyota Altis Hybrid (#859) * add supported car for 2019 Toyota Altis Hybird / Corolla hybrid 2020 (US market) * remove unnecessary comprehensions (#863) * Added fingerprint from Sienna XLE AWD (#848) * Added fingerprint from Sienna XLE AWD * Update driver_monitor.py * Update driver_monitor.py * Update driver_monitor.py * fix stupid merge issue * Adds 2019 Lexus ES (non hybrid) (#866) * Adds 2019 Lexus ES (non hybrid) * Updated test route * merge issues * Update README with now supported Subaru Harness * Disable LDW for 4 seconds after blinker transition from on to off (#112) If we want to change lanes with a blinker tap (3 blink mode), then we need to disable LDW for enough time to allow a smooth manual lane change. 4 seconds as it seems the freq is actually around 50Hz, not 100Hz. * Disable HSO for 3 seconds after blinker has been active (#111) Avoid HSO will deactivate and try to take the car back into the lane during a manual lane change with blinker tapped (3 blinks mode) * params learner to only learn @ cons speed Acceleration/deceleration in turns affect yaw as measured by phone and will create potential issues with learner. This code changes the learner to only adjust parameters when speed is constant * Update to match new version of python in eons * python 3 fixes for test client / server * async/await server * Don't log for action message as it's too often, and we throttle it internally. * fix merge issue in thermald * fixes and tweaks; code simplification * Saving P,I,F parameters from pid controller (#116) Added separate save/load functions, try catch - and saving the right constants to the params file. * Feature/tinklad throttling + linting (#118) * Throttle tinlkad's attemptToSendPendingMessages * Remove get_git_remote from registration. It's defined in version already. * tinklad linting * tesla linting * Prevent multiple readings of the pid params file (#119) ..only load the pid values when we initiate the LoC * missing V_PID_FILE constant (#121) * show cars in IC for non-radar users (#120) * bug fixes * Fix issue where user info was being dropped on no connectivity (#122) * move pisParams, fix GPS logging * Bugfix tinklad throttling (#124) * ALCA4 (still in dev) * ALCA4 tuning * ALCA4 alpha release * ALCA4 tweak for turns * ACC fix; LDW mite during ALCA * ALCA polishing * fix enter_canloader.py for python 3 * should_ldw changes moved the should_ldw code closer together and added status messages for when LDW is active and inactive * thermald and ALCA * ALCA sinplified logic
1 parent da8f168 commit 801f0f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+867
-620
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,7 @@ openpilot
4646
notebooks
4747
xx
4848

49+
/selfdrive/tinklad/params
50+
/selfdrive/tinklad/bb_openpilot.cfg
51+
/selfdrive/tinklad/tinklad-cache
52+
/selfdrive/tinklad/bb_openpilot_config.cfg

.python-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.16
1+
3.7.3

README.md

+23-22
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ Supported Cars
6767
| ---------------------| ---------------------------| ---------------------| --------| ---------------| -----------------| ---------------|-------------------|
6868
| Acura | ILX 2016-18 | AcuraWatch Plus | Yes | Yes | 25mph<sup>1</sup>| 25mph | Nidec |
6969
| Acura | RDX 2016-18 | AcuraWatch Plus | Yes | Yes | 25mph<sup>1</sup>| 12mph | Nidec |
70-
| Buick<sup>3</sup> | Regal 2018 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>7</sup>|
71-
| Chevrolet<sup>3</sup>| Malibu 2017 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>7</sup>|
72-
| Chevrolet<sup>3</sup>| Volt 2017-18 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>7</sup>|
73-
| Cadillac<sup>3</sup> | ATS 2018 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>7</sup>|
70+
| Buick<sup>3</sup> | Regal 2018 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>6</sup>|
71+
| Chevrolet<sup>3</sup>| Malibu 2017 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>6</sup>|
72+
| Chevrolet<sup>3</sup>| Volt 2017-18 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>6</sup>|
73+
| Cadillac<sup>3</sup> | ATS 2018 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>6</sup>|
7474
| Chrysler | Pacifica 2017-18 | Adaptive Cruise | Yes | Stock | 0mph | 9mph | FCA |
7575
| Chrysler | Pacifica Hybrid 2017-18 | Adaptive Cruise | Yes | Stock | 0mph | 9mph | FCA |
7676
| Chrysler | Pacifica Hybrid 2019 | Adaptive Cruise | Yes | Stock | 0mph | 39mph | FCA |
77-
| GMC<sup>3</sup> | Acadia Denali 2018 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>7</sup>|
78-
| Holden<sup>3</sup> | Astra 2017 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>7</sup>|
77+
| GMC<sup>3</sup> | Acadia Denali 2018 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>6</sup>|
78+
| Holden<sup>3</sup> | Astra 2017 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>6</sup>|
7979
| Honda | Accord 2018-19 | All | Yes | Stock | 0mph | 3mph | Bosch |
8080
| Honda | Accord Hybrid 2018-19 | All | Yes | Stock | 0mph | 3mph | Bosch |
8181
| Honda | Civic Sedan/Coupe 2016-18 | Honda Sensing | Yes | Yes | 0mph | 12mph | Nidec |
@@ -90,30 +90,32 @@ Supported Cars
9090
| Honda | Pilot 2016-18 | Honda Sensing | Yes | Yes | 25mph<sup>1</sup>| 12mph | Nidec |
9191
| Honda | Pilot 2019 | All | Yes | Yes | 25mph<sup>1</sup>| 12mph | Inverted Nidec |
9292
| Honda | Ridgeline 2017-19 | Honda Sensing | Yes | Yes | 25mph<sup>1</sup>| 12mph | Nidec |
93-
| Hyundai | Santa Fe 2019 | All | Yes | Stock | 0mph | 0mph | Custom<sup>6</sup>|
94-
| Hyundai | Elantra 2017-19 | SCC + LKAS | Yes | Stock | 19mph | 34mph | Custom<sup>6</sup>|
95-
| Hyundai | Genesis 2018 | All | Yes | Stock | 19mph | 34mph | Custom<sup>6</sup>|
93+
| Hyundai | Santa Fe 2019 | All | Yes | Stock | 0mph | 0mph | Custom<sup>5</sup>|
94+
| Hyundai | Elantra 2017-19 | SCC + LKAS | Yes | Stock | 19mph | 34mph | Custom<sup>5</sup>|
95+
| Hyundai | Genesis 2018 | All | Yes | Stock | 19mph | 34mph | Custom<sup>5</sup>|
9696
| Jeep | Grand Cherokee 2016-18 | Adaptive Cruise | Yes | Stock | 0mph | 9mph | FCA |
9797
| Jeep | Grand Cherokee 2019 | Adaptive Cruise | Yes | Stock | 0mph | 39mph | FCA |
98-
| Kia | Optima 2019 | SCC + LKAS | Yes | Stock | 0mph | 0mph | Custom<sup>6</sup>|
99-
| Kia | Sorento 2018 | All | Yes | Stock | 0mph | 0mph | Custom<sup>6</sup>|
100-
| Kia | Stinger 2018 | SCC + LKAS | Yes | Stock | 0mph | 0mph | Custom<sup>6</sup>|
98+
| Kia | Optima 2019 | SCC + LKAS | Yes | Stock | 0mph | 0mph | Custom<sup>5</sup>|
99+
| Kia | Sorento 2018 | All | Yes | Stock | 0mph | 0mph | Custom<sup>5</sup>|
100+
| Kia | Stinger 2018 | SCC + LKAS | Yes | Stock | 0mph | 0mph | Custom<sup>5</sup>|
101101
| Lexus | CT Hybrid 2017-18 | All | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
102+
| Lexus | ES 2019 | All | Yes | Yes | 0mph | 0mph | Toyota |
102103
| Lexus | ES Hybrid 2019 | All | Yes | Yes | 0mph | 0mph | Toyota |
103104
| Lexus | RX Hybrid 2016-19 | All | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
104105
| Lexus | IS 2017-2019 | All | Yes | Stock | 22mph | 0mph | Toyota |
105106
| Lexus | IS Hybrid 2017 | All | Yes | Stock | 0mph | 0mph | Toyota |
106-
| Subaru | Crosstrek 2018 | EyeSight | Yes | Stock | 0mph | 0mph | Custom<sup>4</sup>|
107-
| Subaru | Impreza 2019 | EyeSight | Yes | Stock | 0mph | 0mph | Custom<sup>4</sup>|
107+
| Subaru | Crosstrek 2018-19 | EyeSight | Yes | Stock | 0mph | 0mph | Subaru |
108+
| Subaru | Impreza 2019-20 | EyeSight | Yes | Stock | 0mph | 0mph | Subaru |
108109
| Toyota | Avalon 2016 | TSS-P | Yes | Yes<sup>2</sup>| 20mph<sup>1</sup>| 0mph | Toyota |
109110
| Toyota | Avalon 2017-18 | All | Yes | Yes<sup>2</sup>| 20mph<sup>1</sup>| 0mph | Toyota |
110-
| Toyota | Camry 2018-19 | All | Yes | Stock | 0mph<sup>5</sup> | 0mph | Toyota |
111-
| Toyota | Camry Hybrid 2018-19 | All | Yes | Stock | 0mph<sup>5</sup> | 0mph | Toyota |
111+
| Toyota | Camry 2018-19 | All | Yes | Stock | 0mph<sup>4</sup> | 0mph | Toyota |
112+
| Toyota | Camry Hybrid 2018-19 | All | Yes | Stock | 0mph<sup>4</sup> | 0mph | Toyota |
112113
| Toyota | C-HR 2017-19 | All | Yes | Stock | 0mph | 0mph | Toyota |
113114
| Toyota | C-HR Hybrid 2017-19 | All | Yes | Stock | 0mph | 0mph | Toyota |
114115
| Toyota | Corolla 2017-19 | All | Yes | Yes<sup>2</sup>| 20mph<sup>1</sup>| 0mph | Toyota |
115116
| Toyota | Corolla 2020 | All | Yes | Yes | 0mph | 0mph | Toyota |
116117
| Toyota | Corolla Hatchback 2019 | All | Yes | Yes | 0mph | 0mph | Toyota |
118+
| Toyota | Corolla Hybrid 2019 | All | Yes | Yes | 0mph | 0mph | Toyota |
117119
| Toyota | Highlander 2017-19 | All | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
118120
| Toyota | Highlander Hybrid 2017-19 | All | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
119121
| Toyota | Prius 2016 | TSS-P | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
@@ -129,20 +131,19 @@ Supported Cars
129131
<sup>1</sup>[Comma Pedal](https://community.comma.ai/wiki/index.php/Comma_Pedal) is used to provide stop-and-go capability to some of the openpilot-supported cars that don't currently support stop-and-go. Here is how to [build a Comma Pedal](https://medium.com/@jfrux/comma-pedal-building-with-macrofab-6328bea791e8). ***NOTE: The Comma Pedal is not officially supported by [comma.ai](https://comma.ai).*** <br />
130132
<sup>2</sup>When disconnecting the Driver Support Unit (DSU), otherwise longitudinal control is stock ACC. For DSU locations, see [Toyota Wiki page](https://community.comma.ai/wiki/index.php/Toyota). ***NOTE: disconnecting the DSU disables Automatic Emergency Braking (AEB).*** <br />
131133
<sup>3</sup>[GM installation guide](https://zoneos.com/volt/). ***NOTE: disconnecting the ASCM disables Automatic Emergency Braking (AEB).*** <br />
132-
<sup>4</sup>Subaru Giraffe is DIY. <br />
133-
<sup>5</sup>28mph for Camry 4CYL L, 4CYL LE and 4CYL SE which don't have Full-Speed Range Dynamic Radar Cruise Control. <br />
134-
<sup>6</sup>Open sourced [Hyundai Giraffe](https://github.com/commaai/neo/tree/master/giraffe/hyundai) is designed for the 2019 Sante Fe; pinout may differ for other Hyundais. <br />
135-
<sup>7</sup>Community built Giraffe, find more information [here](https://zoneos.com/shop/). <br />
134+
<sup>4</sup>28mph for Camry 4CYL L, 4CYL LE and 4CYL SE which don't have Full-Speed Range Dynamic Radar Cruise Control. <br />
135+
<sup>5</sup>Open sourced [Hyundai Giraffe](https://github.com/commaai/neo/tree/master/giraffe/hyundai) is designed for the 2019 Sante Fe; pinout may differ for other Hyundais. <br />
136+
<sup>6</sup>Community built Giraffe, find more information [here](https://zoneos.com/shop/). <br />
136137

137138
Community Maintained Cars
138139
------
139140

140141
| Make | Model | Supported Package | Lateral | Longitudinal | No Accel Below | No Steer Below | Giraffe |
141142
| ---------------------| -------------------------| ---------------------| --------| ---------------| -----------------| ---------------|-------------------|
142-
| Tesla | Model S 2012-13 | All | Yes | Not yet | Not applicable | 0mph | Custom<sup>8</sup>|
143+
| Tesla | Model S 2012-13 | All | Yes | Not yet | Not applicable | 0mph | Custom<sup>7</sup>|
143144

144145
[[Tesla Model S Pull Request]](https://github.com/commaai/openpilot/pull/246) <br />
145-
<sup>8</sup>Community built Giraffe, find more information here [Community Tesla Giraffe](https://github.com/jeankalud/neo/tree/tesla_giraffe/giraffe/tesla) <br />
146+
<sup>7</sup>Community built Giraffe, find more information here [Community Tesla Giraffe](https://github.com/jeankalud/neo/tree/tesla_giraffe/giraffe/tesla) <br />
146147

147148
Community Maintained Cars are not confirmed by comma.ai to meet our [safety model](https://github.com/commaai/openpilot/blob/devel/SAFETY.md). Be extra cautious using them.
148149

cereal/tinkla.capnp

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $Java.outerClassname("Tinkla");
77

88
@0xfc8dda643156b95d;
99

10-
const interfaceVersion :Float32 = 2.2;
10+
const interfaceVersion :Float32 = 3; # Use integer values here
1111

1212
struct Interface {
1313

common/dbc.py

+17-30
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,8 @@ def __init__(self, fn):
101101
defvals = defvals.replace("?",r"\?") #escape sequence in C++
102102
defvals = defvals.split('"')[:-1]
103103

104-
defs = defvals[1::2]
105-
#cleanup, convert to UPPER_CASE_WITH_UNDERSCORES
106-
for i,d in enumerate(defs):
107-
d = defs[i].strip().upper()
108-
defs[i] = d.replace(" ","_")
109-
110-
defvals[1::2] = defs
104+
# convert strings to UPPER_CASE_WITH_UNDERSCORES
105+
defvals[1::2] = [d.strip().upper().replace(" ","_") for d in defvals[1::2]]
111106
defvals = '"'+"".join(str(i) for i in defvals)+'"'
112107

113108
self.def_vals[ids].append((sgname, defvals))
@@ -152,22 +147,20 @@ def encode(self, msg_id, dd):
152147
ival = dd.get(s.name)
153148
if ival is not None:
154149

155-
b2 = s.size
156-
if s.is_little_endian:
157-
b1 = s.start_bit
158-
else:
159-
b1 = (s.start_bit // 8) * 8 + (-s.start_bit - 1) % 8
160-
bo = 64 - (b1 + s.size)
161-
162150
ival = (ival / s.factor) - s.offset
163151
ival = int(round(ival))
164152

165153
if s.is_signed and ival < 0:
166-
ival = (1 << b2) + ival
154+
ival = (1 << s.size) + ival
155+
156+
if s.is_little_endian:
157+
shift = s.start_bit
158+
else:
159+
b1 = (s.start_bit // 8) * 8 + (-s.start_bit - 1) % 8
160+
shift = 64 - (b1 + s.size)
167161

168-
shift = b1 if s.is_little_endian else bo
169-
mask = ((1 << b2) - 1) << shift
170-
dat = (ival & ((1 << b2) - 1)) << shift
162+
mask = ((1 << s.size) - 1) << shift
163+
dat = (ival & ((1 << s.size) - 1)) << shift
171164

172165
if s.is_little_endian:
173166
mask = self.reverse_bytes(mask)
@@ -227,30 +220,24 @@ def decode(self, x, arr=None, debug=False):
227220
factor = s[5]
228221
offset = s[6]
229222

230-
b2 = signal_size
231-
if little_endian:
232-
b1 = start_bit
233-
else:
234-
b1 = (start_bit // 8) * 8 + (-start_bit - 1) % 8
235-
bo = 64 - (b1 + signal_size)
236-
237223
if little_endian:
238224
if le is None:
239225
le = struct.unpack("<Q", st)[0]
240-
shift_amount = b1
241226
tmp = le
227+
shift_amount = start_bit
242228
else:
243229
if be is None:
244230
be = struct.unpack(">Q", st)[0]
245-
shift_amount = bo
246231
tmp = be
232+
b1 = (start_bit // 8) * 8 + (-start_bit - 1) % 8
233+
shift_amount = 64 - (b1 + signal_size)
247234

248235
if shift_amount < 0:
249236
continue
250237

251-
tmp = (tmp >> shift_amount) & ((1 << b2) - 1)
252-
if signed and (tmp >> (b2 - 1)):
253-
tmp -= (1 << b2)
238+
tmp = (tmp >> shift_amount) & ((1 << signal_size) - 1)
239+
if signed and (tmp >> (signal_size - 1)):
240+
tmp -= (1 << signal_size)
254241

255242
tmp = tmp * factor + offset
256243

common/params.py

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class UnknownKeyName(Exception):
8181
"Passive": [TxType.PERSISTENT],
8282
"RecordFront": [TxType.PERSISTENT],
8383
"ReleaseNotes": [TxType.PERSISTENT],
84+
"SafetyModelLock": [TxType.PERSISTENT],
8485
"ShouldDoUpdate": [TxType.CLEAR_ON_MANAGER_START],
8586
"SpeedLimitOffset": [TxType.PERSISTENT],
8687
"SubscriberInfo": [TxType.PERSISTENT],

opendbc/generator/toyota/lexus_is_2018_pt.dbc

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ BO_ 705 GAS_PEDAL: 8 XXX
1111
SG_ GAS_PEDAL : 55|8@0+ (0.005,0) [0|1] "" XXX
1212

1313
BO_ 608 STEER_TORQUE_SENSOR: 8 XXX
14-
SG_ STEER_TORQUE_EPS : 47|16@0- (0.66,0) [-20000|20000] "" XXX
14+
SG_ STEER_TORQUE_EPS : 47|16@0- (0.77,0) [-20000|20000] "" XXX
1515
SG_ STEER_TORQUE_DRIVER : 15|16@0- (1,0) [-32768|32767] "" XXX
1616
SG_ STEER_OVERRIDE : 0|1@0+ (1,0) [0|1] "" XXX
1717
SG_ CHECKSUM : 63|8@0+ (1,0) [0|255] "" XXX

opendbc/honda_accord_touring_2016_can.dbc

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,14 @@ BO_ 597 ROUGH_WHEEL_SPEED: 8 VSA
177177
SG_ SET_TO_X55_2 : 47|8@0+ (1,0) [0|255] "" NEO
178178
SG_ LONG_COUNTER : 55|8@0+ (1,0) [0|255] "" XXX
179179
SG_ COUNTER : 61|2@0+ (1,0) [0|3] "" XXX
180-
SG_ CHECKSUM : 59|4@1+ (1,0) [0|15] "" XXX
180+
SG_ CHECKSUM : 59|4@0+ (1,0) [0|15] "" XXX
181181

182182
BO_ 660 SCM_COMMANDS: 8 SCM
183183
SG_ RIGHT_BLINKER : 6|1@0+ (1,0) [0|1] "" NEO
184184
SG_ LEFT_BLINKER : 5|1@0+ (1,0) [0|1] "" NEO
185185
SG_ WIPERS_SPEED : 4|2@0+ (1,0) [0|3] "" NEO
186186
SG_ COUNTER : 61|2@0+ (1,0) [0|3] "" XXX
187-
SG_ CHECKSUM : 59|4@1+ (1,0) [0|15] "" XXX
187+
SG_ CHECKSUM : 59|4@0+ (1,0) [0|15] "" XXX
188188

189189
BO_ 661 XXX_10: 4 XXX
190190
SG_ COUNTER : 29|2@0+ (1,0) [0|3] "" XXX

opendbc/lexus_is_2018_pt_generated.dbc

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ BO_ 705 GAS_PEDAL: 8 XXX
370370
SG_ GAS_PEDAL : 55|8@0+ (0.005,0) [0|1] "" XXX
371371

372372
BO_ 608 STEER_TORQUE_SENSOR: 8 XXX
373-
SG_ STEER_TORQUE_EPS : 47|16@0- (0.66,0) [-20000|20000] "" XXX
373+
SG_ STEER_TORQUE_EPS : 47|16@0- (0.77,0) [-20000|20000] "" XXX
374374
SG_ STEER_TORQUE_DRIVER : 15|16@0- (1,0) [-32768|32767] "" XXX
375375
SG_ STEER_OVERRIDE : 0|1@0+ (1,0) [0|1] "" XXX
376376
SG_ CHECKSUM : 63|8@0+ (1,0) [0|255] "" XXX

panda/board/drivers/can.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ int can_live = 0, pending_can_live = 0, can_loopback = 0, can_silent = ALL_CAN_S
4343
CAN_FIFOMailBox_TypeDef elems_##x[size]; \
4444
can_ring can_##x = { .w_ptr = 0, .r_ptr = 0, .fifo_size = size, .elems = (CAN_FIFOMailBox_TypeDef *)&elems_##x };
4545

46-
can_buffer(rx_q, 0x1500)
46+
can_buffer(rx_q, 0x1000)
4747
can_buffer(tx1_q, 0x100)
4848
can_buffer(tx2_q, 0x100)
4949
can_buffer(tx3_q, 0x100)

panda/tests/pedal/enter_canloader.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def _handle_timeout(signum, frame):
2525
finally:
2626
signal.alarm(0)
2727

28-
#print "R:",ret.encode("hex")
28+
# "R:",ret.encode("hex")
2929
return ret
3030

3131
def controlWrite(self, request_type, request, value, index, data, timeout=0):
@@ -58,7 +58,7 @@ def bulkRead(self, endpoint, length, timeout=0):
5858
while 1:
5959
if len(p.can_recv()) == 0:
6060
break
61-
print "entering bootloader mode"
61+
print("entering bootloader mode")
6262
if args.recover:
6363
p.can_send(0x200, b"\xce\xfa\xad\xde\x1e\x0b\xb0\x02", 0)
6464
p.can_send(0x551, b"\xce\xfa\xad\xde\x1e\x0b\xb0\x02", 0)

phonelibs/json11/json11.o

1.27 MB
Binary file not shown.

0 commit comments

Comments
 (0)