Page 1 of 1

reset virtual channels when session is reset

Posted: Tue Jun 11, 2019 3:35 am
by tylerjw
How do I reset values when the session is reset?

I am trying to make a fuel remaining / fuel consumed channel and I want to reset it's value when we add fuel to the car.

Posted: Fri Jun 28, 2019 9:07 pm
by brentp
Hi, when you say "the session is reset" do you mean, when the button on app is pressed to reset the session?

One thing you can do is check the SessionTime channel. If the session is reset, the SessionTime is reset to 0. You can check for this in your Lua script and take appropriate action.

Hope this helps, let us know what you figure out!