Go to Post The best way to brainstorm is to just do it. - EricH [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
  #1   Spotlight this post!  
Unread 24-01-2007, 14:49
sniggel sniggel is offline
Registered User
FRC #2051
 
Join Date: Jan 2007
Location: A.W. Beattie
Posts: 28
sniggel is an unknown quantity at this point
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   Spotlight this post!  
Unread 24-01-2007, 21:42
coldfusion1279 coldfusion1279 is offline
Registered User
AKA: Mike
FRC #1279 (Cold Fusion)
Team Role: Coach
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Somerville, NJ
Posts: 252
coldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud of
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
__________________
Cold Fusion's 10th Season
  #3   Spotlight this post!  
Unread 24-01-2007, 22:08
TubaMorg TubaMorg is offline
Programmermechanicalelect ricalcoach
AKA: Dan
FRC #1480 (Robatos Locos)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Houston
Posts: 450
TubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond repute
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   Spotlight this post!  
Unread 26-01-2007, 11:25
Fred Agnir Fred Agnir is offline
Hit and Run Lurker
#0126 (Gael Force)
Team Role: Engineer
 
Join Date: Mar 2004
Rookie Year: 2000
Location: Clinton, MA
Posts: 10
Fred Agnir has a spectacular aura aboutFred Agnir has a spectacular aura aboutFred Agnir has a spectacular aura about
Re: easyc demo code not working

Quote:
Originally Posted by sniggel
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?
The problem we had was that going through the EasyC tutorial, we didn't put the call for camera data in the loop. So, once we got data from the camera, there wasn't anything to check the camera again.

I don't know if that's a demo/tutorial issue or a failure to read correctly error.

Fred
__________________
Fred Agnir
Automation and Robotics Engineer
Nypro Inc. / Clinton High School

Controls Lead

~Never Stop Learning. I haven't~
  #5   Spotlight this post!  
Unread 26-01-2007, 19:53
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
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   Spotlight this post!  
Unread 28-01-2007, 16:40
sniggel sniggel is offline
Registered User
FRC #2051
 
Join Date: Jan 2007
Location: A.W. Beattie
Posts: 28
sniggel is an unknown quantity at this point
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
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
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


All times are GMT -5. The time now is 10:02.

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