Skip to content
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

Open
madhephaestus opened this issue Jun 1, 2020 · 9 comments
Open

Convert the Field Controller PID tuning into the webapp #9

madhephaestus opened this issue Jun 1, 2020 · 9 comments
Assignees
Labels
question Further information is requested

Comments

@madhephaestus
Copy link
Contributor

Also, i was looking at brads web server code, iu think that the webapp could replace the java application. Thoughts?

@madhephaestus madhephaestus added the question Further information is requested label Jun 1, 2020
@madhephaestus
Copy link
Contributor Author

madhephaestus commented Jun 1, 2020

@acamilo can you take this one?

@madhephaestus
Copy link
Contributor Author

@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.

@madhephaestus
Copy link
Contributor Author

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.

@acamilo
Copy link
Contributor

acamilo commented Aug 12, 2020

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.

@madhephaestus
Copy link
Contributor Author

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.

@madhephaestus
Copy link
Contributor Author

@gcl8a
Copy link
Member

gcl8a commented Aug 12, 2020 via email

@madhephaestus
Copy link
Contributor Author

Graph:
Setpoint
Position
Speed

With a 10 second sampling window

Set:
Setpoint
Gains (for all motors)

@acamilo
Copy link
Contributor

acamilo commented Aug 13, 2020

So
SetSetpoint
setGains

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants