Go to Post All I need now is a plow atachment for this year's robot - team 3311 [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Spotlight this post!  
Unread 09-02-2002, 09:38
Unsung FIRST Hero
Warren Boudreau Warren Boudreau is offline
Registered User
FRC #0180 (Team SPAM)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 1999
Location: Stuart, FL
Posts: 354
Warren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond reputeWarren Boudreau has a reputation beyond repute
Your code looks about right. You may have a hardware problem.

Are you using a joystick or a switch wired in to the p1_sw_top pin on port 1? Using the joystick, you should get 0 when the button is not depressed and 1 when it is. It's easy enough to throw in a debug to verify that.

If you are using a switch wired in to the port make sure that you are wired to the normally open side of the switch. If the switch has three tabs on it, usually one will have NO and another will have NC next to them. NO is normally open, NC is normally closed. The third tab wil go to ground.

Once again, debug statements are the way to go. I always check out the code operation without any PWMs or relays plugged in to the Robot Controller and use debug statements to verify operation. This tip comes from a bitter experience as the team rookie coder when I loaded up my first ever piece of code and promptly destroyed our lifting mechanism. Ouch, that hurt.

I hope this helps.
__________________
Warren B

Pool Noodles. They're not just for bumpers anymore.
 


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
Quick <hr> question Jack Website Design/Showcase 1 31-01-2003 22:19
Quick Optical Sensor Question zorro Technical Discussion 10 21-01-2003 06:39
To all the ladies in the hiz-ous!! lol a quick question archiver 2001 1 24-06-2002 02:12
Quick Question archiver 2001 5 24-06-2002 00:08
Quick Question, i guess Andrew Rudolph Motors 1 12-08-2001 14:39


All times are GMT -5. The time now is 19:34.

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