|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#76
|
|||
|
|||
|
Re: Problem with the past
Quote:
to the 2005 controller. We started with the 2005 default code, version 2.2 without the camera code in it. We then added the 2006 camera code .c and .h files, and our own .c and .h files that handled other interrupt based functionality, to the folder and they to the project. You will have to delete the IFI serial driver and header from the folder and project, and you will have to change stdio to the correct printf_lib include. You then have to fold in your changes to user_routines and user_routines_fast. It will work if you catch all the nits, and there are a few. |
|
#77
|
|||
|
|||
|
Re: 2006 CMUcam2 Code
As for replacing a servo with a different type of motor, that is a bit of a challenge. Servos have internal feedback which allows you to tell it to go to a particular position. You may notice that if you have a servo powered and you try to turn it, it fights back to keep the position the same. The servo just has a small motor inside, a controller, and a sensor for feedback. If you want a globe or fisher price motor to act like a servo, then you need those other two components. You can use a sensor like the Gear Tooth Sensor included in the kit as your feedback. For the controller, you can use the FRC and write software! The motor controllers that have available, (victors, and of less usefulness, the spikes) only control the speed of the motors, not the position. This is because they don't know where they are, and therefore don't know where to go from there (where?). Hopefully the servos will work for you, but if not, it's possible to use other motors instead. It's just a lot more work. If you decide you do need a controller and motors, do some research/googling for PID control. It's a pretty straight forward method of control that gives good results. There's probably even code floating around out there if you look hard enough.
HELP!! can we not avoid using the gear tooth sensor by setting our fischer motor, globe, etc. at a low enough speed? then when it finds the light to stop?? if this is possible, where in the code do i do this. i'm not the greatest programmer but i need to figure this one out!! if canybody can help that'd be great ![]() |
|
#78
|
|||
|
|||
|
Re: 2006 CMUcam2 Code
Quote:
|
|
#79
|
|||
|
|||
|
Re: 2006 CMUcam2 Code
ok where can i get the 2006 code for the camera i don't see in on the website. What is the file called?
|
|
#80
|
|||||
|
|||||
|
Re: 2006 CMUcam2 Code
Quote:
JBot |
|
#81
|
|||
|
|||
|
Re: 2006 CMUcam2 Code
well i went there and these are the four file frc_camera_s_21.zip, frc_camera_21.zip,frc_camera_s_2.zip, frc_camera_2.zip. i am looking for one with ends in ....._2006.zip and it has to be for Mplab
|
|
#82
|
|||||
|
|||||
|
Re: 2006 CMUcam2 Code
Quote:
JBot |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Out of the Box Camera Code | russell | Programming | 9 | 21-10-2009 05:28 |
| CMUCam2 code (FRC and EDU?) | Amber | Programming | 0 | 15-02-2005 22:23 |
| Team THRUST - Kevin's Code and Camera Code Combine | Chris_Elston | Programming | 3 | 31-01-2005 22:28 |
| CMUCam2 Camera Code - Are important parts commented out? | Mr. Lim | Programming | 4 | 14-01-2005 12:11 |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |