Go to Post "Recycle Rush? What's that, some sort of charity marathon?" - Chak [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
  #16   Spotlight this post!  
Unread 08-02-2010, 23:35
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: check code

You need to feed the Tank Drive with the default joystick inputs, unless overridden by the trigger. Your figure looks only half-fixed.

My attached pic doesn't directly apply to you, but if you look closely you can see where we used button 1 (trigger) to modify the throttle input. When the case is FALSE, we pass the normal value thru, but when the case is TRUE (i.e. the trigger is pulled), we override with a constant.

For us, the constant is 1.0 ... but if you want half power, then put a 0.5 in there and you've got it. (and we're doing our override to Axis3(Throttle), you'd want to do your case statement over the Y-Axis wires between the Joystick GET and the TankDrive VI.

G/L!
Attached Thumbnails
Click image for larger version

Name:	JoystickVIstuff.jpg
Views:	11
Size:	136.7 KB
ID:	8575  
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics
Reply With Quote
  #17   Spotlight this post!  
Unread 08-02-2010, 23:40
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: check code

Quote:
Originally Posted by Ziaholic View Post
You need to feed the Tank Drive with the default joystick inputs, unless overridden by the trigger. Your figure looks only half-fixed.
The picture shows one true case and one false case (presumably to show an example of each case to assure things are coded properly)
__________________


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
  #18   Spotlight this post!  
Unread 08-02-2010, 23:54
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: check code

KK ... sorry ... after re-looking at the pic in post #3, I can see what they're showing now ... My example does the uncluster outside of the case ... but essentially they're the same ... assuming that the other cases look like the ones that they're showing.

Hmmm.

Could it be that instead of writing "0.5" as the motor inputs when the trigger is pulled, they'd rather take the actual "Y" value, and cut it in half? If that's the case, then they should move the uncluster to the outside of the case statement, run both cases straight through, then modify the TRUE case with a MULTIPLY block with a 0.5 constant.
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics

Last edited by Ziaholic : 09-02-2010 at 00:09. Reason: confused the OP with the previous poster ...
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
Code Declaration Window - Check Team in Code DtD C/C++ 3 20-01-2009 07:09
May I get a steering wheel and pedal code check? windell747 Programming 1 11-02-2008 08:43
Site Check Sunny Thaper Chit-Chat 8 01-05-2002 19:03
Please CHECK IN !!!! RebAl General Forum 0 22-04-2002 17:21


All times are GMT -5. The time now is 03:48.

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