-
Notifications
You must be signed in to change notification settings - Fork 0
Added a new Command to lift the elevator using PID with an analogSensor. #56
base: develop
Are you sure you want to change the base?
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.
Here are the changes.
/** | ||
* | ||
*/ | ||
public class LiftUsingPID extends Command { |
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.
Change to LiftByPotentiometer
.
Potentiometer is obvious because we're basing the position on the sensor, not the algorithm.
About by
vs with
vs using
, I think by
is the most correct, because with/using is more physical. AccordingTo
is totally fine, yet a bit longer than by
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.
Also change the by thing in other PID commands
|
||
elevatorPitchMotor = new WPI_TalonSRX(8); | ||
|
||
collectorLineTracker = new LineTracker(2, 4); | ||
elevatorAnalogSensor = new AnalogInput(0); |
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.
Change to Potentiometer
@@ -20,6 +23,8 @@ | |||
*/ | |||
public class Elevator extends Subsystem { | |||
private final SpeedControllerGroup elevatorWheels = Robot.m_robotMap.elevatorWheels; | |||
private final AnalogInput analogSensor = Robot.m_robotMap.elevatorAnalogSensor; |
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.
Change to Potentiometer
No description provided.