Go to Post Never allow your students to get away with an answer that amounts to "because it's better". Have them prove it to the best of their ability, and when they're wrong, ask them to figure out why they're wrong. - Tom Line [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 28-01-2016, 15:58
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 251
BitTwiddler is on a distinguished road
Anybody using "Command & Control" this year?

I see LabView has an example of using a Command & Control infrastructure similar to what the Java & C++ folks often use. It looks interesting but I'm hesitant to take the time to learn it and pass it on to the programmers on the team. It seems to have a bit of a steep learning curve.

Is anybody planning to implement it for this game?
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2016, 10:34
JeffB JeffB is offline
Registered User
FRC #5052 (RoboLobos)
Team Role: Mentor
 
Join Date: Apr 2015
Rookie Year: 2014
Location: Austin
Posts: 58
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: Anybody using "Command & Control" this year?

My team has started to implement it. It looks more daunting than it really is. If you want to bring it to your team, I'd suggest taking some time to go over the documentation provided by both NI and a beta team to get a general understanding of the architecture. My team started reading it together and asked me questions as they got stuck on points. They were picking it up pretty quickly.

One thing I've pointed out to them is how much it is like OOP. They've been learning Java in school and are more familiar with how objects interact with each other than they were anything else. If we point out objects calling methods in other classes are only sending messages/commands, it becomes easier to see how the commands being sent relate to code they've seen in the past.

Depending on how comfortable you are with your programmers, it might be best to get the robot code in a good condition using what they're used to and then challenging them to branch out into command and control. My group worked on the familiar architecture up until they wanted to work on autonomous. When they started seeing similar actions taking place in a variety of possible autonomous cases, they liked the idea of sending a command to complete the task instead of copy/pasting or creating their own subVIs to duplicate their efforts. At that point, they started digging into Command and Control.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2016, 20:31
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Anybody using "Command & Control" this year?

One of the goals of the framework was to make it compatible with the previous way of doing things. This means that you can choose just one subsystem and implement it using command and control and see what you think.

Something with a control loop or a state machine would make a good candidate.

You add the subsystem using the wizard and it gives initial code for the controller and some basic commands to drop off new set points. This is really pretty similar to using a periodic task except that the commands can more easily cancel an operation and start a new thing. It also keeps the implementation details within the controller, so changes to a pot, encoder, motor, or wheel are way less likely to impact other code. It gives you a trace to know what mechanisms were doing what at any point in time. It gives you an easy way to synchronize with the completion for autonomous steps.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 22-02-2016, 13:21
GZ3452MMD GZ3452MMD is offline
Registered User
FRC #3452
 
Join Date: Feb 2016
Location: Berrien Springs
Posts: 1
GZ3452MMD is an unknown quantity at this point
Re: Anybody using "Command & Control" this year?

My team has all new programmers this year, all freshmen from our highschool. I'm the lead programmer and I started out learning Labview with the standard control method, and for simple driving and other tasks, it worked out well. With Stronghold, I find it well worth the time to learn command and control because I was able to make a working shooter within maybe 10 minutes with it. My advice: if you don't know it now, don't try it until next year. Try learning it not during the build season, try learning it next year on a test bot.
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:25.

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