|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Cam interupt question
At the kickoff lavery walked around.. and the bot followed... but it stopped when it got close enough.. can someone explain this? I've looked through the entire FIRST code and can't find anything that shows this. I don't even know how it could be done... unless the camera was programmed to stop sending info to the drive system when X amount of area was consumed in its field of view.. or there was a push sensor I didn't see. An explanation or a foward to code I missed would be most helpful - Thanks
|
|
#2
|
|||
|
|||
|
Re: Cam interupt question
There are two ways I know of to do it.
A. Stop driving when cam.tilt_servo < x (which is what most teams did, I believe, but wouldn't work for a vertical object like a human) B. Stop driving when the cam.size > y (as you suggested, which is probably just what they did.) |
|
#3
|
|||
|
|||
|
Re: Cam interupt question
do you by chance know if that code was included in the first code? (for area > X) I can't seem to find it
|
|
#4
|
|||||
|
|||||
|
Re: Cam interupt question
The kickoff demonstration version of the camera driving code (if it's the version 2.4 FIRST released) looks like it might just have operated by driving at a slow enough speed such that it was stopped when it pushed lightly up against something (a leg, a goal).
It looks like the max forward speed was 150. Code:
user_routines.c:38: const int speed_setting = 150; //forward speed setting (127 to 254) user_routines_fast.c:31: extern int speed_setting; user_routines_fast.c:154: if (speed_setting < 128 || speed_control > 254) //Check speed_setting for valid forward speed user_routines_fast.c:155: speed_setting = 150; //If not valid number set to default user_routines_fast.c:158: speed_control = speed_setting; Last edited by Mark McLeod : 07-03-2005 at 10:56. |
|
#5
|
|||||
|
|||||
|
Re: Cam interupt question
It looked like the robot was running in to him. I agree with Mark McLeod.
|
|
#6
|
||||
|
||||
|
Re: Cam interupt question
Quote:
-Kevin |
|
#7
|
|||
|
|||
|
Re: Cam interupt question
thx kevin =)
|
|
#8
|
|||||
|
|||||
|
Re: Cam interupt question
Quote:
![]() |
|
#9
|
||||
|
||||
|
Re: Cam interupt question
Quote:
Robotics requires live humans, no one said this sport was going to be easy. ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Auton Cam scaning question... | Zalumaskov | Programming | 0 | 04-02-2005 11:01 |
| Question of the Week!!! (6/14/04) | Andy Grady | General Forum | 23 | 01-07-2004 15:54 |
| Question of the Week [05-02-04]: The Very Merry Month of May | EddieMcD | Rumor Mill | 10 | 05-05-2004 14:02 |
| MIM's question of the day on programming. | Gene F | Programming | 3 | 24-02-2004 16:32 |
| Need interupts help, and another question... | Kevin Karan | Programming | 7 | 22-02-2004 11:20 |