Go to Post I like anything that is designed to bounce for up to 10 minutes. Expecially if it lands right side up :) - GregT [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-08-2014, 13:43
E Dawg E Dawg is offline
... is not done with FRC yet.
AKA: Ethan
FRC #0159 (Alpine Robotics)
Team Role: Mentor
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Fort Collins, CO
Posts: 267
E Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud of
What base class do you use when programming?

What base class do you use when programming and why?
  #2   Spotlight this post!  
Unread 12-08-2014, 14:50
madhav's Avatar
madhav madhav is offline
Registered User
AKA: Madhav Gharmalkar
FRC #4276 (Viking Robotics)
Team Role: Communications
 
Join Date: Apr 2014
Rookie Year: 2012
Location: Huntington Beach, CA
Posts: 37
madhav will become famous soon enough
Re: What base class do you use when programming?

Simple robot for life
  #3   Spotlight this post!  
Unread 12-08-2014, 14:54
JohnFogarty's Avatar
JohnFogarty JohnFogarty is offline
FTC, I have returned.
AKA: @doctorfogarty
FTC #11444 (Garnet Squadron) & FRC#1102 (M'Aiken Magic)
Team Role: Mentor
 
Join Date: Aug 2009
Rookie Year: 2006
Location: SC
Posts: 1,564
JohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond repute
Re: What base class do you use when programming?

Iterative Robot based for life. Actually I'm moving to command based this year.
__________________
John Fogarty
2010 FTC World Championship Winner & 2013-2014 FRC Orlando Regional Winner
Mentor FRC Team 1102 M'Aiken Magic
"Head Bot Coach" FTC Team 11444 Garnet Squadron
Former Student & Mentor FLL 1102, FTC 1102 & FTC 3864, FRC 1772, FRC 5632
2013 FTC World Championship Guest Speaker
  #4   Spotlight this post!  
Unread 12-08-2014, 15:19
Oblarg Oblarg is offline
Registered User
AKA: Eli Barnett
FRC #0449 (The Blair Robot Project)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Philadelphia, PA
Posts: 1,050
Oblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond repute
Re: What base class do you use when programming?

Last year we used iterative robot, because finite state machines are very easy to write and we didn't want to deal with concurrency.

We may look at multithreading this year.
__________________
"Mmmmm, chain grease and aluminum shavings..."
"The breakfast of champions!"

Member, FRC Team 449: 2007-2010
Drive Mechanics Lead, FRC Team 449: 2009-2010
Alumnus/Technical Mentor, FRC Team 449: 2010-Present
Lead Technical Mentor, FRC Team 4464: 2012-2015
Technical Mentor, FRC Team 5830: 2015-2016
  #5   Spotlight this post!  
Unread 12-08-2014, 15:36
madhav's Avatar
madhav madhav is offline
Registered User
AKA: Madhav Gharmalkar
FRC #4276 (Viking Robotics)
Team Role: Communications
 
Join Date: Apr 2014
Rookie Year: 2012
Location: Huntington Beach, CA
Posts: 37
madhav will become famous soon enough
Re: What base class do you use when programming?

Quote:
Originally Posted by Oblarg View Post
We may look at multithreading this year.
We might try multithreading as well. But we want to shy away from CommandBased and try to write our own.
  #6   Spotlight this post!  
Unread 12-08-2014, 18:01
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: What base class do you use when programming?

java.lang.Object
  #7   Spotlight this post!  
Unread 12-08-2014, 18:11
Poseidon5817's Avatar
Poseidon5817 Poseidon5817 is offline
Founder and CEO, DeadMemes Studios
AKA: Mitchel Stokes
FRC #5817 (Uni-Rex)
Team Role: Mentor
 
Join Date: Aug 2013
Rookie Year: 2014
Location: Clovis, CA
Posts: 371
Poseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud of
Re: What base class do you use when programming?

Simple Robot, considering moving to Iterative Robot.
__________________
My FRC History:

2014 - Team 1671: Central Valley Regional Finalist and Chairman's Award Winner, Sacramento Regional Finalist, Archimedes Quarterfinalist
2015 - Team 1671: Central Valley Regional Semifinalist, Sacramento Regional Semifinalist and Chairman's Award Winner, Newton Winner, Einstein Winner
2016 - Team 5817: Central Valley Regional Finalist and Rookie All-Star, Orange County Regional Quarterfinalist and Rookie All-Star, Newton Division
2017 - Team 5817: Return of the bench grinder


  #8   Spotlight this post!  
Unread 12-08-2014, 22:20
madhav's Avatar
madhav madhav is offline
Registered User
AKA: Madhav Gharmalkar
FRC #4276 (Viking Robotics)
Team Role: Communications
 
Join Date: Apr 2014
Rookie Year: 2012
Location: Huntington Beach, CA
Posts: 37
madhav will become famous soon enough
Re: What base class do you use when programming?

Quote:
Originally Posted by Jared Russell View Post
java.lang.Object
I second this
  #9   Spotlight this post!  
Unread 12-08-2014, 22:47
Kingland093 Kingland093 is offline
Registered User
FRC #4215 (Trinity Tritons)
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Minnesota
Posts: 107
Kingland093 will become famous soon enough
Re: What base class do you use when programming?

We use simple because it's well… simple.
One of our programmers briefly experimented with iterative
__________________
McGill University Mechanical Engineering Class of 2020
FRC 4215: Trinity Tritons 2013-2016 (Programmer, Strategy, Driver)


2015 MRI Winner (with 3130, 2052, and 2531)
2015 MN State Championship Winner (with 2512 & 3130)
2015 Double DECC'er Winner (with 3130 & 525)
2015 Northern Lights Winner (with 3130 & 525)
  #10   Spotlight this post!  
Unread 12-08-2014, 22:50
Bryce Paputa's Avatar
Bryce Paputa Bryce Paputa is offline
FF TSL: Frog Farce
FRC #0503 (Frog Force)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Novi Michigan
Posts: 454
Bryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond repute
Re: What base class do you use when programming?

I'm not going to say that they're wrong, but anyone not using command based should seriously consider it. It does make some simple things more complicated, but greatly helps readability and maintainability, and it makes chaining actions together and responding to inputs very easy.
  #11   Spotlight this post!  
Unread 13-08-2014, 01:13
nathanwalters nathanwalters is offline
Registered User
FRC #0111 (WildStang)
Team Role: Alumni
 
Join Date: Dec 2011
Rookie Year: 2011
Location: United States
Posts: 75
nathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud of
Re: What base class do you use when programming?

IterativeRobot. What it lacks in simplicity it makes up for in flexibility.
  #12   Spotlight this post!  
Unread 13-08-2014, 07:52
wmarshall11 wmarshall11 is offline
Registered User
FRC #2399
Team Role: Mentor
 
Join Date: May 2013
Rookie Year: 2011
Location: Cleveland, OH
Posts: 34
wmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to behold
Re: What base class do you use when programming?

Quote:
Originally Posted by Bryce Paputa View Post
I'm not going to say that they're wrong, but anyone not using command based should seriously consider it. It does make some simple things more complicated, but greatly helps readability and maintainability, and it makes chaining actions together and responding to inputs very easy.
Having spent serious time and energy trying to make complex actions work safely with SimpleRobot, switching to CommandBased was probably the best programming decision 11 ever made. Not having logic sprinkled through all levels of your code is the best thing ever.
  #13   Spotlight this post!  
Unread 13-08-2014, 08:15
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,715
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: What base class do you use when programming?

Quote:
Originally Posted by wmarshall11 View Post
Having spent serious time and energy trying to make complex actions work safely with SimpleRobot, switching to CommandBased was probably the best programming decision 11 ever made. Not having logic sprinkled through all levels of your code is the best thing ever.
We switched to Java 2 seasons ago and went straight for the Command Based structure, and we have been all aboard ever since. As a professional Java developer and ex-CS teacher I feel it teaches excellent practices and is pretty simple to pick up as a beginner.
  #14   Spotlight this post!  
Unread 13-08-2014, 10:52
EricS-Team180's Avatar
EricS-Team180 EricS-Team180 is offline
SPAM, the lunchmeat of superheroes!
AKA: Eric Schreffler
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Stuart, Florida
Posts: 561
EricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond repute
Re: What base class do you use when programming?

In 2013 and 2014, we used Brad Miller's Robot Builder to create a Command based structure in C++. I agree with the comments of Bryce Paputa, wmarshall11, and notmattlythgoe on the Command based approach.
Plus, I like Brad's "pictures-to-code". It introduces the students to the practice used extensively in my field of aero gas turbine controls - and elsewhere.
We'll use it, again, in 2015.

Prior to that we used the Iterative Robot framework, for the same reasons nathanwalters posted.

Eric
__________________

Don't PANIC!
S. P. A. M.

Last edited by EricS-Team180 : 13-08-2014 at 10:55.
  #15   Spotlight this post!  
Unread 14-08-2014, 14:30
Cel Skeggs Cel Skeggs is offline
Robot Software Manager Alumnus
AKA: Previously known as Colby
FRC #1540 (The Flaming Chickens)
Team Role: Alumni
 
Join Date: Feb 2013
Rookie Year: 2009
Location: Portland, Oregon, USA
Posts: 107
Cel Skeggs is a glorious beacon of lightCel Skeggs is a glorious beacon of lightCel Skeggs is a glorious beacon of lightCel Skeggs is a glorious beacon of lightCel Skeggs is a glorious beacon of lightCel Skeggs is a glorious beacon of light
Re: What base class do you use when programming?

We implement IgneousApplication.
More specifically, we use our team's event-based robot framework (the CCRE), which we think is nicer than the command-based framework because it gives us lots of useful tools without forcing a specific structure in the way that command-based does.
Also, event-based control seems to be a better option to program robots than cycle-based control or thread-based control, as far as I can tell. (Though we occasionally still use those in the places where they are helpful.)
__________________
Software manager alumnus. Developer of the CCRE, a powerful robot code framework based on dataflow and composibility.
Refer to as she/her/hers. Years of FRC: 2012, 2013, 2014, 2015, 2016. FLL for a few years beforehand.
Team 1540: The Flaming Chickens | Portland, Oregon | Twitter | Facebook
Closed Thread


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 16:54.

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