-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controls Tutorial for Motion Profiling #2589
base: main
Are you sure you want to change the base?
Conversation
Question for the group.
Two options for how to generate it without blowing up scope:
AI code ownership can be fraught in a corporate context, but I'm not sure how much that applies in open source. Thoughts on the risk before we move forward with 2 over 1? I'm fine with either. Note, as mentioned in the past, a nifty thing would be a webasm build of wpimath that we build these sims around. But that's still a longer lead-time item. |
Or #1831 |
In an attempt to not let this rot too much... If 1831 doesn't have line of sight to get solved prior to 2025 season, would going back on the initial two options be acceptable? |
…' into gerth2_elevator_motion_profiling
3a2becc
to
49d309c
Compare
49d309c
to
f1c2556
Compare
rewritten sans AI. |
const gravityAcceleration = -this.kGVolts / this.kAVoltSecondSquaredPerM; | ||
const EMFAcceleration = -this.kVVoltSecondPerM * velMPerS / this.kAVoltSecondSquaredPerM; | ||
const controlEffortAcceleration = inputVolts / this.kAVoltSecondSquaredPerM; | ||
const airResistanceAccel = -1.0 * Math.sign(velMPerS) * Math.pow(velMPerS, 2) * 0.2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the air resistance contribution appropriately scaled?
Using vertical elevator as the driving example for now
Entering draft PR for comments.
Will update as functionality is added