Go to Post Edison was once asked "how do you come up so many good ideas?" to which he responded "for every good idea, I have 99 bad ideas first." - dlavery [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > Extra Discussion
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 19-09-2013, 13:09
Andrew Schreiber Andrew Schreiber is offline
Data Nerd
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,055
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: paper: Drivetrain Acceleration Model

Quote:
Originally Posted by Ether View Post

I posted an update/correction to the C code:

- fixed an error in the English-to-SI conversion constants

- modified the accel function to better reflect the relationship between friction and rolling resistance

- added total drive motor amps to output


Dangit man, I just finished converting to coffeescript and started putting a front end on it! Mind posting your diffs?

http://bl.ocks.org/schreiaj/raw/6604...a78a8c98eda1b/ It's still missing the axis so it's kinda useless to get numbers out of but I'll post the updated version tonight once I get the axis un-inverted.

Current coffeescript port available at https://gist.github.com/schreiaj/660...a78a8c98eda1b/
__________________




.

Last edited by Andrew Schreiber : 19-09-2013 at 13:28. Reason: Updated Code to not break in Chrome
Reply With Quote
  #2   Spotlight this post!  
Unread 19-09-2013, 13:14
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,995
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: paper: Drivetrain Acceleration Model

Quote:
Originally Posted by Andrew Schreiber View Post
Mind posting your diffs?
There's a CSdiff report in the posted ZIP file that contains the revised C code :-)


Reply With Quote
  #3   Spotlight this post!  
Unread 19-09-2013, 13:29
Andrew Schreiber Andrew Schreiber is offline
Data Nerd
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,055
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: paper: Drivetrain Acceleration Model

Quote:
Originally Posted by Ether View Post
There's a CSdiff report in the posted ZIP file that contains the revised C code :-)


Thanks, I'll get those integrated sometime in the near future.
__________________




.
Reply With Quote
  #4   Spotlight this post!  
Unread 19-09-2013, 13:46
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,995
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: paper: Drivetrain Acceleration Model

Quote:
Originally Posted by Andrew Schreiber View Post
Thanks, I'll get those integrated sometime in the near future.
I've got visitors coming over in 15 minutes.

Later this evening I'll strip out all the non-functional changes and give you a report of the minimum changes needed.

It's not a lot, once I get rid of the non-functional changes.


Reply With Quote
  #5   Spotlight this post!  
Unread 19-09-2013, 16:37
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,995
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: paper: Drivetrain Acceleration Model

Quote:
Originally Posted by Andrew Schreiber View Post
http://bl.ocks.org/schreiaj/raw/6604...a78a8c98eda1b/... I'll post the updated version tonight...
Thanks for doing this. I'm hoping your user-friendly interface will generate more interest and technical discussion, and maybe even inspire teams to conduct tests and make their data available.


Reply With Quote
  #6   Spotlight this post!  
Unread 19-09-2013, 17:04
Andrew Schreiber Andrew Schreiber is offline
Data Nerd
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,055
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: paper: Drivetrain Acceleration Model

Quote:
Originally Posted by Ether View Post
Thanks for doing this. I'm hoping your user-friendly interface will generate more interest and technical discussion, and maybe even inspire teams to conduct tests and make their data available.


Here's the updated version (haven't put your code changes in yet) but I did make it a little easier to read.

http://bl.ocks.org/schreiaj/raw/6604...06fc207f7a970/
__________________




.
Reply With Quote
  #7   Spotlight this post!  
Unread 21-09-2013, 08:51
IKE's Avatar
IKE IKE is offline
Not so Custom User Title
AKA: Isaac Rife
no team (N/A)
Team Role: Mechanical
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Michigan
Posts: 2,145
IKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond repute
Re: paper: Drivetrain Acceleration Model

Thanks for putting this together.

I put together this "Drag Estimator" for my HS supermileage team years ago. It is based off of the Empirical rolling resistance and wind resistance test given in the Bosch automotive handbook.

http://www.epulaski.k12.in.us/tech/s...ign/design.htm

For rolling resistance, this gives a constant coefficient and a v^2 coefficient.
Reply With Quote
  #8   Spotlight this post!  
Unread 21-09-2013, 13:53
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,995
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: paper: Drivetrain Acceleration Model

Quote:
Originally Posted by IKE View Post
For rolling resistance, this gives a constant coefficient and a v^2 coefficient.
I'm glad you brought this up.

I structured the code to make it very simple to change the rolling resistance model if you want to. It takes only 2 keystrokes to change the rolling resistance model from
L = Kro+Krv*V; (line #68 in the 9/19/2013_1112a code)
to
L = Kro+Krv*V*V;
In fact, you could make the rolling resistance any function of V, or even use a look-up table if you have experimental data.

However, I think the V*V term only comes into play due to air resistance at speeds much higher than FRC robot speeds. It would be enlightening to see some actual data of rolling resistance vs speed for a typical FRC robot (with drivetrain mechanically disengaged from wheels) on FRC carpet surface.





Last edited by Ether : 21-09-2013 at 19:59. Reason: typo. thanks guys
Reply With Quote
  #9   Spotlight this post!  
Unread 21-09-2013, 15:57
SoftwareBug2.0's Avatar
SoftwareBug2.0 SoftwareBug2.0 is offline
Registered User
AKA: Eric
FRC #1425 (Error Code Xero)
Team Role: Mentor
 
Join Date: Aug 2004
Rookie Year: 2004
Location: Tigard, Oregon
Posts: 485
SoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant future
Re: paper: Drivetrain Acceleration Model

Quote:
Originally Posted by Ether View Post
I structured the code to make it very simple to change the rolling resistance model if you want to. It takes only 2 keystrokes (^2) to change the rolling resistance model from
L = Kro+Krv*V; (line #68 in the 9/19/2013_1112a code)
to
L = Kro+Krv*V^2;
Um... "^" is xor in C.
Reply With Quote
  #10   Spotlight this post!  
Unread 21-09-2013, 17:41
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,509
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: paper: Drivetrain Acceleration Model

Quote:
Originally Posted by SoftwareBug2.0 View Post
Um... "^" is xor in C.
Someone slipped into excel mode in the middle of a line of C.
Reply With Quote
  #11   Spotlight this post!  
Unread 21-09-2013, 21:04
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,995
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: paper: Drivetrain Acceleration Model

Quote:
Originally Posted by Tom Line View Post
Someone slipped into excel mode in the middle of a line of C.
Actually...
Octave, Maxima, SciLab, AWK, and RLaB :-)



Last edited by Ether : 21-09-2013 at 21:07.
Reply With Quote
  #12   Spotlight this post!  
Unread 21-09-2013, 23:38
Andrew Schreiber Andrew Schreiber is offline
Data Nerd
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,055
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: paper: Drivetrain Acceleration Model

Quote:
Originally Posted by Ether View Post
Actually...
Octave, Maxima, SciLab, AWK, and RLaB :-)


Which is still less weird than the weird case of coffeescript that I found while porting this by accident...

Turns out "variable *" compiles to "variable * variable" as opposed to throwing a compile error.
__________________




.
Reply With Quote
  #13   Spotlight this post!  
Unread 02-01-2014, 15:44
brennonbrimhall brennonbrimhall is offline
Free Agent
AKA: Brennon Brimhall
no team
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Clifton Park, NY
Posts: 222
brennonbrimhall is a name known to allbrennonbrimhall is a name known to allbrennonbrimhall is a name known to allbrennonbrimhall is a name known to allbrennonbrimhall is a name known to allbrennonbrimhall is a name known to all
Re: paper: Drivetrain Acceleration Model

Based on the discussion on this thread (see posts #24 and #28), I've ported Ether's/Andrew Schreiber's C code to Java, and made a GUI front-end with charting. It's not the most pretty thing ever coded, but it may help to make the calculator more accessible by non-programmers. You can find the source code here, with .jar file releases here.

I'd appreciate any feedback you might have.
__________________
Team 20, 2012-2014: 4 blue banners, 5 medals, and 9 team awards.
Church of Jesus Christ of Latter-day Saints, 2014-2016: Missionary, Colorado Denver South Mission.
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 17:17.

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