Skip to content

Tank drive#20

Open
Tortuga-AM wants to merge 12 commits intomainfrom
Tank-Drive
Open

Tank drive#20
Tortuga-AM wants to merge 12 commits intomainfrom
Tank-Drive

Conversation

@Tortuga-AM
Copy link
Contributor

Tank drive should work in theory.
Main thing that needs review is tank drive, mostly stollen from mechanical advantage so somethings are a bit strange.
Also a bunch of cleanup stuff so giant ahh pr.

Things to do future:

  • Merge + correct linear interpolation
  • Manager is just very wrong 😭
  • Autonomous stuff?
  • Vision might be a bit cooked idk + object detection?

Tortuga-AM and others added 4 commits November 4, 2025 10:41
- Drive implemented
- Akit removed
- YAGSL removed
- Logging fixed
- Vision fixed
- MapleSim removed
@github-actions
Copy link

github-actions bot commented Nov 6, 2025

✅ State machine graph generated and uploaded.

All states connect to IDLE.

@Tortuga-AM
Copy link
Contributor Author

Extra note: Motors for everything but drive I think are wrong so we need to fix that

Copy link
Contributor

@GreenTomato5 GreenTomato5 left a comment

Choose a reason for hiding this comment

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

The pose estimation stuff is kinda silly, should test this on bot before merging anything (even tho the repo is untested)

);
private final double kS = GlobalConstants.ROBOT_MODE == RobotMode.SIM ? SIM_KS : REAL_KS;
private final double kV = GlobalConstants.ROBOT_MODE == RobotMode.SIM ? SIM_KV : REAL_KV;
private final DifferentialDrivePoseEstimator poseEstimator = new DifferentialDrivePoseEstimator(
Copy link
Contributor

Choose a reason for hiding this comment

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

y are we pose estimating drive? 😭 it should just be like

-get angle and distance to tag
-rotate until camera says were at a good angle

  • pivot shooter and decide wheel speed based on distance

no pose estimation required

public void setSpeed() {
io.setSpeed();
/** Runs the drive in open loop. */
public void runOpenLoop(double leftVolts, double rightVolts) {
Copy link
Contributor

Choose a reason for hiding this comment

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

yeah we lwky only need open loop but its unserious and if you made it and it works first try on the bot wtv

public static final double CURRENT_LIMIT_OFFSET = 15.0;

// Velocity PID configuration
public static final double REAL_KP = 0.0;
Copy link
Contributor

Choose a reason for hiding this comment

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

we have util classes for these constants if you want to consolidate them on one line, also unserious (you can also use a simpleff supplier like we do for other subsystems) But this is also fine

Copy link
Contributor

Choose a reason for hiding this comment

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

I would delete the entire vision pose estimation system 😭 😭 or like, idk its just not needed and its more code

@Tortuga-AM
Copy link
Contributor Author

Extra note: Motors for everything but drive I think are wrong so we need to fix that

This aged poorly 🪫🪫🪫

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

✅ State machine graph generated and uploaded.

All states connect to IDLE.

Copy link
Contributor

@GreenTomato5 GreenTomato5 left a comment

Choose a reason for hiding this comment

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

Looks good, need to wait for non centered camera vision solution- or at least should -to see if a more complex distance or angle calculation is required for a centered cam

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.

3 participants