Go to Post Let's just say that I am old enough to... - dlavery [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 16-02-2007, 10:15
seanl's Avatar
seanl seanl is offline
"The Everything person"
FRC #0867 (Absolute Value)
Team Role: Leadership
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Arcadia, CA
Posts: 267
seanl will become famous soon enoughseanl will become famous soon enough
camera code and driving

i loaded the bells and whistles version on to our robot and the camera worked perfectly but we could not drive it.the motors just stood there the speed controllers are fine i checked and the pwm was preset on the code to 13-16, i tried it on those and tried changing it on the code to 1-2 and moved the camera pan and tilt to 7-8, this way the camera still worked and the driving didnt. the only thing i could think of is autonomous activating because we only have the camera code on there and nothing about driving. if this is the problem can some one tell me how to fix it. i am stumped on this one.
  #2   Spotlight this post!  
Unread 16-02-2007, 10:22
pheadxdll pheadxdll is offline
Registered User
AKA: Alex
FRC #1225 (Amperage Robotics)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: North Carolina
Posts: 168
pheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud of
Re: camera code and driving

Your right, in the bells in whisles version, all the drive code is commented out. So make some:

pwm01 = p1_y;
pwm02 = p2_y;

If you need to change the servo pwm's for the camera just change the varaible in tracking.h.
__________________
Amperage Robotics Team 1225
Site under-going revamp. :/

Last edited by pheadxdll : 16-02-2007 at 10:28.
  #3   Spotlight this post!  
Unread 16-02-2007, 10:32
seanl's Avatar
seanl seanl is offline
"The Everything person"
FRC #0867 (Absolute Value)
Team Role: Leadership
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Arcadia, CA
Posts: 267
seanl will become famous soon enoughseanl will become famous soon enough
Re: camera code and driving

i uncommented that and the default routine() before. i have no idea whats happening.
  #4   Spotlight this post!  
Unread 16-02-2007, 10:38
pheadxdll pheadxdll is offline
Registered User
AKA: Alex
FRC #1225 (Amperage Robotics)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: North Carolina
Posts: 168
pheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud of
Re: camera code and driving

Are you sure you've got the right pwms for the motors? Are the victor lights changing colors? Can you check the voltage of the victors with a meter?
__________________
Amperage Robotics Team 1225
Site under-going revamp. :/
  #5   Spotlight this post!  
Unread 16-02-2007, 10:40
seanl's Avatar
seanl seanl is offline
"The Everything person"
FRC #0867 (Absolute Value)
Team Role: Leadership
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Arcadia, CA
Posts: 267
seanl will become famous soon enoughseanl will become famous soon enough
Re: camera code and driving

yep im sure i did the all the electical too, on the team job in the profile they should have "everything person".

Edit: i have school so i cant reply but if you guys have any ideas please post them and ill reply to them later.
  #6   Spotlight this post!  
Unread 16-02-2007, 10:47
pheadxdll pheadxdll is offline
Registered User
AKA: Alex
FRC #1225 (Amperage Robotics)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: North Carolina
Posts: 168
pheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud of
Re: camera code and driving

Maybe try posting your code and we can take a look at it? You should be able to give a pwm0x a full value of 254 and have the victor turn green when its hooked to the corresponding pwm0x. Else your typing your code in the wrong place.
__________________
Amperage Robotics Team 1225
Site under-going revamp. :/
  #7   Spotlight this post!  
Unread 16-02-2007, 14:04
jdejoannis jdejoannis is offline
Registered User
FRC #1845
 
Join Date: Feb 2006
Location: Atlanta,GA
Posts: 48
jdejoannis will become famous soon enoughjdejoannis will become famous soon enough
Re: camera code and driving

Does it drive using the IFI default code?
  #8   Spotlight this post!  
Unread 16-02-2007, 14:45
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: camera code and driving

Are the Victor lights solid yellow, or are they blinking? Solid would mean they're being commanded to stop, and you need to find out what's wrong with the software.

Blinking means they are not receiving any command at all, either because the robot is disabled or the pwm cable is not connected properly. A disabled robot won't move the camera servos. If the camera is seeking but the Victors are blinking, it's a wiring issue. The pwm connectors are notoriously difficult to plug in properly, so try them first.
  #9   Spotlight this post!  
Unread 16-02-2007, 16:19
Robert Cawthon's Avatar
Robert Cawthon Robert Cawthon is offline
Registered User
no team
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Kansas City, KS
Posts: 275
Robert Cawthon is a splendid one to beholdRobert Cawthon is a splendid one to beholdRobert Cawthon is a splendid one to beholdRobert Cawthon is a splendid one to beholdRobert Cawthon is a splendid one to beholdRobert Cawthon is a splendid one to beholdRobert Cawthon is a splendid one to behold
Re: camera code and driving

It could be that you are not exiting the autonomous program. I did not load that program, so I am not familiar with it, but you might want to put some "Print Screen" check blocks in the operator's program just to see if you are getting there.
  #10   Spotlight this post!  
Unread 16-02-2007, 16:21
seanl's Avatar
seanl seanl is offline
"The Everything person"
FRC #0867 (Absolute Value)
Team Role: Leadership
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Arcadia, CA
Posts: 267
seanl will become famous soon enoughseanl will become famous soon enough
Re: camera code and driving

ill see if its blinking when i get to class. and it does drive with the default code. ill upload the code if i have time.
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
Using kevin's code for driving and camera tracking razzoc Programming 3 18-02-2007 08:50
Problems Combining Camera Code and Driving Code cmurdoch Programming 20 10-02-2007 16:34
Driving in Camera Code wingnut1705 Programming 2 10-02-2007 11:17
Code error on RC after downloading "bells and whistles" version of Kevins camera code DanDon Programming 6 10-01-2006 18:07
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28


All times are GMT -5. The time now is 00:29.

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