|
Re: Help with LabView lift presets
While it is possible to do this in TeleOp using a state machine, it is probably easier to put this code into Periodic tasks. You can directly check the joystick button there, or you can check the button in teleOp and use a global or other notification mechanism to tell the periodic loop what to do.
The buttons will either add or remove some value to a common set point, and the loop will drive the motor as appropriate to get to the set point.
I know that I've glossed over many of the details, but I don't want to go into details that you don't need. Feel free to ask more questions if needed.
Greg McKaskle
|