openpilot
openpilot copied to clipboard
Mazda: get blinker state from switch
What's the difference? Can you post a route?
Hmm, this removes the ability to use the convenience blinker for lane changes, I'm not sure we want that.

If there's benefit to using this signal, convenience lane changes can be preserved by wrapping it in update_blinker_from_stalk instead of the existing update_blinker_from_lamp.
@sshane , not sure where you pulled the data, here is what I see:

I thought that is a cleaner signal to use, it is the actual turn signal, and not the lamp signal. Or am I missing something from OP logic here?
I see the point now. Updated using the stalk function per @jyoung8607 suggestion. Thanks!
I will test that scenario.
Have a route with the changes? Have you made sure that the convenience blinker is one second? Nevermind about that test, looks like you switched to update_blinker_from_stalk
@sshane 8c521516df3527d8|2022-08-30--10-05-04--2
There was a bit of a lag before with lamp signals, now it is instantaneous.
The blinker preference is generally in this order: continuous signal when blinker is activated, lamp state, then stalk position. The lamp state is better than the stalk state since you don't need to worry about things like convenience blinkers.
What is stake state vs continous signal @adeebshihadeh ?
Because what I have above looks like continuous signal to me.
As far as I understand, this new signal is the position of the blinker stalk, which doesn't capture things like the convenience blinkers.