openpilot
openpilot copied to clipboard
Added ControlsTimer class with example usage in mazda+hyundai
Increase the readability of DT_CTRL based duration timers in carports. Also, remove redundant self.frame+=1 in every carcontroller. See examples for Mazda and Hyundai.
Not sure why process replay is failing. The code should be good.
I like the direction this is going in. Gonna move to draft until I have some time to look at it more.
Let me know if you have any questions about it
I added some unit tests in case you make changes