Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Added a new Command to lift the elevator using PID with an analogSensor. #56

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

NadavZiri
Copy link
Contributor

No description provided.

@SaarYogev SaarYogev self-requested a review February 17, 2018 09:49
Copy link
Contributor

@SaarYogev SaarYogev left a 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 {
Copy link
Contributor

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

Copy link
Contributor

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);
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Change to Potentiometer

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants