I’m currently trying to code a function to make my life a bit easier while coding pneumatics, and I was just wondering whether there was a way to see what value is currently being outputted by a digital out.
This is what my function currently looks like. 1 is used to extend the piston, 0 is used to retract it, and I want -1 to toggle it, but I think I need to get the state of the output to do that.
Well, it does but not documented on the vex api site. I think the team did a global removal of the “value” functions as almost all device classes have it but in the majority of cases it’s not a useful function.