Go to Post There's a fine line between insanity and healthy obsesion with FIRST ... and sometimes I wonder which one I'm on - srawls [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 31-01-2017, 12:48
Stormlord Stormlord is offline
Registered User
FRC #3294
 
Join Date: Jan 2017
Location: Pine River
Posts: 3
Stormlord is an unknown quantity at this point
Another Mecanum Question

We are trying to set up a mecanum drive system and are needing some help.
What we would like to do, but do not know how to, is set up the system to use a single joystick, with Y moving forward-backward, X to rotate CW-CCW, and two joystick buttons to strafe left-right. The buttons for strafing would be set to use a lower power setting, rather than full power on-off.

Does someone have a pic of how labview should look to pull this off?

We are using the 2017 mecanum example to start, but we are very weak with programming.

Searching the forums I can find info two joysticks, tank drive, or setup of other configurations, but I have not been able to locate anything for this specific setup.


Thanks!
#3294
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2017, 23:16
Matt-T-FRC Matt-T-FRC is offline
Electrical Engineering Student
AKA: Matt Tisovic
FRC #6181 (Northwest State Cryptic Cyborgs)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 2012
Location: Northwest Ohio
Posts: 32
Matt-T-FRC is an unknown quantity at this point
Re: Another Mecanum Question

Give this a shot! It uses Buttons 3 and 4 on the Joystick to control the Strafing and the x and y axes to control turning and forward/ backward movement.
Attached Thumbnails
Click image for larger version

Name:	2017 Mecanum Help Telop 3294.png
Views:	26
Size:	28.6 KB
ID:	21669  
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2017, 11:05
Stormlord Stormlord is offline
Registered User
FRC #3294
 
Join Date: Jan 2017
Location: Pine River
Posts: 3
Stormlord is an unknown quantity at this point
Re: Another Mecanum Question

Thanks for the reply ... I also worked on this last night... not sure if how I did it will work. If anyone can look at it and tell me if it looks sound, I would appreciate it. I have not been able to test it yet.

https://drive.google.com/open?id=0B2...Gl4N1dVRmZyaE0
Reply With Quote
  #4   Spotlight this post!  
Unread 01-02-2017, 11:08
flemdogmillion's Avatar
flemdogmillion flemdogmillion is online now
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 126
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Another Mecanum Question

Quote:
Originally Posted by Stormlord View Post
Thanks for the reply ... I also worked on this last night... not sure if how I did it will work. If anyone can look at it and tell me if it looks sound, I would appreciate it. I have not been able to test it yet.

https://drive.google.com/open?id=0B2...Gl4N1dVRmZyaE0
It looks sound, except your joystick indexes are off by one.
__________________
Team 4506: 2015-2016
Team 3007: 2017

Jack of all trades except C++ & Java
Reply With Quote
  #5   Spotlight this post!  
Unread 01-02-2017, 11:37
Stormlord Stormlord is offline
Registered User
FRC #3294
 
Join Date: Jan 2017
Location: Pine River
Posts: 3
Stormlord is an unknown quantity at this point
Re: Another Mecanum Question

I am super terrible at this ... heh

I do not know what that means.

The buttons are labeled 0 - 5, 0 being the trigger. So, when I want to use button 2 on the joystick, I have to attach it to the one labeled 3. I do not know how to correct that, so I just keep it in my mind to add one. LOL

It's truly amazing that I can get a program working at all ...
We tried to go to a Labview programming class this year, but it was full by the time I even heard of it.

Once I get to the competition, I will most likely need to find some help from another team just to get some things working....

The next thing on my list is limit switches. Right now, I put together a weird logic section in tele-op so that the motor won't be completely unusable once a limit switch is made. It just won't drive any farther in that direction. It was the only way I could think of to make it work. Is there an easier way to do this?

https://drive.google.com/open?id=0B2...DFlazdOMmU4Mzg
Reply With Quote
  #6   Spotlight this post!  
Unread 01-02-2017, 14:00
flemdogmillion's Avatar
flemdogmillion flemdogmillion is online now
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 126
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Another Mecanum Question

Quote:
Originally Posted by Stormlord View Post
I am super terrible at this ... heh

I do not know what that means.

The buttons are labeled 0 - 5, 0 being the trigger. So, when I want to use button 2 on the joystick, I have to attach it to the one labeled 3. I do not know how to correct that, so I just keep it in my mind to add one. LOL

It's truly amazing that I can get a program working at all ...
We tried to go to a Labview programming class this year, but it was full by the time I even heard of it.

Once I get to the competition, I will most likely need to find some help from another team just to get some things working....

The next thing on my list is limit switches. Right now, I put together a weird logic section in tele-op so that the motor won't be completely unusable once a limit switch is made. It just won't drive any farther in that direction. It was the only way I could think of to make it work. Is there an easier way to do this?

https://drive.google.com/open?id=0B2...DFlazdOMmU4Mzg
Jaguars have built-in limit switch support. if you use Jags, you don't need to code limit switches.
__________________
Team 4506: 2015-2016
Team 3007: 2017

Jack of all trades except C++ & Java
Reply With Quote
  #7   Spotlight this post!  
Unread 01-02-2017, 14:14
Peyton Yeung's Avatar
Peyton Yeung Peyton Yeung is offline
45 Alumni
AKA: Peyton Yeung
FRC #0461 (Westside Boiler Invasion)
Team Role: Coach
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Kokomo, IN
Posts: 833
Peyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond repute
Re: Another Mecanum Question

Quote:
Originally Posted by flemdogmillion View Post
Jaguars have built-in limit switch support. if you use Jags, you don't need to code limit switches.
Sparks have a similar feature.
__________________
461 Westside Boiler Invasion
2016 Tippy Quarter finalist, Warren Finalist, IN State Semi Finalist,B^3 Double Finalist
2015 Indy Semi finalist, Purdue Quarter Finalist, IN State Quarter Finalist, CORI QF, R2OC Finalist, RAGE Winner
2014 Boilermaker Semi finalist, Crossroads Quarter Finalist, & CAGE Quarter Finalist
45 Technokats
2013 Boilermaker Quarter finalist
2012 CAGE Semi finalist & Queen City Champion
2011 CAGE Quarter finalist & Midwest Semi finalist
2010 CAGE Quarter finalist, Boilermaker Champion, & Washington DC Quarter Finalist
Reply With Quote
  #8   Spotlight this post!  
Unread 01-02-2017, 14:17
flemdogmillion's Avatar
flemdogmillion flemdogmillion is online now
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 126
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Another Mecanum Question

Quote:
Originally Posted by Peyton Yeung View Post
Sparks have a similar feature.
All the better. I did not know that.
__________________
Team 4506: 2015-2016
Team 3007: 2017

Jack of all trades except C++ & Java
Reply With Quote
  #9   Spotlight this post!  
Unread 01-02-2017, 14:32
Matt-T-FRC Matt-T-FRC is offline
Electrical Engineering Student
AKA: Matt Tisovic
FRC #6181 (Northwest State Cryptic Cyborgs)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 2012
Location: Northwest Ohio
Posts: 32
Matt-T-FRC is an unknown quantity at this point
Re: Another Mecanum Question

Quote:
Originally Posted by Stormlord View Post
The next thing on my list is limit switches. Right now, I put together a weird logic section in tele-op so that the motor won't be completely unusable once a limit switch is made. It just won't drive any farther in that direction. It was the only way I could think of to make it work. Is there an easier way to do this?

https://drive.google.com/open?id=0B2...DFlazdOMmU4Mzg
As Stated previously, if you are using a Spark, Jaguar, or Talon SRX motor controller, you can use the limit switch inputs on the controllers. If you would like to attempt to code in limit switches, give this a shot.
Attached Thumbnails
Click image for larger version

Name:	2017 Limit Switch Help Telop 3294.png
Views:	8
Size:	22.9 KB
ID:	21673  
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:57.

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