|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: paper: Drivetrain Acceleration Model
Quote:
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 |
|
#2
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
There's a CSdiff report in the posted ZIP file that contains the revised C code :-)
|
|
#3
|
|||
|
|||
|
Re: paper: Drivetrain Acceleration Model
Thanks, I'll get those integrated sometime in the near future.
|
|
#4
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
Quote:
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. |
|
#5
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
Quote:
|
|
#6
|
|||
|
|||
|
Re: paper: Drivetrain Acceleration Model
Quote:
http://bl.ocks.org/schreiaj/raw/6604...06fc207f7a970/ |
|
#7
|
||||
|
||||
|
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. |
|
#8
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
Quote:
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 |
|
#9
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
Um... "^" is xor in C.
|
|
#10
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
Someone slipped into excel mode in the middle of a line of C.
![]() |
|
#12
|
|||
|
|||
|
Re: paper: Drivetrain Acceleration Model
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. |
|
#13
|
|||
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|