Go to Post Border Guard: "Anything to declare?" Team: "Oh, just these trophies!" - dtengineering [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 17-03-2010, 23:53
team_1026 team_1026 is offline
Registered User
FRC #1026
 
Join Date: Mar 2010
Location: York SC
Posts: 22
team_1026 is an unknown quantity at this point
Exclamation Motor Speed with joysticks

Hey all! I need some help. What I am trying to do is have telop.vi setup so that when the joysticks are all the way forward I only get 25% of the maximum power that the motors could have. And when I need full power I just press BOTH of the number 1 buttons on my joysticks and then go forward for full power! I have tried everything I could think of. I am using a two motor tank drive system. Thanks!!!


P.S Need help fast! friday is last programming day!!!!
Reply With Quote
  #2   Spotlight this post!  
Unread 18-03-2010, 00:12
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Motor Speed with joysticks

One way to do this would be to pass the joystick values through a case structure before they go to the Robot Drive VI you are using (Arcade, Tank, etc.)

Wire the two buttons you want to have pressed into an AND and the result of the AND into the Case Selector Terminal (the little green question mark). Now if both buttons are pressed you will be in the True case and if either or both aren't pressed you will be in the False case.

Now we need to put the correct operations in each case. In the True case you want full forward on the sticks to be full power, this means that the joystick values should pass straight through the case structure unmodified.

In the false case you want to scale the value down to 25% of the maximum. To accomplish this divide each of the joystick axis values by 4 in the false case before passing them out.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
Reply With Quote
  #3   Spotlight this post!  
Unread 18-03-2010, 01:32
team_1026 team_1026 is offline
Registered User
FRC #1026
 
Join Date: Mar 2010
Location: York SC
Posts: 22
team_1026 is an unknown quantity at this point
Smile Re: Motor Speed with joysticks

that did it! Thanks so much! Quick question. I bought a replacment camera for the robot but it's not an axis. do you know what all I would have to change to get it to work with this? also is there a way to make the solenoid retract the kicker(cylinder) after it kicks the ball. I don't want it to stay out past two seconds and if i could make it retract for me that would be great! Thanks SO MUCH!!!!!
Reply With Quote
  #4   Spotlight this post!  
Unread 18-03-2010, 09:05
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: Motor Speed with joysticks

I'm afraid the driver for "all cameras except the Axis 206" is probably not installed.

What I'm getting at is that there is not nearly enough information to help you out. Depending on what you purchased, it could work or partially work. Without even know the manufacturer, my statistical guess is no, it will not work.

Greg McKaskle
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
Joysticks with circular motion Tom Line Electrical 28 04-03-2009 20:07
Motor speed sensing with the Jaguar motor controller? mminutto FRC Control System 5 13-01-2009 18:13
problem with motor speed bsbllpss Electrical 3 29-01-2008 10:07
RoboEmu v1.02 (now with real joysticks!) rbayer Programming 2 02-10-2002 15:24
Calibrating speed controllers and joysticks thedillybar Technical Discussion 4 11-02-2002 13:24


All times are GMT -5. The time now is 04:45.

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