View Single Post
  #2   Spotlight this post!  
Unread 12-02-2009, 19:59
pheadxdll pheadxdll is offline
Registered User
AKA: Alex
FRC #1225 (Amperage Robotics)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: North Carolina
Posts: 168
pheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud of
Re: "GetTrigger(KHand hand)" what???

Quote:
Originally Posted by xtreampb View Post
in the joystick class, the member function GetTrigger(), how do i use this. I am using it in the following code:

if (m_FireStick->GetTrigger())
{
solenoid->Set(true);
solenoid->Set(false);
}

when i press the trigger, the code isn't executing. what am i doing wrong
Uh... you're setting it on then off imediately. Try this:

Code:
if (m_FireStick->GetTrigger())
{
solenoid->Set(true);
}else{
solenoid->Set(false);
}
__________________
Amperage Robotics Team 1225
Site under-going revamp. :/