Go to Post Just be yourself, be honest, and most importantly, be present. The best role models are the ones you can relate to. - Jessica Boucher [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 15-02-2008, 19:45
d25inferno d25inferno is offline
Registered User
FRC #2554 (WarHawks)
Team Role: Leadership
 
Join Date: Nov 2007
Rookie Year: 2008
Location: Edison, NJ
Posts: 23
d25inferno is on a distinguished road
Send a message via AIM to d25inferno
help with operator control

we are having a problem controlling our "arm" which is run by 2 relay switches connected to 1 motor each. When we enable our robot the arm shoots upwards but cannot be controlled by the joystick. We are controlling our "claw" with buttons on the joystick which work (the claw motor is also connected to the motor). I have attached an image of our code. Please help! Thank
you.

http://img229.imageshack.us/img229/7555/picnr1.png
__________________
  #2   Spotlight this post!  
Unread 18-02-2008, 11:36
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: help with operator control

Two things change the while loops to "If" and set a off state for the relay.

If ( Y >= (117 && Y <= 137) {
SetRelay ( Off )
}
else if (Y >= 138 ) {
SetRelay ( Forward)
}
else if (Y <=116 ) {
SetRelay ( Reverse)
}
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni

Last edited by Kingofl337 : 18-02-2008 at 11:39.
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
Help with automatic relay control DRH2o Programming 5 23-01-2008 18:13
Operator Control Help Neurovirus Programming 6 12-01-2008 23:44
pic: Portable Operator Control falconmaster Extra Discussion 1 15-02-2007 13:36
Help: IFI loader not communicating with control unit red_alert_13 Programming 9 20-01-2006 17:30
We need help with joystick control Team ICE #1611 Control System 4 24-01-2005 15:57


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

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