Go to Post This looks like a job for duct tape! - JoeXIII'007 [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 19-01-2017, 17:40
swolverines's Avatar
swolverines swolverines is offline
Registered User
FRC #3839
 
Join Date: Jan 2017
Location: Wadena, MN
Posts: 3
swolverines is an unknown quantity at this point
LabView Joystick Help Needed

We are not great with LabView. Let's get that out of the way.

How do we change what the joysticks do? We used the base Arcade Drive and the code is working with our robot after we assigned the motors and PWMs. However, it's just forwards and backwards.

How do we make it so we can assign certain axis to do certain things?

Thanks in advance.
Reply With Quote
  #2   Spotlight this post!  
Unread 19-01-2017, 17:44
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,906
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 Joystick Help Needed

Arcade (the default robot project) should allow you to turn as well.
Does the robot not turn if you lean the joystick to one side or the other?
Attached Thumbnails
Click image for larger version

Name:	DefaultArcadeDrive.png
Views:	24
Size:	20.7 KB
ID:	21582  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 19-01-2017 at 17:47.
Reply With Quote
  #3   Spotlight this post!  
Unread 22-01-2017, 20:13
mshafer1 mshafer1 is offline
Programming Mentor
AKA: Matthew Shafer
FRC #3937 (Breakaway)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Arkansas
Posts: 60
mshafer1 is an unknown quantity at this point
Re: LabView Joystick Help Needed

If you're robot is only going forward and backward, it may be a mismatch between the physical system and how the motors are opened in Begin.vi (are there four motors?). If the problem persists, could you post screen shots of opening the motors in Begin.vi and what you have for setting them (in Teleop)?

Team 358 has posted a lot of example code on their website: http://www.team358.org/files/program...hp#ArcadeDrive

Please feel free to personal message or email me if you have any issues and want a quick reply.
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 10:53.

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