View Single Post
  #16   Spotlight this post!  
Unread 25-01-2015, 01:24
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,634
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: Random questions from first year programmer

Quote:
Originally Posted by Commando386 View Post
To talk about how the motors are backwards I agree how setup might be backwards as it has happened to me but also make sure that the electrical wiring is not backwards. I can't really explain it well as I am Software Lead and not Electrical Lead. If not you could always insert a negative block (It's under Numerical and it has a -x on it) and attacth it to you inputs and it will flip your Y-axis controls (forwards and backwards) and that should fix it software wise. Also a note that in autonomous coding forward is negative and backwards is positive values. I have always run into this situation in the old labview and the new one.
If you do have the motors swapped, it can be fixed in at least three ways as I believe the post above was trying to explain:
  1. Software (swap left and right port numbers or variables in the code)
  2. Controls (swap one end of the PWM cables, either the controller or the RIO)
  3. motors - swap the wiring from motor to controller at one end
  4. Actually, you could physically swap the motors along with the wires, but that would be more work than necessary
Reply With Quote