View Single Post
  #17   Spotlight this post!  
Unread 26-03-2010, 04:09
helenajoy helenajoy is offline
Registered User
FRC #2437
 
Join Date: Nov 2008
Location: Hawaii
Posts: 31
helenajoy is an unknown quantity at this point
Re: Teleop Issue - Motor Control Seems to Freeze

Quote:
Originally Posted by Ether View Post
You placed the joystick and kicker code in separate tasks (correct?). What iteration period (ms) did you assign to each of these tasks?

Please explain what you mean by "extremely dependent".


~
The codes I have been testing are posted as images below.

Our kicker sequence is extremely dependent on the Watchdog Delay and Feed in that the solenoids need to be accuated in a certain sequence and needs the delays in as well. The kicker would not work without the solenoids accuating in order or the delays. The code itself probably explains it better than I can.

The first image is the kicker sequence within Teleop only. When our driver presses Button One on Joystick 3, our robot kicks. The problem with this code is that it seems to freeze the Tank Drive Joysticks.

The second image is the kicker sequence in Periodic Tasks. With this code, the driver can control the Tank Drive but the kicker sequence stops midway and does not complete itself.

I have not yet tried using global variables to fix this problem. I'll post up an image of that code when I make it.
Attached Thumbnails
Click image for larger version

Name:	Hawaii Competition Code b2.3 Teleop.jpg
Views:	50
Size:	74.9 KB
ID:	8927  Click image for larger version

Name:	Hawaii Competition Code b2.2 Periodic Tasks.jpg
Views:	53
Size:	73.5 KB
ID:	8928  
Reply With Quote