View Single Post
  #1   Spotlight this post!  
Unread 27-01-2012, 18:13
Nekel_Seyew's Avatar
Nekel_Seyew Nekel_Seyew is offline
Registered User
FRC #2374 (Crusaderbots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Portland
Posts: 2
Nekel_Seyew is an unknown quantity at this point
Specificity in Command Classes

Hello,

A big problem I'm having with the command based robot structure is the exact use of extending the command class. If I want to say "turn turret right", I'd have to use a TurnTurretRight class which extends the command class. But what if I just want to turn the turret a little bit, say pi/6 radians. How can I specify that in my command class, and allow for other variable lengths, or must I make a different class for each amount I wish to turn my turret?

Any and all opinions on this would be helpful!

-Nekel_Seyew