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

Bug/we hate quadrant 3 #194

Merged
merged 7 commits into from
Nov 29, 2024
Merged

Bug/we hate quadrant 3 #194

merged 7 commits into from
Nov 29, 2024

Conversation

ssejrog
Copy link
Member

@ssejrog ssejrog commented Nov 29, 2024

Summary:

Using current x + current y as a "current sensor value" for xyPID made it look like the robot wasn't moving sometimes when that would equal close to 0. This is fixed now by translating the current robots position around origin so it's on the y axis, and using how much the robot is moving to create a new current sensor value.

Another option for solving this was to make the current sensor value negative error, but this would cause derivative kick. The solution described above shouldn't give derivative kick.

Motivation:

Some motions couldn't settle because D was being handled incorrectly.

References (optional):

#191

Test Plan:

Run the motions in #191 and ensure they all perform as expected

  • test item

Download the template for this pull request:

Note

This is auto generated from Add Template to Pull Request

curl -o [email protected]+a06459.zip https://nightly.link/EZ-Robotics/EZ-Template/actions/artifacts/2252398441.zip;
pros c fetch [email protected]+a06459.zip;
pros c apply [email protected]+a06459;
rm [email protected]+a06459.zip;

@ssejrog ssejrog self-assigned this Nov 29, 2024
@ssejrog ssejrog merged commit 8e1dc2f into dev Nov 29, 2024
2 checks passed
@ssejrog ssejrog deleted the bug/we-hate-quadrant-3 branch December 18, 2024 00:20
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

Successfully merging this pull request may close these issues.

1 participant