Go to Post The worst that happens is we try our best and lose. And there's no shame in that. - pfreivald [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-02-2013, 04:52
Uppy Uppy is offline
Registered User
FRC #4741
 
Join Date: Feb 2013
Location: United States
Posts: 5
Uppy is an unknown quantity at this point
Robot locking up using tank drive.

This is our rookie year and i am just learning how to use labview. Whenever i put the robot into teleop mode, it twitches right away and then doesn't communicate with the joysticks. Here are some attachments of our begin, teleop, finish, and the driver station error message. Thank you!
Attached Thumbnails
Click image for larger version

Name:	begin.PNG
Views:	37
Size:	32.0 KB
ID:	14031  Click image for larger version

Name:	teleop.PNG
Views:	37
Size:	19.3 KB
ID:	14032  Click image for larger version

Name:	finish.PNG
Views:	28
Size:	20.4 KB
ID:	14033  Click image for larger version

Name:	error.PNG
Views:	25
Size:	9.7 KB
ID:	14034  
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2013, 08:11
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Robot locking up using tank drive.

That code looks simple and I don't see an issue. Have you probed the wires from the joysticks going to the RobotDrive? They should also be showing up on the dashboard.

The message about the code not running fast enough could be caused by something not showing maxing out the CPU. Does the charts tab show the CPU usage as being super-high?

If the values going to RobotDrive seem correct, I'd start looking at the electrical. One common issue is that the digital breakout board will not be powered and the motors will sometimes work. You can also put the robot into test mode, enable it, go to the dashboard and click on the test tab, find a motor, select its output value, move the slider and press the motor enable button. This can help to isolate code and electrical issues.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2013, 13:53
ShadowBot's Avatar
ShadowBot ShadowBot is offline
Registered User
FRC #3577
 
Join Date: Jan 2013
Location: Scottsdale, AZ
Posts: 9
ShadowBot is an unknown quantity at this point
Re: Robot locking up using tank drive.

Same thing happened to us sadly. Turned out to be that the sidecar was only recieving 5v instead of 12v. I suggest you should check that.
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2013, 17:36
Uppy Uppy is offline
Registered User
FRC #4741
 
Join Date: Feb 2013
Location: United States
Posts: 5
Uppy is an unknown quantity at this point
Re: Robot locking up using tank drive.

Alright so we have found what is causing the robot to lock up. We are using 2 victor motor controllers to control the drive motors. However, in beginVI if we open the drive motors as victors the robot locks up. But if we open them as jaguars, it doesn't lock up. However, when we open up the controllers as jaguars and press button 1 on the joystick. It makes one of the drive motors go forward and one goes backwards while moving the relay in reverse. If we press button 2 on the joystick, it makes the drive motors act the same way except it moves the relay forward Any help would be appreciated.

Last edited by Uppy : 18-02-2013 at 17:43.
Reply With Quote
  #5   Spotlight this post!  
Unread 18-02-2013, 17:41
Uppy Uppy is offline
Registered User
FRC #4741
 
Join Date: Feb 2013
Location: United States
Posts: 5
Uppy is an unknown quantity at this point
Re: Robot locking up using tank drive.

Here are our updated images.
Attached Thumbnails
Click image for larger version

Name:	begin updated.PNG
Views:	14
Size:	15.0 KB
ID:	14103  Click image for larger version

Name:	teleop updated.PNG
Views:	13
Size:	16.4 KB
ID:	14104  
Reply With Quote
  #6   Spotlight this post!  
Unread 18-02-2013, 21:47
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: Robot locking up using tank drive.

Did you check to make sure your Digital Sidecar was receiving 12 volt battery power?
Reply With Quote
  #7   Spotlight this post!  
Unread 18-02-2013, 23:46
Uppy Uppy is offline
Registered User
FRC #4741
 
Join Date: Feb 2013
Location: United States
Posts: 5
Uppy is an unknown quantity at this point
Re: Robot locking up using tank drive.

No i have not yet, i will be able to check tomorrow afternoon. Thanks for all the help so far guys, i really appreciate it.

Could the digital sidecar not receiving 12v cause the problem of the robot locking up when we choose victor drive motors in labview (which are the controllers we are actually using).

And are there any noticable errors in my coding that would make the buttons move the drive motors and the relay?
Reply With Quote
  #8   Spotlight this post!  
Unread 19-02-2013, 08: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: Robot locking up using tank drive.

There are subtle technical reasons for Victor and Jaguar PWM signals to give different results if there's no 12 volt power received by the Digital Sidecar. I could give a plausible explanation for the symptoms you report, but I'd rather spend my time fixing things instead.
Reply With Quote
  #9   Spotlight this post!  
Unread 19-02-2013, 10:54
Uppy Uppy is offline
Registered User
FRC #4741
 
Join Date: Feb 2013
Location: United States
Posts: 5
Uppy is an unknown quantity at this point
Re: Robot locking up using tank drive.

Alright, everything is working properly. I would like to thank everyone for their help! It turns out the digital sidecar wasn't connected properly.
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:56.

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