Go to Post Why is it considered shameful to do the smart thing? As the saying goes, "I don't make the rules, I just live by them." - Chris Hibner [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 18-05-2016, 11:02
JeffB JeffB is offline
Registered User
FRC #5052 (RoboLobos)
Team Role: Mentor
 
Join Date: Apr 2015
Rookie Year: 2014
Location: Austin
Posts: 48
JeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to behold
Re: Opinions on Command & Control robot framework

My team used it this year after going through the tutorial you linked over a couple of nights.

For my personal opinion, I like that it's not as serialized as the past architecture was. As an example, "drive forward for 3 seconds/feet" You can program the two different systems by having a loop check for time expired or distance traveled. This creates two options:
1) Hold up the rest of your teleop code while we wait for this condition to finish
2) Add mechanisms in place to track the initial point, current point, and check in each iteration if the condition has been met.

The first means you can't do anything else until this finishes. I prefer have a robot respond immediately rather than waiting to finish a task in case something comes up.

The second requires a bit more work than I'd expect teams to want to figure out. It's a bit of shift registers/feedback nodes to maintain values and turns the traditional architecture into a mess to read.

With command and control, you can escape that mess as option 2 is built into the system in a much cleaner way. To me, it's a lot like the MVC method you'll find in programming. Each system has its own controller and you send messages between then to get tasks done. For students getting into computer science or wanting to understand how OOP works, this sets them up for better success academically while also making a more versatile robot.

I had a pair of strong programmers so they were able to pick up the architecture over ~6 hours of working through the tutorial and coding. This time can change based on the team you have. But, the skill is something they'll use frequently once they get into OOP. While this may not be object oriented, per say, it behaves in a similar manner. The hardest part of working with OOP is figuring out how to think about something in the OOP context. Why not give your team an edge in that thought process?
__________________
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 20:52.

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