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

Create test mode that moves motors and checks encoders for any system with motors and encoders #93

Open
sjcbulldog opened this issue Oct 21, 2019 · 3 comments

Comments

@sjcbulldog
Copy link
Contributor

No description provided.

@1425
Copy link

1425 commented Oct 21, 2019

If you don't already have it, you might want to also check that the current use makes sense as well.

This is of course reported from the PDB for all the motors but may be available from the motor controller as well depending on what type it is.

@sjcbulldog
Copy link
Contributor Author

I assume the 1425 account is Eric? We have looked at current for motors a little in the past. We can add a zero current detect and will make that part of the self test as we do them. What we will do is add the capability to the framework first, and then implement the actual tests based on time and schedule. I would like to attack drivebase first because I can count at least 10 matches across the whole season where we lost auto modes because drivebase encoders were not working.

I would like to do something more with motors like be able to detect if we are operating them outside of the range expected. This means getting a normal operating range for the motor. I have not had luck getting this from mechanical and electrical in the past. Maybe we just put characterization code in that we use while developing and then empirically set these limits. Anyway, step one is straight forward and we are shooting to have this in bunny bots.

@1425
Copy link

1425 commented Oct 22, 2019

Yes, this is Eric. In the past, currents thresholds have been set empirically. Expected values are pretty dependent on what you're telling them to do - I'm not sure how complex a formula you'd hope for. It would basically be a combination of voltage applied + what things it's touching + momentum.

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

No branches or pull requests

2 participants