Go to Post We should all just be humble, courteous, and act like gentlemen (or ladies) on these forums, and not fill it with yakking about who's drive train is better. - Veselin Kolev [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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
  #16   Spotlight this post!  
Unread 23-02-2016, 00:01
dougwilliams's Avatar
dougwilliams dougwilliams is offline
Engineer - Controls, Electronics
FRC #2053 (TigerTronics)
Team Role: Mentor
 
Join Date: May 2013
Rookie Year: 2013
Location: Vestal, NY
Posts: 109
dougwilliams is on a distinguished road
Re: RS550 Causing Robot Disable

Quote:
Originally Posted by Alan Anderson View Post
The motor's low resistance to the case is a compelling bit of evidence, but you're right to wonder why it would disable the robot. Just for completeness -- what control are you using to activate this motor? Is it a joystick axis, a gamepad button, a Dashboard variable, or what?
We code in C++, and we use one of the triggers on the front of an xbox controller for the intake roller.

Looking at the code though now, I see that it's set up so one trigger is forward and the other trigger is reverse. I'm wondering if there's some strange mode when both triggers are pressed and the code fires off two simultaneous commands, one forward driving the motor and one reverse driving the motor. We have deadbands and smoothing on the analog joysticks, nut none on the triggers.

That's probably a code robustness issue, but I still am not aware of any reason why that would disable the robot.
  #17   Spotlight this post!  
Unread 23-02-2016, 01:15
scca229 scca229 is offline
FTA acquiring knowledge
AKA: Nate
FRC #0060
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2011
Location: South of Phoenix, Arizona
Posts: 213
scca229 has a spectacular aura aboutscca229 has a spectacular aura about
Re: RS550 Causing Robot Disable

Quote:
Originally Posted by dougwilliams View Post
I'm wondering if there's some strange mode when both triggers are pressed and the code fires off two simultaneous commands, one forward driving the motor and one reverse driving the motor.
Maybe put in something that checks the trigger for "pulling the boulder in" first and if that is activated, don't bother checking the second one? Only activate the "pushing the boulder out" if that is the only trigger being pressed. This is assuming that you want a "known fail-safe" where you aren't throwing a boulder out accidentally at a random time but holding onto it instead.

Basically pick one direction as the dominant one to eliminate the dual-trigger issue by ignoring whether the recessive is being pressed or not.

*Yay, Gregor Mendel reference*
__________________
Nate
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


All times are GMT -5. The time now is 10:14.

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