Go to Post Robotics = my anti drug. - Queen_of_Mascot [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-01-2012, 19:51
jameshayek jameshayek is offline
Registered User
FRC #4347
 
Join Date: Jan 2012
Location: United States
Posts: 3
jameshayek is an unknown quantity at this point
Mapping buttons on a configured joystick to new motors

Hello all and thank you in advance for your help and advice.

I am part of team 4347 and we are all rookies. We decided to go with labView but will probably tinker in C++ as well.

My question here pertains to LabView. I have sample code that I have uploaded and I am confused on how to map buttons on a currently configured joystick to conrol a new servo or motor.

The joystick axis was originally set to control a two motor device, I changed it to control mechanum wheels. (I still must modify this control systyem when my wheels come in, as you will see from my rotation value of 0) In the sample code there was no set up for using buttons and I was unable to find good documents online.

Would someone be able to help me create/map a button to a new motor? I would like to have one button turn the motor to the right, and another to turn it to the left.

My current coding problem is in the TeleOp Vi

Thank you in advance for all your help.

James
Attached Files
File Type: zip 2012 Robot Project.zip (210.8 KB, 18 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2012, 09:52
Omar's Avatar
Omar Omar is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Huntsville, AL
Posts: 122
Omar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of light
Re: Mapping buttons on a configured joystick to new motors

Use WPI_JoystickGet.vi it has both the joystick axis and buttons output
__________________
Omar
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2012, 10:21
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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: Mapping buttons on a configured joystick to new motors

There are examples you get to fronm the LabVIEW Getting Started Window (the first screen to appear when you start LabVIEW or you can bring it up by going to View -> Getting Started Window... from any of the project windows.
From the Getting Started Window go to:
  • Support on the left-hand menu
  • Find FRC Examples...
  • FRC Robotics on the example list
  • Joystick
Here's how you breakout joystick buttons for use.

__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 17-01-2012 at 10:27.
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 22:28.

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