Go to Post If I can make one wish, it would be having Dean and Woodie read one of these writings of mine, so I can tell them "I get it! Give me time and give me inspiration, and one day I will be ready to take over the torch." - Ken Leung [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-03-2005, 02:48
Collmandoman Collmandoman is offline
Post-A-Holic
no team
 
Join Date: Jan 2005
Rookie Year: 2000
Location: TEnNEssEe
Posts: 256
Collmandoman has a spectacular aura aboutCollmandoman has a spectacular aura aboutCollmandoman has a spectacular aura about
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   Spotlight this post!  
Unread 07-03-2005, 03:12
Goldeye Goldeye is offline
Registered User
AKA: Josh Hecht
FRC #0694 (Stuypulse)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: New York
Posts: 145
Goldeye has a spectacular aura aboutGoldeye has a spectacular aura aboutGoldeye has a spectacular aura about
Send a message via AIM to Goldeye
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   Spotlight this post!  
Unread 07-03-2005, 03:25
Collmandoman Collmandoman is offline
Post-A-Holic
no team
 
Join Date: Jan 2005
Rookie Year: 2000
Location: TEnNEssEe
Posts: 256
Collmandoman has a spectacular aura aboutCollmandoman has a spectacular aura aboutCollmandoman has a spectacular aura about
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   Spotlight this post!  
Unread 07-03-2005, 10:53
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,856
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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;
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 07-03-2005 at 10:56.
  #5   Spotlight this post!  
Unread 07-03-2005, 14:48
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,031
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: Cam interupt question

It looked like the robot was running in to him. I agree with Mark McLeod.
  #6   Spotlight this post!  
Unread 08-03-2005, 17:39
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Cam interupt question

Quote:
Originally Posted by Mark McLeod
...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)...
A bump switch was installed to keep the 'bot from running over Dave. It may not be in the code because (I believe) it was added just two days before the kick-off.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #7   Spotlight this post!  
Unread 10-03-2005, 12:41
Collmandoman Collmandoman is offline
Post-A-Holic
no team
 
Join Date: Jan 2005
Rookie Year: 2000
Location: TEnNEssEe
Posts: 256
Collmandoman has a spectacular aura aboutCollmandoman has a spectacular aura aboutCollmandoman has a spectacular aura about
Re: Cam interupt question

thx kevin =)
  #8   Spotlight this post!  
Unread 10-03-2005, 12:55
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,856
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Cam interupt question

Quote:
Originally Posted by Kevin Watson
A bump switch was installed to keep the 'bot from running over Dave. It may not be in the code because (I believe) it was added just two days before the kick-off.

-Kevin
How many times were the testers run over before the touch switch was added?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #9   Spotlight this post!  
Unread 24-03-2005, 00:44
djcapelis's Avatar
djcapelis djcapelis is offline
Fried Manic Custard
None #0675 (Geeks with Power Tools)
Team Role: Programmer
 
Join Date: May 2003
Rookie Year: 2001
Location: Rohnert Park, CA
Posts: 129
djcapelis will become famous soon enoughdjcapelis will become famous soon enough
Send a message via ICQ to djcapelis Send a message via AIM to djcapelis Send a message via Yahoo to djcapelis
Re: Cam interupt question

Quote:
Originally Posted by Mark McLeod
How many times were the testers run over before the touch switch was added?
As many times as it took.

Robotics requires live humans, no one said this sport was going to be easy.
__________________
"I have more friends than enemies, I'm working to resolve the issue."
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 00:18.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi