Go to Post yeah, right - like anyone's going to pass up building a robot. - IbleedPink233 [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 18-01-2015, 08:34
NeilR NeilR is offline
Adjunct Lecturer, UNC Asheville
FRC #3971 (Kai Orbus)
Team Role: Mentor
 
Join Date: Dec 2005
Rookie Year: 2002
Location: Asheville, NC
Posts: 6
NeilR is on a distinguished road
2015 FRC Mechanum Sample Code Problems and Fixes

Mechanum Sample for 2015 FRC seems to be faulty.

We have noticed (and fixed) a few problems in the sample Holonomic Mechanum Cartesian code:

1. The joystick inputs have Rotation, X and Y messed up. We had to fine-tooth-comb which should be hooked to what, but once we found the right VI, it was not difficult.

2. The motor comments that specify which motor gets which port has an error which prevents lateral X motion. We switched the wires between port/motor 1 and 3 and now it works fine.

Not sure how this slipped through, I hope this helps other teams (particularly newbies) to get their mechanums working.

Neil
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2015, 21:30
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,015
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: 2015 FRC Mechanum Sample Code Problems and Fixes

Quote:
Originally Posted by NeilR View Post
Mechanum Sample for 2015 FRC seems to be faulty.

We have noticed (and fixed) a few problems in the sample Holonomic Mechanum Cartesian code:

1. The joystick inputs have Rotation, X and Y messed up. We had to fine-tooth-comb which should be hooked to what, but once we found the right VI, it was not difficult.

2. The motor comments that specify which motor gets which port has an error which prevents lateral X motion. We switched the wires between port/motor 1 and 3 and now it works fine.

Not sure how this slipped through, I hope this helps other teams (particularly newbies) to get their mechanums working.

Neil
Could a LabVIEW guru please comment on the above?

It's not exactly going viral, but it is getting some airplay.


Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2015, 22:01
Greg McKaskle Greg McKaskle is online now
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
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: 2015 FRC Mechanum Sample Code Problems and Fixes

I looked at the code and see nothing that looks incorrect.

The joystick axis selection was changed to be array based, and I don't have a true joystick to test with at the moment, but I don't think that it looks wrong.

The labels for the motors look consistent, and of course have arbitrary PWM channels selected. I'll respond to the algorithm question in the other thread.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2015, 22:11
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: 2015 FRC Mechanum Sample Code Problems and Fixes

There is absolutely nothing wrong with the default mecanum LabVIEW code.

The problem is that there are several ways to get the wiring to the motors not to match the inputs to the Open 4 Motor function, and they all can give a casual observer the impression that it's the rest of the programming that's broken.
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 08:02.

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