Hold to reset trip tutorial

Unsure if this has been covered but I just figured how I could reset trip by holding a switch and thought I’d share, this is of course if there also isn’t a way more obvious way that I missed.

My stalk on the car has a switch with 4 positions; 0, 1, 2 and 0. 1 and 2 are like a normal switch but the two 0s spring back when the switch is held there. This was originally intended to reset the trips 1 and 2 by holding it against which trip you wanted to reset.

To emulate this, I’ve assigned this switch to Dummy 01 and each position a number 1 through 4 with trip A being value 2 and trip B being value 3. I’m using Dummy timer 01 to reset trip A and Dummy timer 02 to reset trip B. Since Dummy timers run from the moment the app is started, I have set a trigger to keep these at 0.
Trigger: If ‘Dummy 02’ is not equal to 1
Action: Change value - Dummy timer 01 - MIN 0 MAX 0 STEP 0
This keeps the timer from counting unless Dummy 01 is equal to 1.

I then have another trigger set up to reset trip A
Trigger: if ‘Dummy timer 01’ is greater than x (x being how long you wish to hold the switch to reset)
Action: Reset Trip A

By doing this, holding the switch to position 1 for x number of seconds, Trip A will reset and letting go of the switch will return to position 2 and reset the timer.

This can be modified for your own use by swapping out the dummy values for the input your switch or button is.

I’ve removed the touchscreen part of my screen so I’m relying on physical switches and buttons in the car. Obviously this would be simpler using the touchscreen and in app buttons but I imagine there’ll be someone who can make use of this too.

1 Like

Can you take screenshots, for some reason it doesn’t work, and hold down the reset button?

Hi. This is far from the easiest way. Here’s something simpler.

1 Create a button.(Name: RES_BTN)
In the button settings, set the “Action when pressed” checkbox and set the trigger delay to as long as you need milliseconds.
2 Assign an action to the button - “Reset trip A”
3 Create a trigger:
a) if (your physical button) =1
b) if (your physical button) ≠1
action:
Press the button: RES_BTN

It seems to me that this is more compact and understandable than setting up a bunch of variables, timers and actions.

1 Like