openpilot
openpilot copied to clipboard
comment stating opposite of code. bug?
It looks to me like the programmer wrote one thing in the comment but coded the opposite (or visa versa).
/selfdrive/car/honda/carcontrols.py line 179:
# radar at 20Hz, but these msgs need to be sent at 50Hz on ilx (seems like an Acura bug)
if CS.civic:
radar_send_step = 5
else:
radar_send_step = 2
Send step is the number of steps between the sends, not the rate. So I believe it is right :)
100/5 = 20hz 100/2 = 50hz