Go to Post ...I pretty much got the impression that the balls are actually very small, cuddly landmines. - Gui Cavalcanti [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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
  #1   Spotlight this post!  
Unread 20-02-2016, 20:26
StewEsho's Avatar
StewEsho StewEsho is offline
Programmer
FRC #4940 (KnightVision Robotics)
Team Role: Programmer
 
Join Date: Oct 2014
Rookie Year: 2014
Location: Windsor, Ontario, Canada
Posts: 3
StewEsho is an unknown quantity at this point
Limit switches are always on.

Our team is having a difficult problem with the limit switches. While they used to work, earlier today they stopped working correctly and always returned a "true" value, regardless of whether they were pressed or not. We tries rewiring in every possible way, we tried adding the most basic limit switch code into a sample program, we tried looking online for solutions, but nothing works. Does anyone know what the problem could be?

Information
Here is the source code for the sample program we tried running (comments and all):
https://gist.github.com/StewEsho/68871eb0a2c541ee2b07

Here are the images of the wiring (just looking at the wire for the switch in port 1, but all switches have similar problems):
http://imgur.com/a/c02fV

When testing, we tried printing the outputs from all ten ports, even the ones with nothing plugged in, and they all returned "true".

Shortly before this problem arose, we couldn't run the robot and the driver station said "Brownout Error". We were forced to power cycle the robot to continue use. Could this possibly be related to our issue?

All other motors, speed controllers, and encoders work perfectly fine.


Thank you in advance for your time and your help!
Reply With Quote
 


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


All times are GMT -5. The time now is 09:46.

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