7 this->
pLegMotor->SetNeutralMode(NeutralMode::Brake);
25 if (spd > 0.0 && this->
AtTop()
void MoveLeg(double Speed)
Move climb leg up or down.
frc::DigitalInput * pMiddleHall
Sensor for when the leg is at the middle position If this sensor is tripped, the robot is above the l...
bool AtBottom(void)
Returns whether the legs are at the bottom most position.
frc::DigitalInput * pBottomHall
Sensor for when the leg is as far down as it can go If this sensor is tripped, the robot is above the...
bool AtMiddle(void)
Returns whether the legs are at the middle position.
Leg(void)
Construct a new Leg object.
frc::DigitalInput * pTopHall
Sensor for when the leg is as far up as it can go If this sensor is tripped, the legs are above the w...
can::WPI_TalonSRX * pLegMotor
Pointer for the climb leg motor Works off a winch system to pull up and down But is used like a talon...
void InitDefaultCommand() override
Who uses this? You dont need to.
bool AtTop(void)
Returns whether the legs are at the top most position.