|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
CAN ANYONE HELP ME PLEASE??
I wrote a this code for our arm release:
Quote:
Quote:
![]() |
|
#2
|
|||
|
|||
|
Re: CAN ANYONE HELP ME PLEASE??
Huge flaw in your code. Here's a hypothetical situation based on the first one shown:
Button is 6 is pressed. The motor is set to 1.0. However, almost immediately after that, button 7 is checked and most likely set to 0.0. Here's what I think you want: Code:
if (ThirdStick->GetRawButton(6)) {
ArmRelease->Set(1.0);
} else if (ThirdStick->GetRawButton(7)) {
ArmRelease->Set(-1.0);
} else {
ArmRelease->Set(0.0);
}
|
|
#3
|
||||
|
||||
|
Re: CAN ANYONE HELP ME PLEASE??
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I'm Starting a Team, Can you help me please? | Leav | FIRST Lego League | 2 | 14-09-2006 15:14 |
| can anyone please tell mw where or with what can i lear programing in C | techsage | Programming | 7 | 23-08-2005 00:25 |
| please help! anyone not using Filemaker | Quentinfool | Scouting | 0 | 04-02-2003 21:53 |
| Can Anyone Help????? | archiver | 1999 | 0 | 23-06-2002 22:58 |
| Can anyone help me??? | archiver | 2001 | 1 | 23-06-2002 22:17 |