|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
problem with passing doubles back into the "TeleOp Execute" loop
We are currently having problems with passing doubles back into the "TeleOp Execute" loop. We have traction control calculating an error based on the slip ratio as the process variable and the set point of 0 slip ratio.
We are able to read the PID values from within the traction control loops, however when these values are passed into the "TeleOp Execute" loop, the robot isnt able to get out of disable mode. When we delete the PID values being passed into the "TeleOp Execute" loop, the code runs fine, however we can't add the PID values to the drivers joystick command to do the traction control. We have tried the highlight execution feature and the interesting thing is that no bubbles follow along the path from the traction control loop to the TeleOp Execute loop. Any suggestions? I attached a pdf of the main code for our bot to show the problem. |
|
#2
|
|||
|
|||
|
Re: problem with passing doubles back into the "TeleOp Execute" loop
The code is currently set to run in parallel loops. Because they are set to never "stop" executing, the loop never really ends and thus will not pass values outside of the loop.
To get around this, either move the traction control code to inside the teleop loop or set up global variables. Write to the globals in the traction control loop and read it in the teleop loop. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Doesn't execute teleop execute case | rjn | NI LabVIEW | 3 | 10-02-2009 08:08 |
| Congratulations is spelled with a "T" and not a "D"!! | Elgin Clock | Thanks and/or Congrats | 55 | 09-03-2007 13:24 |
| "Thunderbirds" Vs. "Team America" Which one will rule the box office? | Elgin Clock | Chit-Chat | 3 | 07-09-2004 19:53 |
| "Timer Loop" Program | Brett W | Programming | 16 | 25-02-2003 13:52 |
| Potential Problem with "fighting over the goal" | Kyle Fenton | General Forum | 4 | 17-02-2002 10:21 |