|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Autonomous With Camera
Quote:
Josh |
|
#2
|
|||||
|
|||||
|
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 . |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||||
|
|||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |