|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: check code
wanted to both joysticks pressed for half speed. So does the second pic look okay.
|
|
#2
|
|||||
|
|||||
|
Re: check code
Yes, if you want each joystick and button #1 to control each side separately I believe the fixed code is correct.
|
|
#3
|
|||
|
|||
|
Re: check code
so i do not have to put in axis (y) in the true, only in the false. Also only one end is go9ng to the case structure of the constant. Does that look okay.
|
|
#4
|
|||||
|
|||||
|
Re: check code
Correct, when the button is pressed (true case) you want the motor to run at a constant speed so you do not need the joystick value.
The constant originates in the case so it only goes out, no need for anything to come in. |
|
#5
|
|||
|
|||
|
Re: check code
Thank you for the help, will test out tomorrow and reply on how it went.
|
|
#6
|
|||||
|
|||||
|
Re: check code
If you need additional assistance and would like something more real-time, you can use the AIM, MSN, or Yahoo Messenger info in my profile or contact me on Gtalk (My gmail address is the same as my username here).
I'm not sure if I'm heading out to our shop tomorrow or not, so I may or may not be available by the above methods tomorrow afternoon/evening. |
|
#7
|
|||
|
|||
|
Re: check code
I tried the revised code but it shows error on build process of a broken vi.
Can I get a second opinion? Also the Ethernet cable going from the classmate will not click into the Ethernet port of the classmate it just falls out. Anyone else having these problems |
|
#8
|
|||||
|
|||||
|
Re: check code
Quote:
You can click the broken grey arrow at the top of the block diagram and it will pull up a list of errors. Double clicking on an error in the list will highlight the offending VI. |
|
#9
|
||||
|
||||
|
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! |
|
#10
|
|||||
|
|||||
|
Re: check code
The picture shows one true case and one false case (presumably to show an example of each case to assure things are coded properly)
|
|
#11
|
||||
|
||||
|
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. Last edited by Ziaholic : 09-02-2010 at 00:09. Reason: confused the OP with the previous poster ... |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |