Go to Post "But from a real life standpoint, that looks like something the evil villains in a superhero movie would use to get around in" Reading the phrases "real life" and "evil villains in a superhero movie" in the same sentence makes me giggle. - Alan Anderson [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 17-01-2015, 11:56
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
What's wrong with our roboRIO?

I'm sorry for reposting, but this is a serious issue for our team as we found that it is not solely an issue with arcade drive. We cannot even get our mecanum drivetrain moving correctly because of it. Our axises seem to be registering completely wrong and this has been a result of code compiled on both of our computers. For example, when we deploy code for a simple arcade drive (the default code with no changes), we have to use our joystick's X axis to guide it forward and vice versa. What is wrong with our roboRIO?
__________________
Team 3525 Head Programmer (2014- ) - Java (Formerly LabVIEW)
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2015, 12:34
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: What's wrong with our roboRIO?

I suspect that the fault is not in your roboRIO but in your motor wiring.

Try using tank drive to control the left side and right side motors independently. Make sure the correct motor goes in the direction you expect. If the wrong motor turns, correct the code in Begin.vi to tell it where the left and right motors are really connected. If the motor turns in the wrong direction, again correct the code in Begin.vi to invert it.

If you're absolutely certain that your motors are wired properly, show us your Begin and Teleop code so we can make sure you haven't done something that would cause what you are seeing.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2015, 16:34
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,533
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: What's wrong with our roboRIO?

Taken a step further, different controllers use different axis in different places. For instance, an Xbox controller is quite different than a Logitech gamepad in which axis are assigned where.

I suspect that whichever controller you are using does not have the layout of joystick axis in the manner that the code expects.

As Alan said, you need to determine which axis is activated in code when you move the joysticks, then assign them correctly to your VI's in begin.
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:09.

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