Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Team 254 Presents: 2015 FRC Code (http://www.chiefdelphi.com/forums/showthread.php?t=137843)

AustinSchuh 15-08-2015 10:35

Re: Team 254 Presents: 2015 FRC Code
 
Quote:

Originally Posted by x86_4819 (Post 1492946)
What led you to use sin functions like this to scale your steering? Was it just trial-and-error, or was there some method to it?

Also, in the same code file, could you explain what you do with "negative inertia" better?

The goal of the sin functions is to make the turning input less sensitive in the middle and more sensitive at the edges. I'm sure you could do it other ways, but that was the first one which popped into my head in 2011 when that code was written. When you are barreling down the field at full speed, you want to be able to make fine corrections, and also be able to throw it into a pretty hard spin.

Negative inertia is an idea which I stole from the Thinkpad trackpoint. https://en.wikipedia.org/wiki/Pointing_stick It adds extra turn power in to compensate for the inertia of the robot. The end result is that the robot feels more responsive.

x86_4819 23-08-2015 22:39

Re: Team 254 Presents: 2015 FRC Code
 
Just out of curiosity, how much of this code do you guys re-use each year?

Jared Russell 24-08-2015 10:49

Re: Team 254 Presents: 2015 FRC Code
 
Quote:

Originally Posted by x86_4819 (Post 1494170)
Just out of curiosity, how much of this code do you guys re-use each year?

The drive code and a lot of the utility code (e.g. math functions, PID controllers, drivers, etc.) get re-used, but the majority of the automation, autonomous mode, user interface, etc., is game specific and written from scratch.

JamesTerm 24-08-2015 12:05

Re: Team 254 Presents: 2015 FRC Code
 
Quote:

Originally Posted by x86_4819 (Post 1494170)
Just out of curiosity, how much of this code do you guys re-use each year?

They release code each year... so you should be able to determine a detailed answer... if there is still access to previous year's code. I have kept some old code probably 3 or 4 years ago if you can't find it.

That state machine code is something really amazing... I haven't looked at it lately to see if it is still there, but perhaps someday I may have another look at how it has evolved.

thatprogrammer 24-08-2015 17:05

Re: Team 254 Presents: 2015 FRC Code
 
Quote:

Originally Posted by x86_4819 (Post 1494170)
Just out of curiosity, how much of this code do you guys re-use each year?

You can view their GitHub at: https://github.com/Team254
Examine the code and you should be able to tell what gets carried over and what doesn't.


All times are GMT -5. The time now is 15:34.

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