Go to Post Exercise, eat properly, work hard, live hard, play hard, laugh hard, inspire people, solve problems. And leave the world around you a little better place than you found it. - ebarker [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
  #11   Spotlight this post!  
Unread 11-27-2016, 05:11 PM
azaclauson azaclauson is offline
Registered User
FRC #5593
 
Join Date: Jul 2016
Location: Tasmania
Posts: 17
azaclauson is an unknown quantity at this point
Re: IterativeRobot, CommandRobot, or SampleRobot for brand new programmers?

Quote:
Originally Posted by trycatch View Post
it seems VERY overly complex, especially for brand new programmers, to require entirely separate classes for every single thing you want the robot to do, especially when every command class is a single function.
I've recently joined an FRC team as the programming mentor and went through a similar exercise.

The big appeal of command based approach for me is that it is its support for testing. By placing each robot function/feature into a command class then it's possible to wire up a Smart Dashboard button to each command and allow that single function/feature to be executed and tested separately.

I ended up having more problems trying to customise Smart Dashboard buttons than writing a command based robot example but that's a different story. In the end I got it sorted out and being able to test each command by pressing a button seems like a much better approach compared to large blocks of code in a loop.
Reply With Quote
 


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 09:22 AM.

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