Go to Post Dang! And here I was getting all excited about finding out about the game!!! - dlavery [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #46   Spotlight this post!  
Unread 15-08-2015, 10:35
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 803
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Team 254 Presents: 2015 FRC Code

Quote:
Originally Posted by x86_4819 View Post
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.
  #47   Spotlight this post!  
Unread 23-08-2015, 22:39
x86_4819's Avatar
x86_4819 x86_4819 is offline
computer-whisperer
AKA: Christian Balcom
FRC #4819 (Flat Mountain Mechanics)
Team Role: Programmer
 
Join Date: Sep 2014
Rookie Year: 2013
Location: Shepherd MI
Posts: 92
x86_4819 is on a distinguished road
Re: Team 254 Presents: 2015 FRC Code

Just out of curiosity, how much of this code do you guys re-use each year?
__________________




My Github Repositories
  #48   Spotlight this post!  
Unread 24-08-2015, 10:49
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,082
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: Team 254 Presents: 2015 FRC Code

Quote:
Originally Posted by x86_4819 View Post
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.
  #49   Spotlight this post!  
Unread 24-08-2015, 12:05
JamesTerm's Avatar
JamesTerm JamesTerm is offline
Terminator
AKA: James Killian
FRC #3481 (Bronc Botz)
Team Role: Engineer
 
Join Date: May 2011
Rookie Year: 2010
Location: San Antonio, Texas
Posts: 298
JamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to behold
Re: Team 254 Presents: 2015 FRC Code

Quote:
Originally Posted by x86_4819 View Post
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.
  #50   Spotlight this post!  
Unread 24-08-2015, 17:05
thatprogrammer's Avatar
thatprogrammer thatprogrammer is offline
Registered User
AKA: Ahad Bawany
no team (None)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2014
Location: Florida
Posts: 610
thatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond repute
Re: Team 254 Presents: 2015 FRC Code

Quote:
Originally Posted by x86_4819 View Post
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.
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 19:21.

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