This repository was archived by the owner on Feb 1, 2025. It is now read-only.
Open
Conversation
…e reading of network tables. Majority of code is a state machine to handle full auto-aim then shoot with single button press.
tuning RPM based on distance
(did someone forget to commit fixes to the AutoAim branch at some point? There are a lot of stupid little things here)
and fix things (use the getNumber() method to get numbers from the network talbes) Also added the check for a valid target
(Probably isn't working though)
planning to integrate any rpm changes into autoAim.py
findConfig now has an argument for the name of the config. The only time this is currently used is to find the robot config but I'm planning to use it to store values for RPM calculations so I added the argument so I could use the method to find the yml.
Maybe I could use it? for now i'm making a new function
ended up copying, pasting and changing. Could cut out some stuff only needed when different versions are available.
figured it was necessary if we're changing rpms. THIS IS STILL TEST CODE, IT CANNOT CALCULATE DISTANCE.
This should be ready to test on the robot First we need to get values for the yml and run a regression. Then we test.
should be functional with a controller
Instead of equation, find point behind and in front of current distance and approximate
calculates a line between two values and what the RPM should be for that point on the line
…d stops while autoalign isn't running
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm starting this now - It will be a while until this branch is ready because of everything happening. The RPM/Distance values will likely need updating if/when a new robot is built and it still needs testing on the hopper to verify it in the end, but the minibot was able to use the limelight's angle of elevation to guess at its own position with enough accuracy for me.