DeepSpace  2019
Arm Class Reference

A subsystem that controls the Arm of the robot. More...

#include <Arm.h>

Inheritance diagram for Arm:

Public Member Functions

 Arm ()
 
void InitDefaultCommand () override
 Initalizes the default command for this subsystem (Arm) More...
 
void MoveArm (double Speed)
 Move Arm arm up or down. More...
 
bool GetSensor (void)
 Returns whether the hall effects is tripped This is the sensor for when the arm is lowered. More...
 

Private Attributes

can::WPI_TalonSRX * pArmMotor
 Pointer for Arm arm motor. More...
 
can::WPI_TalonSRX * pArmMotor2
 Pointer for Arm arm motor. More...
 
frc::DigitalInput * pArmHall
 hall effects for arm is lowered enough More...
 

Detailed Description

A subsystem that controls the Arm of the robot.

Definition at line 15 of file Arm.h.

Constructor & Destructor Documentation

◆ Arm()

Arm::Arm ( )

Definition at line 3 of file Arm.cpp.

Member Function Documentation

◆ GetSensor()

bool Arm::GetSensor ( void  )

Returns whether the hall effects is tripped This is the sensor for when the arm is lowered.

Returns
true The arm is fully lowered, the sensor is tripped
false Sensor is not tripped

Definition at line 43 of file Arm.cpp.

◆ InitDefaultCommand()

void Arm::InitDefaultCommand ( )
override

Initalizes the default command for this subsystem (Arm)

Definition at line 32 of file Arm.cpp.

◆ MoveArm()

void Arm::MoveArm ( double  Speed)

Move Arm arm up or down.

Parameters
Speedspeed (from -1 to 1), where 1 is forward-down

Definition at line 37 of file Arm.cpp.

Member Data Documentation

◆ pArmHall

frc::DigitalInput* Arm::pArmHall
private

hall effects for arm is lowered enough

Definition at line 39 of file Arm.h.

◆ pArmMotor

can::WPI_TalonSRX* Arm::pArmMotor
private

Pointer for Arm arm motor.

Definition at line 36 of file Arm.h.

◆ pArmMotor2

can::WPI_TalonSRX* Arm::pArmMotor2
private

Pointer for Arm arm motor.

Definition at line 37 of file Arm.h.


The documentation for this class was generated from the following files: