Go to Post The pie is as large as you make it. - boomergeek [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 14-02-2006, 16:34
Amisca Amisca is offline
Registered User
FRC #0538
 
Join Date: Jan 2006
Location: Alabama
Posts: 15
Amisca is an unknown quantity at this point
Need help Programming and wiring camera!

Hi. I am the main programmer on our team and I know very little about programming. I need some help programming the camera.

On our robot we have a turntable motor to affect the yaw of the shooting mechanism and leadscrew motor to affect the pitch of the shooting mechanism. Basically what I want the camera to be able to do is the turntable motor and leadscrew motor to act as the two servos on the camera. I want it to be able to track the green light and then shoot whne the switch on the controller is activated.

Also I want to be able to flip a switch back a forth to be able to toggle between camera mode and a mode where another joystich on the controller can manually conrtol the shooting mechanism.

I am a horrible programmer and I have no idea how to use easyC. I have tried to use EasyC, but it just seems to make it a lot harder than just using mplab.

If anyone has anyi idea of how I can get this done and wire the camera please post. Any help would be greatly appreciated. Thanks.
  #2   Spotlight this post!  
Unread 14-02-2006, 18:37
Keith Watson Keith Watson is offline
Registered User
FRC #0957 (WATSON)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Wilsonville, OR
Posts: 112
Keith Watson is just really niceKeith Watson is just really niceKeith Watson is just really niceKeith Watson is just really nice
Re: Need help Programming and wiring camera!

Quote:
Originally Posted by Amisca
On our robot we have a turntable motor to affect the yaw of the shooting mechanism and leadscrew motor to affect the pitch of the shooting mechanism. Basically what I want the camera to be able to do is the turntable motor and leadscrew motor to act as the two servos on the camera. I want it to be able to track the green light and then shoot whne the switch on the controller is activated.
To aim your shooting mechanism some sort of feedback is needed which tells you where your "turret" is pointing.

Quote:
Originally Posted by Amisca
Also I want to be able to flip a switch back a forth to be able to toggle between camera mode and a mode where another joystich on the controller can manually conrtol the shooting mechanism.
Our programmer set up a Turret_Tracking() function. Inside of that check the joystick button to either assign the joystick x,y values to your turret motors or to map the camera tracking to the turret tracking.

Quote:
Originally Posted by Amisca
I am a horrible programmer and I have no idea how to use easyC. I have tried to use EasyC, but it just seems to make it a lot harder than just using mplab.
Just use mplab and its text editor. That is the simplest and easiest way.

Quote:
Originally Posted by Amisca
If anyone has anyi idea of how I can get this done and wire the camera please post. Any help would be greatly appreciated. Thanks.
For wiring and setting up the camera refer to the FAQ at the top of the CMUcam subforum.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.
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
Camera shows no love to drive motors anifinder Programming 4 13-02-2006 10:31
Camera doesn't have firmware? no programming? GraphicArtDesig Programming 6 19-01-2006 20:10
Pneumatics electrical wiring and programming archiver 2001 1 23-06-2002 23:10
Error found in programming for the pump and pressure switch sjharobotics Programming 4 06-02-2002 17:46
Wiring Compressor DakotaFox Electrical 3 05-02-2002 16:52


All times are GMT -5. The time now is 01:36.

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