![]() |
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
|
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.) |
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
|
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) |
Re: Cam interupt question
It looked like the robot was running in to him. I agree with Mark McLeod.
|
Re: Cam interupt question
Quote:
-Kevin |
Re: Cam interupt question
thx kevin =)
|
Re: Cam interupt question
Quote:
|
Re: Cam interupt question
Quote:
Robotics requires live humans, no one said this sport was going to be easy. ;) |
| All times are GMT -5. The time now is 04:42. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi