I’m working on wiper control for a rally car, with the following setup:
- The co-driver has an AIN button near their legs.
- The driver has a CAN bus panel near their hands.
- Both need to control the same output for the wipers.
The desired functionality is:
- First press: Wipers turn on in a delayed (intermittent) mode.
- Second press: Wipers switch to continuous mode.
- Third press: Wipers turn off.
I have successfully implemented this functionality using a single button, either from the CAN bus or the AIN input. However, I’m struggling to combine the inputs from both the AIN button and the CAN bus panel into a single, seamless control logic.
How can I design the logic to ensure both inputs work together correctly, controlling the wipers in the described sequence?