openpilot icon indicating copy to clipboard operation
openpilot copied to clipboard

comment stating opposite of code. bug?

Open LucidObscurity opened this issue 9 years ago • 1 comments

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

LucidObscurity avatar Mar 04 '17 05:03 LucidObscurity

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

geohot avatar Mar 09 '17 04:03 geohot