View Single Post
  #22   Spotlight this post!  
Unread 14-04-2010, 08:37
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
Since the delays total to 3 seconds, I think it will take 3 seconds to run this while loop once when you start the kicker sequence... [which] may cause some undesirable overhead.
I believe the "watchdog delay and feed" blocks waiting for the specified time so the overhead should be minimal.


Quote:
Originally Posted by compwiztobe View Post
A state machine is probably what you want here,
A state machine is a viable alternate way to do this sort of thing, but many teams have successfully used a concurrent periodic task.

We were successful using both approaches. We started out using state machines, then switched to using event-triggered periodic tasks. The periodic tasks approach is easier to look at and see the sequential flow. Makes it easier for peer review, particularly for inexperienced programmers.

~
Reply With Quote