-
Notifications
You must be signed in to change notification settings - Fork 4
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
Convert the Field Controller PID tuning into the webapp #9
Comments
@acamilo can you take this one? |
@gcl8a said: I realize it's recreating the filed controller, but a page on the web server, .../motors, could be useful for tuning the motors. I'm surprised how much difference they have, though, so no single defaults are going to work for everyone. I could see fields for K and then a button to make the wheel spin once or something like that. They don't need to tune to perfection, but at least get rid of the jitters. This would save a lot of uploading test codes -- easily the single biggest time saver of the field controller. |
This feature would have a lot in common with a web based o-scope we discussed as well. The scope is something we would like to have for 2001, but would also be a useful feature in the 1001's, perhaps provide the kids with 2 esps and have oen set up as the scope, and the other as the robot. |
So, you want a page "motors" where you can enter in parameters. in the firmware, have a function that gets called when someone submits a form on that page. Also, some way of sending setpoints and having a graph of motor positions. |
Yeah, we can work together on the motor interface. Inside the Motor class is a static list of all of the motors, as well as a static field telling you how many there are. Look at the field controller for litterally what we want. |
Ope this file https://github.com/WPIRoboticsEngineering/2001_Field_Controller/blob/2001_Field/src/main/resources/fxml/MainScreen.fxml in SceneBuilder to see the wysiwyg of the UI |
I don’t know what all goes into it, but I’d move for something “lightweight” here. In the end, for 1001 we’ll have two motors to control. So you could just have for each motor 3 fields (Kp, Ki, Kd) and a “commit” button that just calls Motor::setGains(). (You could probably get away with one set of gains — in fact that might be a better start.)
it’s trivial to do with the Serial Monitor, so if it’s a lot of work on the server side, we could just use a cable.
… On Aug 12, 2020, at 5:41 PM, Kevin Harrington ***@***.***> wrote:
Ope this file https://github.com/WPIRoboticsEngineering/2001_Field_Controller/blob/2001_Field/src/main/resources/fxml/MainScreen.fxml <https://github.com/WPIRoboticsEngineering/2001_Field_Controller/blob/2001_Field/src/main/resources/fxml/MainScreen.fxml> in SceneBuilder to see the wysiwyg of the UI
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#9 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AF5JK5BCELGYFLJVDGQUBLTSAMECNANCNFSM4NPZWTUA>.
|
Graph: With a 10 second sampling window Set: |
So |
Also, i was looking at brads web server code, iu think that the webapp could replace the java application. Thoughts?
The text was updated successfully, but these errors were encountered: