|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
easyc demo code not working
We got kevins code to work, thank-you kevin. My students are more comfortable with easy c so we tried the easy c demo. The program downloads but doesnt track the light. We do have a joystick attached, and the camera light turns red like it sees the light, but doesnt activate the servos,
is there something else we need to get it to work? Also we tried to get kevin's code into easy c, but were unsuccessful, has anyone done this and have an idea how to do it? |
|
#2
|
|||
|
|||
|
Re: easyc demo code not working
im sorry I cant help, my team doesnt have any real programmers on it at all, so we are trying to use easy c since well, its easy...
where can we get the sample code for the camera for easy c? thanks a bunch |
|
#3
|
|||
|
|||
|
Re: easyc demo code not working
Hopefully you've run through some of the tutorials in EasyC to become familiar with some of the library calls. I believe the Cam demo you are talking about is designed to drive the robot towards the light, which means it isn't set up to control the servos. Take a close look at the code. You can modify it to position the servos instead of the wheels. Just send the desired signal to the pwm out that the servo is attached to.
servoPosition = 127 - error/2; Something like that. |
|
#4
|
|||
|
|||
|
Re: easyc demo code not working
Quote:
I don't know if that's a demo/tutorial issue or a failure to read correctly error. Fred |
|
#5
|
|||||
|
|||||
|
Re: easyc demo code not working
I believe that in order for the easyC demo to work, the robot has to be put into autonomous mode. For that you need to build an autonomous dongle. There are schematics on the IFI site, and you can buy a premade dongle from AndyMark.biz.
|
|
#6
|
|||
|
|||
|
Re: easyc demo code not working
we got our robot now operating in autonomous moed. we found out that putting 000,s into team number will no longer trigger autonomous as the manual we said it would. we have ordered the dongle. we did find a way around it using a jumper between pin 54,8 of the competition. HOwver, this dangerous as it is easy to fry the controllers, so we have ordered the dongle
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2007 demo code not working | thefro526 | Programming | 4 | 12-01-2007 23:43 |
| CMUCam2 Demo - File Not Found Error | TechnoDrake | LabView and Data Acquisition | 6 | 12-01-2007 15:56 |
| Camera code not working.... | DemonYawgmoth | Programming | 5 | 11-02-2006 09:21 |
| Kevin Watson's Kick-off Demo Code! | Mr. Lim | Programming | 27 | 22-01-2005 03:38 |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |