View Single Post
  #24   Spotlight this post!  
Unread 14-04-2010, 23:31
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,083
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: Teleop Issue - Motor Control Seems to Freeze

Quote:
Originally Posted by compwiztobe View Post
But doesn't this suspend the entire 100 ms loop for the whole 3 seconds?
Yes, but it doesn't freeze up other concurrent tasks. The "watchdog delay and feed" releases the processor to go service other tasks while it's waiting for the specified delay to expire. It doesn't sit there burning cycles.


Quote:
Originally Posted by compwiztobe View Post
what do you mean by event driven?
event-triggered. an event (the press of a joystick button) triggers the periodic task to go do something.

for example: you could set up your kicker as a separate 50ms periodic task that normally does nothing except check to see if the "kick" button is pressed. if the button is pressed, it goes through the kick cycle, taking as long as it needs. It can take as long as it needs because if it's in a separate periodic task, then it is run concurrently and doesn't prevent other robot tasks (like driving) from running.


~
Reply With Quote