View Single Post
  #7   Spotlight this post!  
Unread 14-02-2012, 23:55
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Timed While loop within Teleop

Quote:
Originally Posted by DominickC View Post
As for State Machines, I've always had trouble comprehending those and still have this issue..
You actually already understand the basic concept, judging from your original post. You just used the wrong numbers.

Since TeleOp runs at ~20ms, just override the joysticks (with the -0.8 command) for 6 iterations (6*20ms = 120ms = approx 1/8 second).

Your motor will be happy because it is being commanded more often than 100ms, so neither the safety nor the watchdog will trip.

Reply With Quote