Go to Post I think the only way I'd die from posting on CD is from my wife killing me. - Koko Ed [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
  #16   Spotlight this post!  
Unread 14-02-2005, 21:03
JoshJ JoshJ is offline
Registered User
#0316 (LuNaTeCs)
Team Role: College Student
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Salem County
Posts: 44
JoshJ is on a distinguished road
Send a message via AIM to JoshJ
Re: Autonomous With Camera

Quote:
Originally Posted by russell

If you have any questions please ask away, I am quite proud of this relatively simple code and I would love to answer any questions..
Nice job on the code. I noticed that you did not increment your counter though. Also, you said you wrote this off the top of your head, is it the same stuff that is running/tracking your robot now? Thanks,
Josh
  #17   Spotlight this post!  
Unread 15-02-2005, 00:07
russell's Avatar
russell russell is offline
Registered User
#1430 (WRONG)
Team Role: Electrical
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Anchorage AK
Posts: 402
russell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to all
Re: Autonomous With Camera

Hmmmm, good point. It does increment the counter in the program I am running on the bot, and other than that the only differences in the functional part (I never comment my actual code ) are that a) right now it tracks red, not green (for a demonstration tomorrow that could get us nine grand) and b) it doesnt say to put the drive code here, instead it uses a modified version of the default drive code. I realised today that I have not actually put the robot on the floor and had it drive with this code, but I have had it on blocks and it tracks nicely and the wheels definetly turn in the right directions. I will let you know after our demo tomorrow if it actually works .
  #18   Spotlight this post!  
Unread 15-02-2005, 13:44
JoshJ JoshJ is offline
Registered User
#0316 (LuNaTeCs)
Team Role: College Student
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Salem County
Posts: 44
JoshJ is on a distinguished road
Send a message via AIM to JoshJ
Re: Autonomous With Camera

That demo sounds sweet, hope that went well for you. I have seen our robot a total of 2 times, so its a bit tough for me to experiment with the code, so I appreciate your help. I still dont understand exactly what is going on with the camera, but I think I know enough now to scrape an auto mode together. I had tested something similiar to your code, but the bot may have been tracking the wrong direction or something, it was acting weird. I dont like the way the default camera code sets turning/forward speed so I think I am just going to make my own code. Again, thanks, and good luck
Josh
  #19   Spotlight this post!  
Unread 15-02-2005, 23:25
russell's Avatar
russell russell is offline
Registered User
#1430 (WRONG)
Team Role: Electrical
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Anchorage AK
Posts: 402
russell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to all
Re: Autonomous With Camera

Ah. Well, the demo thingy is over and the bot sort of worked. But like I said I wrote that code I posted from memory, and come to find out I would have been better off using that, as in my code for the bot I neglected to put an else to stop the motors. Ever seen what a robot can do to a vending machine? Actually it hit the side so nothing actually broke but it was still cool. As it was though the people were still very impressed and I think we will get the money, I was just very annoyed with myself. Anyway, yeah once I fixed that it worked just fine.
  #20   Spotlight this post!  
Unread 16-02-2005, 14:57
HolyOne207's Avatar
HolyOne207 HolyOne207 is offline
Domo arigato, Mr. Roboto
AKA: Brian & Peter
#0207 (MetalCrafters)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Hawthorne High School
Posts: 15
HolyOne207 is an unknown quantity at this point
Send a message via AIM to HolyOne207
Re: Autonomous With Camera

im sure that someone has asked this before. but what are the numerical values for the range of the servo on the camera? is it -127 to 127 or what? is it 0 to 254 like the robot? need some help with this please.
__________________
Legends. Do you want to be one?
  #21   Spotlight this post!  
Unread 16-02-2005, 23:52
russell's Avatar
russell russell is offline
Registered User
#1430 (WRONG)
Team Role: Electrical
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Anchorage AK
Posts: 402
russell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to all
Re: Autonomous With Camera

It is the normal 0-254 type number, but the range is somewhat decreased, I think the functional range is something like 47-212 or something along those lines. It says in one of the documents in the getting started file.
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
Scripting Setup and the Camera + Serial Port Drivers CJO Programming 22 11-01-2006 17:42
Unresponsive camera neilsonster Programming 9 17-02-2005 08:51
CMUCam2 Camera Code - Are important parts commented out? Mr. Lim Programming 4 14-01-2005 12:11
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11


All times are GMT -5. The time now is 01:12.

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