Skip to content

Velocity-formula-and-hood-comp - #20

Merged
kevinfrei merged 5 commits into
mainfrom
Velocity-formula-and-hood-comp
Oct 9, 2026
Merged

kevinfrei merged 5 commits into
mainfrom
Velocity-formula-and-hood-comp

Conversation

@explosivegamer25

Copy link
Copy Markdown
Contributor

Summary

implemented auto velocity auto hood angle and hood velocity compensation i used some physics to get decently close values although i expect the velocity formula to be decently off

Validation

hasnt been reviewed yet

has not been tested on the robot will prob test it tuesday

If not tested on a bot, please indicate such. It's not always required.

nope

@kevinfrei kevinfrei left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of changes requested. Please go through the comments on github and respond to the questions if there are some. Only resolve comments with no response if you made the changes requested. Once you've made the changes, commit & push them to the same branch, and github will update the PR.

One silly naming idea: Instead of something saying "getTurretAngle" maybe switch to 'getTurrentRadians' to avoid unit confusion? "Pos" -> Servo position data, "Loc/Pose" -> and X/Y (+heading) location, "Radians"/"Degrees" -> a direction with obvious units. "Power" -> Motor "duty cycle". (I'm not asking you to make these changes now, but I'm curious about your thoughts on that)

@Override
public void runLoop() {}
public void runLoop() {
robot.follower.update();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needing to put this here feels like there's a bug in the PedroFollower joystick command or the Pedro drivebase as that's where the update() probably should occur (in the command's execute function, or in the drivebase's periodic function)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

honestly it might be but this comment to me sounds more like a note for future kevin then for colin lol

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol. yeah, you're right. We'll get this figured out with the whole prog team.

TechnototesLaptop and others added 5 commits October 9, 2026 13:57
…e of the turret stuff will review when i get home i just needed to get some stuff so we could test pid values and velocity
…ood comp angle and velocity constants will most likely need to be tuned the velocity regression is prob gonna be the most far off the other idk
@kevinfrei
kevinfrei force-pushed the Velocity-formula-and-hood-comp branch from 43dcac7 to d8d62f7 Compare October 9, 2026 21:07
@kevinfrei

Copy link
Copy Markdown
Member

Rebasing is such a delight...

@kevinfrei
kevinfrei merged commit be97625 into main Oct 9, 2026
1 check passed
@kevinfrei
kevinfrei deleted the Velocity-formula-and-hood-comp branch October 10, 2026 05:19
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.

4 participants