-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Did elevator #11
Conversation
There was a problem hiding this 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
public double distanceSensorReading; | ||
public double encoderReading; | ||
public ElevatorConstants.Setpoints point; |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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 */) { |
There was a problem hiding this comment.
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?
No description provided.