I'm trying to implement gear change using buttons (D, R and N). When the user press the button, it will ask for confirmation to prevent miss click, if "Yes" it will send CAN message and active gear, if "No" do nothing.
I implemented this latch to hold the value of D, R and N gear (if true or false after interactive message).
But the thing is, I want to keep only one gear active at a time, for example D=True,R=False and N=False. How I can manage to turn off other variables inside Qcode?
Customer support service by UserEcho