Go to Post Does IR work underwater? Or more importantly, through an air-water interface? ... sigh ... - Rich Kressly [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 06-02-2012, 12:15
fhobart's Avatar
fhobart fhobart is offline
Team leader
FRC #2197 (Las Pumas)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2007
Location: New Carlisle, IN
Posts: 35
fhobart is an unknown quantity at this point
Weird LV behavior

Disclaimer: I know just barely enough to be slightly dangerous. After our inexperienced programming crew spun their wheels, I stepped in (for whatever that's worth.) Imaged cRio and directly tethered to it for testing. Using four CIMs and standard joystick. For test purposes, used single joystick arcade drive with the standard LV template. When testing, full forward produced all four wheels turning forward WITH a significant lag. Same with full back. Turning left produced what I expected out of full forward and the same with turning right (but in a reverse direction.) I get no turning action at all. Not sure what is going on.
I did my research and deleted the vision code, but that made no difference.

Again, programming is not my long suit, but I am left scratching my head. Oh, we are updated software-wise as far as I know.

Last edited by fhobart : 06-02-2012 at 12:22.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2012, 12:26
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,658
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Weird LV behavior

Can you post a screen shot of your Begin.vi and Teleop.vi? I suspect your problem is in one of these two.

Probably, you haven't initialized your drive correctly in some fashion. You need to invert motors you haven't or some such. Things to make sure of and try:
1. Your signal wiring is correct. The PWM for the Left Front Motor is connected to the Jag for the left front motor, and so on.
2. Your power wiring is correct. You really, really just want to connect the red wire of each motor to its corresponding M+ terminal. Black wire to the M- terminal. Do this for ALL your motors, fix direction problems in software.
3. After 1 and 2, check motors individually. Unplug the PWMs so that you're only running one motor per side. Wiggle joystick and check responses. Now replug/unplug PWMs to run the other two motors, still one motor per side. Wiggle joystick. If you've done 1 and 2, then you should see which motors aren't responding like you expect, and those motors likely need to be inverted in your Begin.vi code.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2012, 12:36
fhobart's Avatar
fhobart fhobart is offline
Team leader
FRC #2197 (Las Pumas)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2007
Location: New Carlisle, IN
Posts: 35
fhobart is an unknown quantity at this point
Re: Weird LV behavior

Thanks for the quick reply. I have taken those steps both in hardware and software. The green/red signals on the Jaguars indicate that they are doing what they are supposed to--in the turning mode. Full forward/back produces the aforementioned lag. I have attached the image you suggested.Click image for larger version

Name:	LV1.jpg
Views:	18
Size:	42.1 KB
ID:	11752
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2012, 12:41
fhobart's Avatar
fhobart fhobart is offline
Team leader
FRC #2197 (Las Pumas)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2007
Location: New Carlisle, IN
Posts: 35
fhobart is an unknown quantity at this point
Re: Weird LV behavior

Sorry, forgot to post the teleop screencap. Other than making the change and adding two motors, this is standard LV stuff.Click image for larger version

Name:	LV2.jpg
Views:	15
Size:	49.0 KB
ID:	11753
Reply With Quote
  #5   Spotlight this post!  
Unread 06-02-2012, 12:58
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Weird LV behavior

The other useful piece of data is what is displayed on the diagnostics screen on the driver station.
Reply With Quote
  #6   Spotlight this post!  
Unread 06-02-2012, 13:02
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: Weird LV behavior

What you describe could be caused by wiring two of your motors either backwards or on the wrong side of the robot. If the motors are fighting each other, nothing will move until one of them trips a breaker and the other wins.

Pull all the circuit breakers for the drive motors. Put one in at a time and verify that the motor drives in the direction you expect when you try forward/reverse/left/right commands. Remove that motor's breaker before trying the next one. If a motor consistently turns in the wrong direction, you can either swap its wires on the Jaguar output or toggle the appropriate "Inverted" terminal for that motor on the Open 4 Motor Drive block. If a motor drives properly for left/right but not forward/reverse, it's on the wrong side of the robot and you'll have to find out which PWM cables to swap.

[edit]Based on your Begin code, I think you have PWMs 1 and 4 switched. You obviously duplicated the constants that were already there for the 2 Motor Drive, and that has confused you. The proper order of the PWM definitions is (top to bottom) Rear Left, Rear Right, Front Left, Front Right. Try deleting the PWM and Invert constants, then recreate them individually by right-clicking on the Open function's terminals and choosing Create->Constant from the popup menu. Then right-click on the constant itself and choose Visible Items->Label. They'll get the proper labels attached to them that way.[/edit]

Last edited by Alan Anderson : 06-02-2012 at 13:09. Reason: reviewed Begin code
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:31.

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