Go to Post I have a feeling this is going to be a really good year.:) - Richard Wallace [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 23:26.

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