This repository has been archived by the owner on Dec 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 107
Incorrect setting in SmartMotion example. #5
Comments
tekdemo
changed the title
Incorrect setting in example
Incorrect setting in SmartMotion example.
Mar 11, 2019
Thanks for the feedback. The intent for that particular example is to allow you to switch between a velocity PID controller and the Smart Motion mode based on a control on the smart dashboard. This allows you to tune the velocity PID which is the underlying controller for the Smart Motion. So one tuning method would be:
|
That makes sense. I think a note in the code, or ability to select the
SmartVelocity would help clarify this. It confused the heck out of our
team, and took me a while to catch on our bench. We pulled this example to
test SmartVelocity on a non-positional system, and didn't think about that
application.
Would you accept a PR to use a Smart dashboard Chooser to switch between
the 3 modes? That would help with clarity, while still working with your
intended use case. Should take just a few minutes to cook up, but no idea
about your test frameworks.
…On Sun, Mar 10, 2019, 19:27 William Toth ***@***.***> wrote:
Thanks for the feedback. The intent for that particular example is to
allow you to switch between a velocity PID controller and the Smart Motion
mode based on a control on the smart dashboard. This allows you to tune the
velocity PID which is the underlying controller for the Smart Motion.
So one tuning method would be:
1. Set the 'mode' control to *true* set velocity PID as the control
mode
2. Tune the mechanism using the velocity PID controller
3. Configure the min output, max velocity, and max acceleration
4. Switch to Smart Motion and control the position
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAgJbbZTWQ9570n6uBV7f4KIlA1u_nZPks5vVb8igaJpZM4bnrMo>
.
|
You can go ahead and change this PR to switch between the 3 modes, that would be helpful! |
jfabellera
pushed a commit
to jfabellera/SPARK-MAX-Examples
that referenced
this issue
Nov 15, 2024
* Update the project to use WPILib 2025 and REVLib 2025 beta * Update the Read Encoder Values example code to use REVLib 2025 classes and methods * Update to REVLib beta 2 * Update comments and spacing * Correct configure method comment and code mistake
jfabellera
pushed a commit
to jfabellera/SPARK-MAX-Examples
that referenced
this issue
Nov 15, 2024
Port Bus Measurements
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The SmartMotion example incorrectly uses the
kVelocity
control option, instead ofkSmartVelocity
. This makes the example pretty confusing as selecting Velocity causes the PID control to disable smart motion entirely.SPARK-MAX-Examples/Java/Smart Motion Example/src/main/java/frc/robot/Robot.java
Line 171 in b56d301
The text was updated successfully, but these errors were encountered: