Go to Post Note: Please don't actually mob them or cause them any harm. It's just a saying people. :) - CalTran [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-01-2014, 13:53
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Xbox One controller feedback?

Our team has used Xbox 360 controllers for 4 years, but I'm curious to see if anyone is using an Xbox One controller via the USB cable? If so, have you looked into using the trigger "rumble"?

I don't think this would add any real functionality, but it would be an interesting side project to add some rumble in the XB1 Controller triggers when you shoot the ball or rumble either controller based on how fast you were driving.

Is this possible with any of the languages we are allowed to use now?
__________________
Per Audacia Ad Astra
Reply With Quote
  #2   Spotlight this post!  
Unread 24-01-2014, 14:10
Chris_Ely's Avatar
Chris_Ely Chris_Ely is offline
Registered User
AKA: luckof13
FRC #3414 (HackBots)
Team Role: College Student
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Farmington, Michigan
Posts: 365
Chris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond repute
Re: Xbox One controller feedback?

As of right know, Microsoft has not released drivers for Windows for the Xbox One controller.
__________________
2013: Waterford Finalist, Livonia Winner, MSC Quarterfinalist, Curie Division
2012: Waterford, Northville, Livonia
2011: Waterford Finalist, Livonia
2010: Ann Arbor Rookie Inspiration Award, Troy

Mechanical Engineering Student,
Michigan Technological University
Reply With Quote
  #3   Spotlight this post!  
Unread 24-01-2014, 16:40
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,075
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Rumble functions on any controller are not supported by WPILib and the Driver Station
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

Reply With Quote
  #4   Spotlight this post!  
Unread 24-01-2014, 19:22
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Xbox One controller feedback?

Quote:
Originally Posted by cgmv123 View Post
Rumble functions on any controller are not supported by WPILib and the Driver Station
__________________
Per Audacia Ad Astra
Reply With Quote
  #5   Spotlight this post!  
Unread 26-01-2014, 12:47
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 One controller feedback?

Quote:
Originally Posted by cgmv123 View Post
Rumble functions on any controller are not supported by WPILib and the Driver Station
Keep in mind that the Driver Station is just one program. You are able -- and even encouraged -- to run your own Dashboard software alongside it. It should be possible to use advanced joystick/gamepad features from your own code.
Reply With Quote
  #6   Spotlight this post!  
Unread 26-01-2014, 12:58
eddie12390's Avatar
eddie12390 eddie12390 is offline
Registered User
AKA: Eddie
FRC #3260 (SHARP)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Pittsburgh
Posts: 285
eddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of light
Re: Xbox One controller feedback?

It's not currently possible to use an XBox One controller on Windows so that's out of the question.

Right now we're using a PS3 Controller connected with a Micro-USB cable using MotionInJoy and I like it a lot. Having the joysticks be not be at separate heights on the controller makes things like tank drive feel a lot more natural and I prefer the feel of the PS3 controller overall.
Reply With Quote
  #7   Spotlight this post!  
Unread 26-01-2014, 17:32
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Xbox One controller feedback?

Quote:
Originally Posted by Alan Anderson View Post
Keep in mind that the Driver Station is just one program. You are able -- and even encouraged -- to run your own Dashboard software alongside it. It should be possible to use advanced joystick/gamepad features from your own code.
So, if I wrote a third-party program to rumble the controller while the dashboard was running (because I seriously doubt the LabVIEW Dashboard we're using can rumble the controller), how would I send the signal from the LabVIEW dashboard to this separate process?

Also, wouldn't using gamepad functions in another program while using the same gamepad in the DS cause problems?
__________________
Per Audacia Ad Astra
Reply With Quote
  #8   Spotlight this post!  
Unread 26-01-2014, 21:48
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 One controller feedback?

Quote:
Originally Posted by Invictus3593 View Post
...I seriously doubt the LabVIEW Dashboard we're using can rumble the controller...
LabVIEW can invoke any DLL function or ActiveX control that you want. Look in the Connectivity function palette.

Quote:
Also, wouldn't using gamepad functions in another program while using the same gamepad in the DS cause problems?
I don't know whether the Driver Station takes exclusive control of the HID devices it finds. If it turns out that you can't use an input device simultaneously in both the DS and another program, you can have your program send to the robot whatever gamepad input data you like. The DS doesn't have to be the only conduit for driver control.
Reply With Quote
  #9   Spotlight this post!  
Unread 27-01-2014, 01:23
gerry gerry is offline
Registered User
FRC #4144
 
Join Date: Jan 2013
Location: inglewood
Posts: 19
gerry is an unknown quantity at this point
Re: Xbox One controller feedback?

so its my third year programming and ive never done xbox 360 controllers the most complicated thing that ive ever done was a six cim drive train so i wanted to know if someone could tutorial me on programing a xbox 360 controller using the left thumbstick for movement forwards and backwards and the right thumstick for movement right and left and the right trigger for acceleration forward and the left trigger for backward acceleration
i know itll be difficult but i wanted a challenge and now im second guessing myself
and need tons of help !!!!
Reply With Quote
  #10   Spotlight this post!  
Unread 27-01-2014, 18:45
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Xbox One controller feedback?

Quote:
LabVIEW can invoke any DLL function or ActiveX control that you want. Look in the Connectivity function palette
I've been trying to do just that. This is the C# code I was able to successfully get the controller to vibrate:
Code:
PlayerIndex controller = new PlayerIndex();

if (checkBox1.Checked == true)
{
    GamePad.SetVibration(controller, 1, 1);
}
else
{
    GamePad.SetVibration(controller, 0, 0);
}
But, as you can see, the SetVibration method requires three parameters: (PlayerIndex playerIndex, float left, float right)

I can use the .net construct node to get the Microsoft.Xna.Framework.PlayerIndex controller with this code:

but I don't know how to invoke the method SetVibration, since it is only a method in Microsoft.Xna.Framework.Input.Gamepad which has no constructors.


Quote:
so its my third year programming and ive never done xbox 360 controllers the most complicated thing that ive ever done was a six cim drive train so i wanted to know if someone could tutorial me on programing a xbox 360 controller using the left thumbstick for movement forwards and backwards and the right thumstick for movement right and left and the right trigger for acceleration forward and the left trigger for backward acceleration
i know itll be difficult but i wanted a challenge and now im second guessing myself
and need tons of help !!!!
Do a quick search here on CD for "Xbox layout". You'll find some good resources on which digital axis corresponds to the physical joystick. From there, you can figure out which axis is needed for which function.
__________________
Per Audacia Ad Astra
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 20:09.

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