Go to Post An Evil Overlord is only as bad as the creatures she/he rules. - MissInformation [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 11-01-2015, 00:46
team2161's Avatar
team2161 team2161 is offline
Registered User
FRC #2161
 
Join Date: Feb 2014
Location: Huntington Station
Posts: 1
team2161 is an unknown quantity at this point
Exclamation Labview 2015 joystick help!

Hello my name is Justin lead programmer for the Walt Whitman RoboCats in Huntington Station, NY. I recently started programming with the new labview software for the RoboRIO. I am so used to unbundling by name for the joystick buttons and axis, i have no idea how to program using an index array. How would i set up a tank drive configuration using the index array and set up a relay to a button on an xbox controller.
Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-01-2015, 00:55
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Labview 2015 joystick help!

Have you seen this? http://wpilib.screenstepslive.com/s/...e-2014-to-2015
Reply With Quote
  #3   Spotlight this post!  
Unread 11-01-2015, 08:19
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Labview 2015 joystick help!

Additionally, the robot template code contains a simple teleop that indexes the first two axes from a single joystick/game controller and send it to the arcade driving. In most respects, it is the same. The index array is a growable node. You can wire in a number to each row, telling it what element to return, or if left unwired, it will increment based on the previous row.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2015, 18:52
Jack Gillespie's Avatar
Jack Gillespie Jack Gillespie is offline
Registered User
FRC #5430 (Pirate Robolution)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Vallejo California
Posts: 48
Jack Gillespie is an unknown quantity at this point
Re: Labview 2015 joystick help!

there are three arrays axis,buttons,POV. What does POV stand for?
Reply With Quote
  #5   Spotlight this post!  
Unread 17-01-2015, 19:55
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Labview 2015 joystick help!

POV=Point of View
It's often called the hat on a game controller.
It's the one that looks like a cross.

__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #6   Spotlight this post!  
Unread 18-01-2015, 23:35
FrankenmuthK's Avatar
FrankenmuthK FrankenmuthK is offline
Registered User
FRC #5215
 
Join Date: Jan 2015
Location: United States
Posts: 34
FrankenmuthK is an unknown quantity at this point
Re: Labview 2015 joystick help!

Quote:
Originally Posted by Mark McLeod View Post
POV=Point of View
It's often called the hat on a game controller.
It's the one that looks like a cross.


Do you happen to have a screen shot of what the drive code should look like for the 360?
Reply With Quote
  #7   Spotlight this post!  
Unread 19-01-2015, 06:56
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Labview 2015 joystick help!

The drive code for TeleOp takes whichever joystick axes you intend to use, potentially scales or conditions them, and sends them to RobotDrive.

Assuming you have a skid-steer robot such as the KoP, the first decision is whether you want a tank, where left and right axes drive the left and right wheels directly much like a tank, a bobcat, or a bulldozer. Or whether you want two generally orthogonal axes that are mixed to determine the left and right motor speeds. This feels much more like video game joystick driving with left/right inputs steering and forward/back inputs going front and back.

Once you have decided that, choose which axes from the 360 controller that you want to use. It may be useful to use the USB tab of the DS to identify the numbers. Then on the TeleOp diagram, index out those elements from the Axes array. Wire those into the RobotDrive that you choose to use.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 19-01-2015, 08:41
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Labview 2015 joystick help!

Here's an example using Axis 1 & 5 to tank drive with an xBox contoller.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #9   Spotlight this post!  
Unread 20-01-2015, 13:18
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Re: Labview 2015 joystick help!

Mark,

Do you have a similiar picture for the F310 Logitech gamepad controller?
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377
Reply With Quote
  #10   Spotlight this post!  
Unread 20-01-2015, 14:00
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,113
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: Labview 2015 joystick help!

Quote:
Originally Posted by marccenter View Post
Do you have a similiar picture for the F310 Logitech gamepad controller?
The code is the same. The only difference is the number of the axis you want to read. The Driver Station will show you which axis (and button and POV) number responds when you manipulate the gamepad.

Choose the USB tab at the left, and select the gamepad in the list. The axes and buttons will show up to the right of the selected controller.
Reply With Quote
  #11   Spotlight this post!  
Unread 20-01-2015, 14:30
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Labview 2015 joystick help!

Quote:
Originally Posted by marccenter View Post
Mark,

Do you have a similiar picture for the F310 Logitech gamepad controller?
A set of game controller mappings are at:
http://www.team358.org/files/program...019/#joysticks

The F310 has a couple of optional settings.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #12   Spotlight this post!  
Unread 21-01-2015, 15:32
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 522
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Labview 2015 joystick help!

A problem I ran into last night, is the xbox controller, has 10 buttons from 0-9, but in the code the button array only has 9 elements from 0-8 . . .

So how do we program control on button9...

Sorry to highjack thread, but this seem a fitting place to ask the question.

Started New Thread, please follow here. http://www.chiefdelphi.com/forums/sh...72&postcount=1
__________________
The sooner we get behind schedule, the more time we have to catch up.


Last edited by tr6scott : 21-01-2015 at 15:42. Reason: Started new Thread.
Reply With Quote
  #13   Spotlight this post!  
Unread 21-01-2015, 21:01
Charles Ononye Charles Ononye is offline
Registered User
FRC #2346 (Cel-Techs)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Missouri
Posts: 1
Charles Ononye is an unknown quantity at this point
Re: Labview 2015 joystick help!

Here you go:



In case anyone was wondering, you can use an array to cluster converter to connect to unbundle by name to get your buttons.
Reply With Quote
  #14   Spotlight this post!  
Unread 05-03-2016, 13:13
Pugsly Pugsly is offline
Registered User
FRC #1370
 
Join Date: Mar 2016
Location: Delaware
Posts: 2
Pugsly is an unknown quantity at this point
Re: Labview 2015 joystick help!

Regarding the "Set Output" of the joystick I am trying to light up an indicator using the Launchpad that was included in last years kit and I can't for the life of me figure out how to wire this up in Labview.

So say for instance I want to light a LED on the launchpad Red or Blue depending on what alliance we are on. Anyone have any ideas on how do do that?
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:18.

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