wpilibsuite / frc-docs

Official FRC Documentation powered by Read the Docs
https://docs.wpilib.org
Other
151 stars 264 forks source link

Add page on Dimensional Analysis #1729

Open mdurrani808 opened 2 years ago

mdurrani808 commented 2 years ago

Dimensional Analysis is a constant pain point for people in FRC as they begin to use more advanced features. This page should include:

in-my-ellement commented 2 years ago

I haven't decided if I'm going to write this yet but I figured I could maybe contribute an example that would work for an elevator or a drivetrain, since this is similar to something 342 is working on right now.

My idea was a velocity conversion from a non-standard rotational unit, as most often output by encoders, to a linear velocity in meters per second. I think this would be a good example because it includes:

1) A weird starting unit, as often provided by third-party APIs 1) A change in time units 1) A change from radial to linear motion

For example, the starting unit could be encoder ticks per 100 ms. I believe this is what is used by the Falcon 500 motors, but I'm not sure off the top of my head. Here's the math for that example.

dimensional analysis

(Pardon the ms paint math atrocities. I did my best.)

Also, which section would this go into? Maybe the sensors section with encoders?