Go to Post Like a moth to a flame, true FIRSTers are attracted by the Victor instead of the Banner. - Rich Wong [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-03-2009, 23:58
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
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.
Attached Files
File Type: pdf traction_control.pdf (134.6 KB, 38 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 21-03-2009, 00:50
Green2 Green2 is offline
Registered User
FRC #2338
 
Join Date: Mar 2009
Location: Oswego
Posts: 20
Green2 is an unknown quantity at this point
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 09:09.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi