Go to Post If you are adult enough to be a participant in this program, then you are adult enough to act like an adult. - Beth Sweet [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 04-02-2017, 18:57
MuskieProgramme MuskieProgramme is online now
Registered User
FRC #6420
Team Role: Programmer
 
Join Date: Dec 2016
Rookie Year: 2014
Location: Muscatine, IA
Posts: 36
MuskieProgramme is an unknown quantity at this point
Rookie Command Based Feedback

Hello, I am part of a Rookie team (though I have previous Java experience), and would like feedback on my code.

https://github.com/FRC-6420/SteamWorks

Specifically, anything I'm doing that would deviate from the Command Based structure. I also do not have experience using/tuning PID.

I apologize for any code that is just plain messy, I have a tendency to comment something instead of removing it, so I can easily go back - and then leaving it in.
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2017, 21:43
Coach Seb's Avatar
Coach Seb Coach Seb is offline
Registered User
AKA: Sebastien Cournoyer
FRC #5860 (Full Metal Muskrats)
Team Role: Coach
 
Join Date: Sep 2015
Rookie Year: 2015
Location: Algonac, MI
Posts: 122
Coach Seb is an unknown quantity at this point
Re: Rookie Command Based Feedback

I need to do the same.... how did you figure the upload to github?
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2017, 22:33
MuskieProgramme MuskieProgramme is online now
Registered User
FRC #6420
Team Role: Programmer
 
Join Date: Dec 2016
Rookie Year: 2014
Location: Muscatine, IA
Posts: 36
MuskieProgramme is an unknown quantity at this point
Re: Rookie Command Based Feedback

Quote:
Originally Posted by Coach Seb View Post
I need to do the same.... how did you figure the upload to github?
Short version: I've used github before...

Long version: created an organization, made a blank repository. Opened up github desktop and made a repository in the directory of my code. Edited the remote to point to the blank repository (the URL ending in .git). Installed a Git client for Eclipse from the marketplace (actually multiple, dunno which one I started with). Somehow I got that setup so I now have a "Git Staging" window in eclipse where I can select files to commit and push, I really don't remember how.
Reply With Quote
  #4   Spotlight this post!  
Unread 05-02-2017, 04:49
YairZiv's Avatar
YairZiv YairZiv is offline
Registered User
FRC #5951 (Makers Assemble)
Team Role: Programmer
 
Join Date: Oct 2016
Rookie Year: 2016
Location: Tel Aviv, Israel
Posts: 41
YairZiv is an unknown quantity at this point
Re: Rookie Command Based Feedback

Quote:
Originally Posted by Coach Seb View Post
I need to do the same.... how did you figure the upload to github?
Send me pm if you need help with github
Reply With Quote
  #5   Spotlight this post!  
Unread 05-02-2017, 08:18
Joe Derrick's Avatar
Joe Derrick Joe Derrick is offline
Mentor - Programming
FRC #0319
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Prospect Mountain High School
Posts: 50
Joe Derrick is a glorious beacon of lightJoe Derrick is a glorious beacon of lightJoe Derrick is a glorious beacon of lightJoe Derrick is a glorious beacon of lightJoe Derrick is a glorious beacon of lightJoe Derrick is a glorious beacon of light
Re: Rookie Command Based Feedback

Greetings, saw your post about command based programming. While I can't comment on vision, the drivetrain aspect looks good.

As far as PID control there are many options for you to take to achieve your objective. What do you want your robot to do autonomously? Drive to a distance? drive straight to a distance?

there are lots of options.
Here are some examples of PID drive control we used for our autonomous is 2015.

recycle rush example PID command

if you look we are actually more concerned with driving straight than exactly how far. there are a few other PID drive commands in their for you to look at.

here is a video of the total auto


Also, during the past season the team has moved to using talon srx's for all of our PID control. It is much easier once you have the setup done. I would recommend it but they are a bit expensive.

Also bear in mind this is just one way to solve a problem, there are probably better and other ways out there,

Good luck!
__________________
2010-2017 Mentor Team 319
2012 - Rockwell Automation Award Winner
2014 - Xerox Creativity in Engineering Winner, Archimedes Division
2015 - Rockwell Automation and Gracious Proffesionalism Winner, Tesla Division
2016 - North Shore and UNH District Event Winner, Carson Division
http://www.frc319.com
Reply With Quote
  #6   Spotlight this post!  
Unread 05-02-2017, 14:32
MuskieProgramme MuskieProgramme is online now
Registered User
FRC #6420
Team Role: Programmer
 
Join Date: Dec 2016
Rookie Year: 2014
Location: Muscatine, IA
Posts: 36
MuskieProgramme is an unknown quantity at this point
Re: Rookie Command Based Feedback

I was planning to incorporate "drive straight" into the DriveBase class - automatically activated whenever turnValue is 0. That way, it is also active in TeleOp.
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 09:44.

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