Skip to content

Commit

Permalink
try this #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Casey Francis authored and Casey Francis committed Dec 20, 2020
1 parent ed728a0 commit 80b5d38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion common/params_pyx.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ keys = {
b"Offroad_UpdateFailed": [TxType.CLEAR_ON_MANAGER_START],
b"Offroad_HardwareUnsupported": [TxType.CLEAR_ON_MANAGER_START],
b"VisionRadarToggle": [TxType.PERSISTENT],
b"TeslaRadarActivate": [TxType.PERSISTENT],
b"TeslaRadarVin": [TxType.PERSISTENT],
b"TeslaRadarOffset": [TxType.PERSISTENT],
b"TeslaRadarPosition": [TxType.PERSISTENT],
Expand Down
6 changes: 3 additions & 3 deletions selfdrive/car/honda/radar_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ class RadarInterface(RadarInterfaceBase):
def __init__(self, CP):
super().__init__(CP)
params = Params()
use_tesla = params.get("TeslaRadarActivate")
# TODO: get this from a param elsewhere
use_tesla = True
# radar
self.pts = {}
# self.extPts = {}
self.delay = 0
Expand Down Expand Up @@ -202,8 +204,6 @@ def _update(self, updated_messages):
self.pts[message].aRel = cpt['LongAccel']
self.pts[message].yvRel = cpt2['LatSpeed']
self.pts[message].measured = bool(cpt['Meas'])

print(cpt['LongDist'], cpt['LatDist'] - self.radarOffset, cpt['LongAccel'])
# self.extPts[message].dz = cpt2['dZ']
# self.extPts[message].movingState = cpt2['MovingState']
# self.extPts[message].length = cpt2['Length']
Expand Down

0 comments on commit 80b5d38

Please sign in to comment.