OCCRA
Go to Post "Dear Santa, all I want for Christmas is a game hint." - Gregor [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-11-2018, 01:46 PM
Ty Tremblay's Avatar
Ty Tremblay Ty Tremblay is offline
Robotics Engineer
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Alton NH
Posts: 1,034
Ty Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond repute
FRC 319 - 2018 Code Release

Team 319 is proud to release our final code for 2018. As always, 319 has an open policy on everything and this code has been publicly available since kickoff, but we're excited to answer any questions you have.

This year we maintained two repositories. One for our 2018 robot code, and one for our path generator:
https://github.com/Team319/frc319-2018
https://github.com/Team319/BobTrajectory

frc319-2018 Features
Full Command Based Autos and Configuration - Nothing complicated here, we bought in fully to WPILib's Command Based architecture.
Path Following Using CTRE's Arc Mode - We adopted CTRE's newest feature in Arc Mode to follow paths and loved it.
Self-Collision Avoidance - The bot adjusts the limits of its axes based on its current pose.
Custom Controller Class - An extension of WPILib's Joystick that gives additional functionality.
TalonSRX Wrapper - These add functionality to the CTRE-provided classes and use method names that we found to be more intuitive.
MotionParameters class - Contains all the necessary parameters for motion magic control.

BobTrajectory Features
BobTrajectory uses 254's 2014 arc generation code, and then translates it to Java files with properties that can be fed to TalonSRX controllers in motion profile arc mode. It enabled us to get a fairly reliable 2.5 cube scale auto and a 3 cube switch auto this year, as well as several other teams.
__________________

Last edited by Ty Tremblay : 10-11-2018 at 02:39 PM.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-11-2018, 01:54 PM
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: 2,314
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: FRC 319 - 2018 Code Release

I frequently use your code base and totally don't just copy and paste stuff from it. The fact that there are packages in our code base with 319 in the name means nothing...
Reply With Quote
  #3   Spotlight this post!  
Unread 10-11-2018, 02:32 PM
marshall's Avatar
marshall marshall is offline
Online Stripe & Drape Sales
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 2,941
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: FRC 319 - 2018 Code Release

We can't outright use your code like some teams but I know we pulled some examples from it this past year so we could learn a few things. It's good code. Thanks for making it available!
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Clarke's Laws
Reply With Quote
  #4   Spotlight this post!  
Unread 10-11-2018, 04:32 PM
AllenGregoryIV's Avatar
AllenGregoryIV AllenGregoryIV is online now
Engineering Coach
AKA: Allen "JAG" Gregory
FRC #3847 (Spectrum)
Team Role: Coach
 
Join Date: Jul 2008
Rookie Year: 2003
Location: Texas
Posts: 3,039
AllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond repute
Send a message via AIM to AllenGregoryIV
Re: FRC 319 - 2018 Code Release

Matt, find/replace 319 with Spectrum is my normal go-to method when stealing many things from 319's code base. It works very well.

Thanks for sharing all your code Ty and the rest of 319, definitely one of the most helpful githubs out there
__________________

Team 647 | Cyber Wolf Corps | Alumni | 2003-2006 | Shoemaker HS
Team 2587 | DiscoBots | Mentor | 2008-2011 | Rice University / Houston Food Bank
Team 3847 | Spectrum | Coach | 2012-20... | St Agnes Academy
LRI | Alamo Regional | 2014-20...
"Competition has been shown to be useful up to a certain point and no further, but cooperation, which is the thing we must strive for today, begins where competition leaves off." - Franklin D. Roosevelt
Reply With Quote
  #5   Spotlight this post!  
Unread 10-11-2018, 07:17 PM
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: 2,314
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: FRC 319 - 2018 Code Release

Quote:
Originally Posted by AllenGregoryIV View Post
Matt, find/replace 319 with Spectrum is my normal go-to method when stealing many things from 319's code base. It works very well.

Thanks for sharing all your code Ty and the rest of 319, definitely one of the most helpful githubs out there
Don't forget to replace all those pesky Bob_____ classes too.
Reply With Quote
  #6   Spotlight this post!  
Unread 10-12-2018, 11:26 AM
vandle879's Avatar
vandle879 vandle879 is offline
Registered User
AKA: Alan DiCicco
FRC #0558
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2006
Location: Connecticut
Posts: 3
vandle879 is an unknown quantity at this point
Re: FRC 319 - 2018 Code Release

Thanks for sharing your code and keeping things public during the season. All your help was greatly appreciated by 558 this year.

It's great that you guys do some advanced stuff but also follow the command based structure. It helps teams like us that are still learning java and stick to the WPI architecture but also want to keep improving and developing more complex controls.

I wanted to ask about your autotune classes.
Were these actually used to tune this year or was this an experimental thing? Did you find the gains you got from these were fairly accurate or were you still making adjustments and using these as a general starting point?
Reply With Quote
  #7   Spotlight this post!  
Unread 10-12-2018, 12:21 PM
Ty Tremblay's Avatar
Ty Tremblay Ty Tremblay is offline
Robotics Engineer
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Alton NH
Posts: 1,034
Ty Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond repute
Re: FRC 319 - 2018 Code Release

Quote:
Originally Posted by vandle879 View Post
Thanks for sharing your code and keeping things public during the season. All your help was greatly appreciated by 558 this year.

It's great that you guys do some advanced stuff but also follow the command based structure. It helps teams like us that are still learning java and stick to the WPI architecture but also want to keep improving and developing more complex controls.

I wanted to ask about your autotune classes.
Were these actually used to tune this year or was this an experimental thing? Did you find the gains you got from these were fairly accurate or were you still making adjustments and using these as a general starting point?
Good catch! I forgot about the autotune classes. We didn't use them so much this year as we did last year. They're basically a programmatic way of following CTRE's velocity tuning walkthrough. We used them last year and they got us probably 90% of the way. I'd say it cut our tuning time by at least 70%.
__________________
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 10:31 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi