Go to Post I GET that FIRST is about more than winning on the field. BUT... ...it is my experience that the great programs of the FIRST world almost always build on a foundation of competitive robots. Success on the field begets success in other realms. - Joe Johnson [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 22:00.

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