Go to Post I love FIRST... - jess523s [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-16-2016, 03:25 PM
jthenderson jthenderson is offline
Registered User
FRC #5464 (BlueJackets)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: minnesota
Posts: 8
jthenderson is an unknown quantity at this point
XBOX RUMBLE triggering

Hey Chief Delphi! does anyone know how to trigger the xbox rumble? in c++... I'm following this page (http://first.wpi.edu/FRC/roborio/rel...e454c1c7ed ef) and SetRuble(kLeftRumble) is always underlined in red... it would be used to trigger when we are in shooting range... it would be a massive help!

Thanks for your time!


if (stick2.GetRawButton(8) == true)
{
stick2.SetRumble(kLeftRumble, 1);
}
else
{
stick2.SetRumble(kLeftRumble, 0);
}
Reply With Quote
  #2   Spotlight this post!  
Unread 02-17-2016, 12:50 AM
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: XBOX RUMBLE triggering

Do you need to explicitly call out the class name when using those constants? e.g. Joystick::kLeftRumble
Reply With Quote
  #3   Spotlight this post!  
Unread 02-17-2016, 07:30 AM
jthenderson jthenderson is offline
Registered User
FRC #5464 (BlueJackets)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: minnesota
Posts: 8
jthenderson is an unknown quantity at this point
Re: XBOX RUMBLE triggering

Quote:
Originally Posted by Alan Anderson View Post
Do you need to explicitly call out the class name when using those constants? e.g. Joystick::kLeftRumble
Thanks! I didn't think of that! This was super helpful!
Reply With Quote
Reply


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:17 AM.

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