Go to Post How about instead of using the flag we just all wrap out robots in color saran wrap. there! problem sovled! - John Gutmann [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 28-01-2012, 15:39
BMotl94 BMotl94 is offline
Registered User
FRC #3965
 
Join Date: Jan 2012
Location: Santee
Posts: 8
BMotl94 is an unknown quantity at this point
Left and Right Labview Issue

We are having difficulties getting the left and right values with our robot working properly. We are using default labview software distribution that comes on the provided flashdrive. We have already checked the wiring for polarity issues and found none. We swithed the motor drive wire that runs to both speed controlers on board to check if that would fix the issue and it instead switched backwards and forwards. One of the speed controllers when the robot is operated with the joystick lights up red. This occurence switced when we switch the wiring on the speed controllers. We have tried poking around the program to check for issues and found none. Any suggestions?
Edit: We ran the code from the netbook and monitored the joystick values. Left is negative, right is positive, and forward is negative and backwards is positive.

Last edited by BMotl94 : 28-01-2012 at 15:59.
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2012, 23:37
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: Left and Right Labview Issue

Quote:
Originally Posted by BMotl94 View Post
We are having difficulties getting the left and right values with our robot working properly.
What do you want it to do, and what does it do instead?

If you're using the unmodified default robot project, you should verify that your left motor is being controlled by a Jaguar connected to PWM1, and your right motor is being controlled by a Jaguar connected to PWM2. If the motors do not run in the direction you expect, you can either swap the wires on the output of the Jaguar, or you can change the "Inverted" constant in the code for the appropriate motor.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2012, 03:29
BMotl94 BMotl94 is offline
Registered User
FRC #3965
 
Join Date: Jan 2012
Location: Santee
Posts: 8
BMotl94 is an unknown quantity at this point
Re: Left and Right Labview Issue

We tried switching the wires attached to the jaguars and this made front go back but fixed left and right. We had discussed something along the lines of that inversion method you suggested. How would we go about doing this?
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2012, 17:18
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: Left and Right Labview Issue

If turning left and right works properly but front and back are reversed, I would guess that you have your PWM connections swapped. The basic 2012 robot project wants PWM1 to go to the Jaguar controlling the left motor, and PWM2 to go to the Jaguar controlling the right motor. That's the first thing you need to check, before you worry about which direction the motors are running.

Or you could just decide to call the other end of the robot "front" and be done with it.
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 11:37.

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