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

Chassis Alignment #62

Open
pknessness opened this issue Jun 22, 2024 · 0 comments
Open

Chassis Alignment #62

pknessness opened this issue Jun 22, 2024 · 0 comments
Labels
enhancement New feature or request Optimization Something can be better recruit Good for recruits

Comments

@pknessness
Copy link
Contributor

pknessness commented Jun 22, 2024

Write simple code that aligns the chassis to the head when pressing a button, so that when we want to jump the ramp, we can align the chassis in the correct orientation and then simply move forwards.

The goal is to passively (and without much power limiting, align the wheels to the direction where

/..........\
.....o==
\........../

where the == is the turret, and the /'s are wheels

The goal is to eventually have an alignment angle that we can modify, because at low speeds, a different alignment of wheels is good, and then we can have that alignment angle change based on the chassis velocity.

For note, at low velocities, the following alignment is optimal, so being able to align the chassis for optimal direction of acceleration and then movement is beneficial.
.....---
|.....o==|
.....---

At low chassis velocities, when we need acceleration, we can have the offset closer to the bottom image, and when our velocities are higher and we want a higher top speed, we can have an offset closer to the top image.

The preferred way to implement this would be in the chassis class, with a variable, in which a rotation is applied to the robot in the setChassisSpeeds function, to bring the alignment to its correct value. There should be an extra variable with something like "springiness" which changes how hard the system attempts to correct to the given alignment.

@pknessness pknessness added enhancement New feature or request Optimization Something can be better recruit Good for recruits labels Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Optimization Something can be better recruit Good for recruits
Projects
None yet
Development

No branches or pull requests

1 participant