|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Programming a super shifter/gearbox
How? Programming four motors as the wheel is simple but how do you set the actual super shifter to change between high gear, low gear.
|
|
#2
|
|||
|
|||
|
Re: Programming a super shifter/gearbox
If I understand you question it's usually shifted by either a sever (special kit) or pneumatic cylinder (also a special kit). Most team prefer the pneumatic option because it's more rugged and lower shift time.
I'm no expert but no one else has replied. Anything said above could be false. |
|
#3
|
||||
|
||||
|
Re: Programming a super shifter/gearbox
Find out from your electronics/pneumatics people how the solenoids work, and look at the Solenoid class in wpilibj to get started on controlling them. If you need someone to review the code, I'd be happy to take a look.
|
|
#4
|
|||
|
|||
|
Re: Programming a super shifter/gearbox
Its just a gear box that has a port that goes into your digital sidecar. it allows it to switch your motors from a larger gear to a smaller gear, kind of like a bicycle.
|
|
#5
|
|||
|
|||
|
Re: Programming a super shifter/gearbox
I know how to program it I just need to know how to program this specific gearbox. I can post a picture if you need it.
|
|
#6
|
|||||
|
|||||
|
Re: Programming a super shifter/gearbox
Quote:
In this case, the CIM motors are programmed exactly the same as a regular single speed gearbox. Then program your desired trigger button on the joystick to control the solenoid. Drive without the button pressed, and it is in low gear. Press and hold the trigger button, it shifts to high gear. |
|
#7
|
|||
|
|||
|
Re: Programming a super shifter/gearbox
Quote:
|
|
#8
|
||||
|
||||
|
Re: Programming a super shifter/gearbox
Quote:
http://www.trossenrobotics.com/store...bby-servo.aspx |
|
#9
|
|||
|
|||
|
Re: Programming a super shifter/gearbox
Quote:
Servo supershifter = new servo (1); ? Then how would I set it to change between gears? |
|
#10
|
||||
|
||||
|
Re: Programming a super shifter/gearbox
Quote:
Code:
if (buttonIsPressed()) {
servo.set(1);
} else if (anotherButtonIsPressed()) {
servo.set(0);
}
|
|
#11
|
|||
|
|||
|
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 |
|
|