|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: counting in seconds for the autonomous mode??
Quote:
ticks = seconds * (10e6 / 2e18 ); The autonomous period lasts 572 ticks. The entire match is 4578 ticks. You can keep track of ticks using integers and integer math, and avoid all that floating point stuff that takes up memory and CPU time. BTW, I programmed my auton to take a swipe at the trigger ball starting at 534 ticks (38 ticks before the end of auton). It knocked off the ball, but the blue balls were not released. They claimed it was too late. It was our last match and the first time everything came together for IR tracking (i.e. we didn't get rammed) Hmmm.... At nationals I'm gonna back that down to 80 ticks before the end of auton. |
|
#2
|
|||
|
|||
|
Re: counting in seconds for the autonomous mode??
when should we stop the robot, using a counter by following the line ????
is there any way of figuring that out/??? or is the only way just trying it on the robot and hoping it works ??? |
|
#3
|
|||||
|
|||||
|
Re: counting in seconds for the autonomous mode??
Quote:
-norm |
|
#4
|
|||||
|
|||||
|
Re: counting in seconds for the autonomous mode??
Quote:
|
|
#5
|
|||
|
|||
|
Re: counting in seconds for the autonomous mode??
Sorry for that.. Thanks for your help. its just that i am really stressed about this and i feel i can't handle it anymore
ok here i go again i think i have the code working for the line following with two sensors. is there any way of knowing when to stop other than just timing it with like a stopwatch? to avoid the robot to hit the wall and be stuck to it ? |
|
#6
|
|||||
|
|||||
|
Re: counting in seconds for the autonomous mode??
Quote:
1. Your time and stop watch idea. 2. You could install a microswitch (digital switch) and a bumper to the front of your robot. If you were following the line, and the bumper sensing switch was closed, you would know you hit the wall. |
|
#7
|
|||
|
|||
|
Re: counting in seconds for the autonomous mode??
the competition is this thursday so i think we'll have to do the stopwatch measure.
thnx people |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Future of Autonomous Mode | FadyS. | Programming | 41 | 24-05-2004 19:45 |
| Simple Autonomous Mode Example | deltacoder1020 | Programming | 5 | 08-03-2004 20:22 |
| Initializing autonomous mode | Mr. Lim | Programming | 7 | 02-02-2004 07:26 |
| autonomous mode problem on field | Chris_C | Programming | 17 | 26-03-2003 19:11 |
| autonomous mode timer | Don | Programming | 6 | 09-02-2003 22:16 |