Closed RyanDecker123 closed 5 years ago
int intakeModeAdder= 1;
if (m_stick.getRawButtonPressed(6))
intakeModeAdder = 0 - intakeModeAdder; //toggle between -1 and 1
lifterLevel = lifterLevel + intakeModeAdder // Then this guy will be at either 0 or off by 1.
//The we can maintain the levels and the switch statement.
if (m_stick.getPOV() == 0) {
if (lifterLevel < 7 && !currentlyPressed)
lifterLevel = lifterLevel + 2;
currentlyPressed = true;
i used this code and it works so problem solved
A bit long and complicated, but this is my limited programming example. 🤞