Go to Post Dash Board: Hey Robot, here is some new data. Dash Board: Robot, did you get that data yet? Hello? Robot: Yep! Thanks! Yep! Thanks! Yep! Thanks! Yep! Thanks! Yep! Thanks! Yep! Thanks!... Other Robots: Will you please shut up? - EricVanWyk [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-02-2013, 20:22
tmccalister tmccalister is offline
Registered User
FRC #2985
 
Join Date: Jan 2011
Location: TEXAS YEEEHAWWWWW
Posts: 18
tmccalister is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2013, 21:34
capnslow capnslow is offline
Registered User
FRC #3131
 
Join Date: Feb 2013
Location: Portland OR
Posts: 31
capnslow is an unknown quantity at this point
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2013, 21:37
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
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.
__________________
All opinions are my own.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2013, 15:35
tmccalister tmccalister is offline
Registered User
FRC #2985
 
Join Date: Jan 2011
Location: TEXAS YEEEHAWWWWW
Posts: 18
tmccalister is an unknown quantity at this point
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2013, 15:38
tmccalister tmccalister is offline
Registered User
FRC #2985
 
Join Date: Jan 2011
Location: TEXAS YEEEHAWWWWW
Posts: 18
tmccalister is an unknown quantity at this point
Re: Programming a super shifter/gearbox

Quote:
Originally Posted by joelg236 View Post
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.
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 17-02-2013, 15:57
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: Programming a super shifter/gearbox

Quote:
Originally Posted by tmccalister View Post
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.
The simplest method of programming a shifting gearbox is to map one button on the joystick or game pad to control the shifting pneumatic cylinder, and hen do tank or arcade drive as desired.

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.
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
Reply With Quote
  #7   Spotlight this post!  
Unread 17-02-2013, 17:21
tmccalister tmccalister is offline
Registered User
FRC #2985
 
Join Date: Jan 2011
Location: TEXAS YEEEHAWWWWW
Posts: 18
tmccalister is an unknown quantity at this point
Re: Programming a super shifter/gearbox

Quote:
Originally Posted by artdutra04 View Post
The simplest method of programming a shifting gearbox is to map one button on the joystick or game pad to control the shifting pneumatic cylinder, and hen do tank or arcade drive as desired.

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.
That makes a lot of sense. But this isnt a pneumatic so theres no solenoid. its just a small piece that moves up down. and changes from a smaller gear to a higher gear. I understand the theory behind it I just don't know what the class is for the gear box. It plugs in where the jaguars go but I think I would encounter problems if I programmed it as a jaguar. (sorry im a little confused about this because the electronics team doesnt really know how to put this together.)
Reply With Quote
  #8   Spotlight this post!  
Unread 17-02-2013, 17:31
MagiChau's Avatar
MagiChau MagiChau is offline
Registered User
AKA: Michael Chau
FRC #0085 (B.O.B. (Built on Brains))
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Zeeland, Michigan
Posts: 875
MagiChau is just really niceMagiChau is just really niceMagiChau is just really niceMagiChau is just really nice
Re: Programming a super shifter/gearbox

Quote:
Originally Posted by tmccalister View Post
That makes a lot of sense. But this isnt a pneumatic so theres no solenoid. its just a small piece that moves up down. and changes from a smaller gear to a higher gear. I understand the theory behind it I just don't know what the class is for the gear box. It plugs in where the jaguars go but I think I would encounter problems if I programmed it as a jaguar. (sorry im a little confused about this because the electronics team doesnt really know how to put this together.)
You are describing a servo. So you would program this as a servo object presuming it is like or is a Hitec HS-322

http://www.trossenrobotics.com/store...bby-servo.aspx
Reply With Quote
  #9   Spotlight this post!  
Unread 17-02-2013, 18:59
tmccalister tmccalister is offline
Registered User
FRC #2985
 
Join Date: Jan 2011
Location: TEXAS YEEEHAWWWWW
Posts: 18
tmccalister is an unknown quantity at this point
Re: Programming a super shifter/gearbox

Quote:
Originally Posted by MagiChau View Post
You are describing a servo. So you would program this as a servo object presuming it is like or is a Hitec HS-322

http://www.trossenrobotics.com/store...bby-servo.aspx
Thank you so much sir. You are a gentleman and a scholar so...

Servo supershifter = new servo (1); ?
Then how would I set it to change between gears?
Reply With Quote
  #10   Spotlight this post!  
Unread 17-02-2013, 21:17
MagiChau's Avatar
MagiChau MagiChau is offline
Registered User
AKA: Michael Chau
FRC #0085 (B.O.B. (Built on Brains))
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Zeeland, Michigan
Posts: 875
MagiChau is just really niceMagiChau is just really niceMagiChau is just really niceMagiChau is just really nice
Re: Programming a super shifter/gearbox

Quote:
Originally Posted by tmccalister View Post
Thank you so much sir. You are a gentleman and a scholar so...

Servo supershifter = new servo (1); ?
Then how would I set it to change between gears?
I myself use the set() method so here's some java pseudo code for controlling it with joystick buttons. This assumes you want the servo to go through the full range of motion from 0 to 1. There is also a setAngle() method you could use.

Code:
if (buttonIsPressed()) {
    servo.set(1);
} else if (anotherButtonIsPressed()) {
    servo.set(0);
}
Reply With Quote
  #11   Spotlight this post!  
Unread 18-02-2013, 18:39
tmccalister tmccalister is offline
Registered User
FRC #2985
 
Join Date: Jan 2011
Location: TEXAS YEEEHAWWWWW
Posts: 18
tmccalister is an unknown quantity at this point
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.
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


All times are GMT -5. The time now is 11:49.

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