|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#3
|
||||
|
||||
|
Re: Using shared variables instead of global variables
Quote:
For each state machine we have commands/actions like open or close. Then, in the Teleop.vi we send different commands to the state machines which run in parallel, based on driver's input. *We have an enum typeDef for each state machine and for each set of actions. for example: the grabber state machine is in close state, pressing button 1 sends "open" to the grabber state machine, the grabber state machines then moves to "moving to open" state, and when it detects it reached the target it moves to "open". Which architecture do you recommend using? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|