Go to Post FIRST, for me, is about mental wrestling with oneself through the ideas of others and learning through this dialogue. - sammyjalex [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-03-2015, 15:59
bloom_kelsey's Avatar
bloom_kelsey bloom_kelsey is offline
Registered User
FRC #2874
 
Join Date: Jan 2013
Location: Grain Valley, MO
Posts: 3
bloom_kelsey is an unknown quantity at this point
Inverted Axis Problem

Hello,

We seem to be having some strange issues this year. Last week we had a working program for our practice robot. We then put on a separate program to test some autonomous code. When we were done were put the old working code back on to find that our drive system axes were inverted. Basically backwards was forwards and forwards was backwards on the xbox controller. We made no changes to the code before sticking it back on. Does anyone have an idea as to why this occurred?

The robot used the 2015 control system with 4 jaquars.

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 16-03-2015, 16:30
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: Inverted Axis Problem

If you didn't change any code, then it sounds like you might have changed the wiring (or Jaguar ID numbers, if you use CAN).

If nobody admits to having changing anything, then why it changed is likely to remain a mystery.
Reply With Quote
  #3   Spotlight this post!  
Unread 16-03-2015, 18:38
bloom_kelsey's Avatar
bloom_kelsey bloom_kelsey is offline
Registered User
FRC #2874
 
Join Date: Jan 2013
Location: Grain Valley, MO
Posts: 3
bloom_kelsey is an unknown quantity at this point
Re: Inverted Axis Problem

We looked into that and no wiring had been tampered with, looks like it will be a mystery!
Reply With Quote
  #4   Spotlight this post!  
Unread 28-03-2015, 11:15
Nunez4296's Avatar
Nunez4296 Nunez4296 is offline
Programmer
AKA: Joseph Nuņez
FRC #4296 (Trident Robotics)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Gurnee IL
Posts: 39
Nunez4296 is an unknown quantity at this point
Re: Inverted Axis Problem

if no one wants to admit wiring your jaquars wrong. You can easily fix your problem by going into the code and inverting the numerical value that comes out of your axis, then putting this corrected value back into the tank drive.
__________________
The Eagle - By Alfred, Lord Tennyson

He clasps the crag with crooked hands;
Close to the sun in lonely lands,
Ring'd with the azure world, he stands.

The wrinkled sea beneath him crawls;
He watches from his mountain walls,
And like a thunderbolt he falls.
Reply With Quote
  #5   Spotlight this post!  
Unread 28-03-2015, 17:37
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,558
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Inverted Axis Problem

If you have a tank drive system with PWM, and forwards and reverse have been swapped, but turning right is still turning right and turning left is still turning left, the left and right signals got swapped. This could have most easily happened:
  1. in code
  2. along the pwm lines
  3. between the speed controllers and the motors

As you have four motors, it would seem more likely that the change was in code or where the PWM lines connect to the RoboRIO, or at some connector halfway along the wire from the 'RIO to the jaguars, perhaps where you switched from a single cable to a wye cable.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
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:29.

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