|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Programming a super shifter/gearbox
Quote:
http://www.trossenrobotics.com/store...bby-servo.aspx |
|
#2
|
|||
|
|||
|
Re: Programming a super shifter/gearbox
Quote:
Servo supershifter = new servo (1); ? Then how would I set it to change between gears? |
|
#3
|
||||
|
||||
|
Re: Programming a super shifter/gearbox
Quote:
Code:
if (buttonIsPressed()) {
servo.set(1);
} else if (anotherButtonIsPressed()) {
servo.set(0);
}
|
|
#4
|
|||
|
|||
|
Re: Programming a super shifter/gearbox
I figured it was that so I had put it in and it told me it was wrong. then I realized i forgot to capitalize servo. -_- gotta love programming.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|