|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
Um... "^" is xor in C.
|
|
#17
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
Someone slipped into excel mode in the middle of a line of C.
![]() |
|
#19
|
|||
|
|||
|
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. |
|
#20
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
There's a small error in the build 9/19/2013_1112a code.
At line 75, "A*4/10" should be "A*n/10". |
|
#21
|
|||
|
|||
|
Re: paper: Drivetrain Acceleration Model
My current JS port has some minor typos that I haven't had the chance to hunt down yet. I'm working with Emscripten to compile the C code to Javascript which should mean I can integrate your changes faster too.
|
|
#22
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
Quote:
I want to add battery voltage drop so mentors can use the model as a visual teaching tool to show students why low resistance in the motor wires and connections really does matter. |
|
#23
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
Quote:
9/24/2013 added updated C code (build 2013-09-24_2231) which includes motor voltage drops due to circuit resistance. 9/24/2013 added an explanation how the voltage drop model was derived. Last edited by Ether : 25-09-2013 at 17:56. |
|
#24
|
|||
|
|||
|
Re: paper: Drivetrain Acceleration Model
Ether - Very nice, thanks for developing this. Do you think it could be extended to include wheelbase parameters and predict motor current draw when turning (say differential steering)? We've had trouble in this area during drive system design.
|
|
#25
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
Quote:
|
|
#26
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
The executable works very well functionally-- I was able to run it with no problems and create some nice graphs based on it.
The only problem I've noticed is that I really have no idea what any of the variables are until I look back into the original program for comments. I don't think I've quite expressed my appreciation for this program enough-- it is really nice to have such a good model for generating a good estimate of how fast a given drive train setup will move. |
|
#27
|
|||
|
|||
|
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. |
|
#28
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
|
|
#29
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
Thank you so much for making this. You're my go-to resource for FRC physics and the community wouldn't be the same without you.
On line 84 voltage drop is calculated, but you don't ever seem to account for it when calculating the torque of the motors, is that correct? |
|
#30
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
Quote:
Quote:
Thanks for the words of encouragement. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|