|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Camera code not working....
We were trying out some things in the code, and when we loaded on the frc_camera_s code that is available on kevin.org/frc, we found that no robot functions are working. We tested out the code without any of our changes and found once again that no functions worked. We tested it with the default code without any camera stuff and it worked. Joysticks are working properly, and the digital sensor code that we wrote before worked as well. Is there anything that we have to set in kevin's code to make it work?
|
|
#2
|
||||
|
||||
|
Re: Camera code not working....
the camera code kevin wrote does not handle joystick > pwm or OI feed back lights... check out void Process_Data_From_Master_uP(void) in User_routines.c, that is where you can add support for joysticks and sensors
|
|
#3
|
||||
|
||||
|
Re: Camera code not working....
Quote:
-Kevin |
|
#4
|
|||||
|
|||||
|
Re: Camera code not working....
Quote:
Process_Data_From_Master_uP function, the call to default_routine() is commented out. Uncomment that call and you should have drive control. If you want the drive code to have highest priority and execute regardless of whether camera is connected or not, move the call to default_routine() to in front of the call to the camera functions. <EDIT> Kevin beat me to it by 3 minutes ; ) <EDIT> Hope this helps, Last edited by DanDon : 09-02-2006 at 19:01. |
|
#5
|
|||
|
|||
|
Re: Camera code not working....
Quote:
|
|
#6
|
||||
|
||||
|
Re: Camera code not working....
Thanks a lot guys. This is what I get for not reading the FAQ....
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Moving robot while tracking with camera questions... | Steve Orr | Programming | 6 | 02-02-2006 22:24 |
| Camera Feedback in the Code | RedOctober | Programming | 1 | 21-01-2006 14:05 |
| Scripting Setup and the Camera + Serial Port Drivers | CJO | Programming | 22 | 11-01-2006 17:42 |
| Code error on RC after downloading "bells and whistles" version of Kevins camera code | DanDon | Programming | 6 | 10-01-2006 18:07 |
| Combined Camera and PID/Encoder Code | Terry Sherman | Programming | 1 | 14-03-2005 17:59 |