Go to Post Yes, an expanded FIRST will look far different than it does today. - GaryVoshol [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 07-02-2007, 13:12
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Reliable way to detect disconnected controller

We've been using the chicklet with great success for two different controllers.

We recently moved into using enough buttons that using the "digital buttons mapped into an analog channel" feature was necessary (> 4 buttons).

When programming to this, it became apparent that there wasn't an easy and reliable way to tell if the values you were decoding were actually the button presses versus "junk" when the controller is unplugged.

This stems from the fact that the OI puts analog channels at 127 when disconnected (this appears as button 1 always pressed). Likewise in autonomous.

With the chicklet connected, but the controller/peripheral disconnected, the value hovers around 126, 127, 128. In software this, of course, looks like alternating presses of button 1 and buttons 2, 3, 4 together.

Now... is this a big deal? Not really, but it is something to be aware of if you use the "digital buttons in an analog space" for potentially hazardous robot controls (drive train go really fast, for example). We've had cases where robot is on and enabled and a controller is loose/unplugged in the past.

Anyone come up with creative ways to detect if the controller is actually present?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Our Camera doesn't Detect magical hands Programming 3 27-01-2007 13:45
Reliable 2006 Camera Settings? Travis Hoffman Programming 5 17-04-2006 00:07
pic: Another one from way, WAY up CD47-Bot Extra Discussion 18 01-05-2004 02:31
IR senors detect pulses for 360 degrees Chaychay Technical Discussion 6 15-02-2004 15:06
Cheap, reliable hosting... Brandon Martus Website Design/Showcase 40 06-02-2003 08:55


All times are GMT -5. The time now is 07:35.

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