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

Did elevator #11

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Did elevator #11

wants to merge 4 commits into from

Conversation

Superbro525Alt
Copy link

No description provided.

@Superbro525Alt Superbro525Alt requested a review from a team as a code owner January 9, 2025 11:08
Copy link
Member

@spacey-sooty spacey-sooty left a comment

Choose a reason for hiding this comment

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

use more constants idk

Comment on lines +9 to +11
public double distanceSensorReading;
public double encoderReading;
public ElevatorConstants.Setpoints point;
Copy link
Member

Choose a reason for hiding this comment

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

Should have more thing

import com.revrobotics.spark.SparkMax;

public class ElevatorIONeo implements ElevatorIO {
protected final SparkMax elevatorMotor = new SparkMax(10, MotorType.kBrushless);
Copy link
Member

Choose a reason for hiding this comment

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

Use a constant or smthing

public class ElevatorIONeoMaxMotion extends ElevatorIONeo {
private SparkClosedLoopController controller = elevatorMotor.getClosedLoopController();

public static double convertSetpoint(double set /* in mm */) {
Copy link
Member

Choose a reason for hiding this comment

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

Move to util file maybe?

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.

2 participants