Go to Post One of the reasons, we hate being from Hawaii. - waialua359 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rating: Thread Rating: 9 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 15-04-2014, 20:02
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: How To: Xbox Controller Vibration

Quote:
Originally Posted by JamesTerm View Post
It sounds like labview would have to send a signal from robot to the customized NI Dashboard, and that would take the message and pass it to xinput to implement the rumble set interface.
LabVIEW is not required, and you don't need to use the default Dashboard as a starting point. The robot can be running a program written in any language, and so can the computer hosting the rumble-capable controller.

Minimal UDP communication from cRIO to computer is simple, but if you don't want to roll your own, there are well-supported implementations of Network Tables (and thus Smart Dashboard variables) for LabVIEW, C++ and Java.
  #2   Spotlight this post!  
Unread 16-04-2014, 02:05
JamesTerm's Avatar
JamesTerm JamesTerm is offline
Terminator
AKA: James Killian
FRC #3481 (Bronc Botz)
Team Role: Engineer
 
Join Date: May 2011
Rookie Year: 2010
Location: San Antonio, Texas
Posts: 298
JamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to behold
Re: How To: Xbox Controller Vibration

Quote:
Originally Posted by Alan Anderson View Post
LabVIEW is not required, and you don't need to use the default Dashboard as a starting point. The robot can be running a program written in any language, and so can the computer hosting the rumble-capable controller.

Minimal UDP communication from cRIO to computer is simple, but if you don't want to roll your own, there are well-supported implementations of Network Tables (and thus Smart Dashboard variables) for LabVIEW, C++ and Java.
Thanks for wording this clearer than what I was trying to do in my initial post... the confusion for me was... where the labview code was being applied.. I thought it was part of the robot code, but now I know it is a part of the custom dashboard.

When I was talking about doing this "(e.g. make a wedge proxy to the dashboard with its own networking solution). " I was hinting toward this solution. This wedges a proxy by being the main app that uses ShellExecute() to launch the SmartDashboar.jar. This way I can make my own code while still having full use of the Java client. In this project the compositor plugin has its own direct input implementation that runs parallel to the driver station's use of direct input. So yeah I could, and most likely will flip over to xinput. I'll want to use the same platform as the driver station for the sake of integrity... I know one day they'll switch and it may be next year.
On that note... they may indeed have full HID support and if so then all of this method will no longer be needed to gain full access of joystick support, but I'd still need it for the compositor. There is no confirmation on that, but I know it is a possibility as I've requested for it to do things like acquiring the joystick's name on any slot, and POV axis support etc... during beta.

Thanks for saying "well-supported" as the description of Network Tables.

Last edited by JamesTerm : 16-04-2014 at 06:17.
  #3   Spotlight this post!  
Unread 16-04-2014, 02:16
MDAWG25's Avatar
MDAWG25 MDAWG25 is offline
FRC Capability Developer LabVIEW
AKA: Matt
FRC #2614 (MARS)
Team Role: Engineer
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Morgantown, WV
Posts: 47
MDAWG25 is on a distinguished road
Re: How To: Xbox Controller Vibration

Quote:
Originally Posted by Alan Anderson View Post
LabVIEW is not required, and you don't need to use the default Dashboard as a starting point. The robot can be running a program written in any language, and so can the computer hosting the rumble-capable controller.

Minimal UDP communication from cRIO to computer is simple, but if you don't want to roll your own, there are well-supported implementations of Network Tables (and thus Smart Dashboard variables) for LabVIEW, C++ and Java.
I appreciate you explaining this better than myself.
__________________
Mountaineer Area RoboticS (MARS) Team 2614



2015-???
2014-Driver
2013-Driver
2012-Driver
2011-Programmer
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 03:49.

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