View Single Post
  #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: 220
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