Go to Post Finally!!! I love hugs. - Eugenia Gabrielov [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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-2010, 15:49
jpietrowski's Avatar
jpietrowski jpietrowski is offline
OLSM ROBOTICS
AKA: J Pietrowski
FRC #3401 (OLSM Eaglets)
Team Role: Engineer
 
Join Date: Sep 2006
Rookie Year: 2010
Location: Orchard Lake, Michigan
Posts: 6
jpietrowski is an unknown quantity at this point
How do you get Tank Drive working?

Hello,

I have been trying to get the tank drive to work on my team's robot, but so far only the arcade drive on our robot is working. I have tried moving the toggle z to the + position with no effect on the drive. I have also tried downloading the tank drive example program, but still with no results. Do you have any suggestions that will help our team get tank drive on our robot?
__________________
Jameson Pietrowski
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2010, 23:35
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,731
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: How do you get Tank Drive working?

The default code doesn't switch between tank and arcade even though the manual says it does.

The tank drive example should work, but there several ways to download a test program and run it. Here's one way:
  • It's easiest to just exit the Driver account (Setup tap -> Exit)
  • Login to the Developer account
  • Bring up the tank drive example in LabVIEW
  • Open the vi and click "Run" or "Run Continuously"
  • Start the "FRC Driver Station" program found under Windows Start -> All Programs
  • Click "Enable" on the Driver Station
It should now be running. If it isn't let us know of any red status lights on the Driver Station Diagnostic tab.

This program will stop running when you stop LabVIEW, switch Classmate user accounts, or reboot the robot.

You can also change the default robot project to use tank drive by replacing and rewiring. If you want to try this and need directions let us know.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 29-01-2010 at 10:15. Reason: "switch Classmate user accounts"
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2010, 01:13
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,513
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: How do you get Tank Drive working?

If you continue to have issues, private message me. We'll be in our workshop all day Saturday, and we're about 40 minutes from you. You can come over and we'll walk you through how to set it all up.
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2010, 19:08
Kramer 2654 Kramer 2654 is offline
Registered User
FRC #2654
 
Join Date: Jan 2010
Location: Roseau
Posts: 2
Kramer 2654 is an unknown quantity at this point
Post Re: How do you get Tank Drive working?

Could you get me directions on how to change the default robot project to use tank drive by replacing and rewiring?
-2654
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2010, 00:04
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,731
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: How do you get Tank Drive working?

I'll assume you know the basics of LabVIEW programming - how to wire, how to get around the palettes.
You need to do two things:
  1. Add another joystick for tank drive
  2. Switch Arcade Drive to Tank Drive
First open/close the joystick:
  • In Begin.vi copy the creation of Joystick 1 and paste it.
  • Change the new joystick open to another USB port
  • Give the new joystick a descriptive new name. e.g., "joystick 2"
  • Wire the error output to the little Build Array box. It can be expanded to expose a new node for wiring.
  • In Finish.vi copy the code for joystick 1 and paste it.
  • Change the name to "joystick 2"
Next switch to Tank Drive:
  • In Teleop.vi, in the inner case statement box select the False case.
  • Remove the axis 1 (x) wire leading to the Arcade Drive
  • Right-click on Arcade Drive, select Replace -> RobotDrive Palette -> Tank Drive
  • Copy the Joystick Get and the unbundled axis box and paste it.
  • Wire the new axis 2 (y) to the Left Axis Value node on Tank Drive
  • Now the new joystick should be added to the Joystick Read vi if you wanted to maintain the style used here, but I'm going to fall back to a simple approach and just have you add it to the left side of the block diagram.
  • Add a Joystick RefNum Registry Get.vi (the one that looks like the # Drive icon) on the far left.
  • Add a constant to the "refnum name" input node and give it the name of your second joystick
  • Wire the output JoystickDevRef through the two case statements to the Joystick Get you added.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 30-01-2010 at 20:43.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tank Drive vs. Omni Directional Drive jamie_1930 General Forum 9 24-01-2010 22:50
Please Help, Don't Know How to Implement Tank Drive in LabView CVassos NI LabVIEW 5 24-12-2008 16:55
How to get robot to drive straigth using shaft encoders eccmaster Programming 5 02-02-2008 23:50
how do you get new members??? jackie Ha Team Organization 15 09-11-2006 22:15
How do you get ready for Regionals? Kyle Love Chit-Chat 11 13-03-2005 22:49


All times are GMT -5. The time now is 05:34.

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