Closed chlohal closed 2 years ago
This will help make our Teleops simpler! Eventually, we can use this to make constraints (from #27) ;)
A OneOfNode should take two nodes (or, optionally, more), and give the result of the first non-zero node.
OneOfNode
//This will be `1` if B is pressed, or otherwise, the left stick new OneOfNode(new ButtonNode("b"), new JoystickNode("left_stick_x"))```
This will help make our Teleops simpler! Eventually, we can use this to make constraints (from #27) ;)
A
OneOfNode
should take two nodes (or, optionally, more), and give the result of the first non-zero node.Example