Go to Post I always felt people get too caught up in the robot and don't see what really makes the teams function so well is the organization itself. - Koko Ed [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 08-02-2010, 21:57
zip100 zip100 is offline
Registered User
FRC #0640
 
Join Date: Feb 2010
Location: New York
Posts: 31
zip100 is an unknown quantity at this point
coding help

How can I do the exact opposite of the code I wrote. Instead of pressing button 1 for half speed I want it to press button 1 for a turbo boost and regular would be .5
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2010, 10:22
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: coding help

The Boolean palette contains a negate icon, and you can place that in front of the case. Another, possible easier to read way of doing this is to right click on the case and at the bottom Make this case ... will allow you to choose which code goes with which button logic.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2010, 12:26
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: coding help

Quote:
Originally Posted by zip100 View Post
Instead of pressing button 1 for half speed I want it to press button 1 for a turbo boost and regular would be .5
I think we might have misunderstood what you were asking in an earlier thread. When you say you want the motor to run half speed, do you want it to run at half of its maximum speed, or do you mean you want it to run at half of whatever speed the driver is commanding via the joystick?

If your goal is to make the joystick half as sensitive, you don't want to wire a constant 0.5 into the drive vi. You want to multiply the joystick axis value by 0.5 instead. Use your joystick button to send the value straight through without the multiply in the "turbo boost" case.
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
Website coding help needed Tottanka Programming 5 05-01-2007 07:22
coding problem!! HELP! wildabyss Programming 7 21-02-2005 21:48
PHP Coding HELP!!! FRANK(WGH) Website Design/Showcase 9 26-01-2005 17:18
Help On Coding 2K1 Controller GregTheGreat Programming 9 05-12-2003 18:35
coding, motors, spikes, help archiver 2001 3 24-06-2002 00:48


All times are GMT -5. The time now is 08:53.

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