|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
|||
|
|||
|
Re: Kicking while driving
The two code implementations are very similar. Do this as fast as you can until enough time passes.
A couple other approaches to try. Put the kicking code in a parallel loop that looks at a global to see if it should kick, hold, or return the foot, etc. Then in teleop drive, just set the globals based on the joystick. In the parallel loop you can still use your timed sequence just fine. A more efficient way of doing the notification is to use an occurrence, queue, or other programming mechanism to let drive signal the loop when it should start a new sequence. Another approach is to break up the code and keep it in the teleop, but make it a state machine as already mentioned. Greg McKaskle |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Castrol Kicking Robot | SuperJake | Chit-Chat | 1 | 06-02-2010 21:13 |
| The Kicking Mechanism | Taxi Quinn | Technical Discussion | 11 | 06-02-2010 21:10 |
| Effectiveness of Kicking vs. Pushing | bobwrit | Rules/Strategy | 39 | 12-01-2010 20:20 |
| Team 467 Driving while holding the ball | Tsom467 | Robot Showcase | 18 | 16-02-2008 01:02 |
| Kicking a robot's bottom... | archiver | 2001 | 5 | 24-06-2002 00:17 |