DeepSpace  2019
Arm.h
Go to the documentation of this file.
1 #ifndef _ARM_HG_
3 #define _ARM_HG_
4 
5 #include <iostream>
6 #include <frc/commands/Subsystem.h>
7 #include <frc/DigitalInput.h>
8 #include <frc/WPILib.h>
9 #include <frc/Spark.h>
10 #include <frc/AnalogInput.h>
11 #include <frc/PWMVictorSPX.h>
12 #include <ctre/Phoenix.h>
13 #include "RobotMap.h"
14 
15 class Arm : public frc::Subsystem {
16 public:
17  Arm();
18  void InitDefaultCommand() override;
19 
25  void MoveArm(double Speed);
26 
33  bool GetSensor(void) ;
34 
35 private:
36  can::WPI_TalonSRX* pArmMotor;
37  can::WPI_TalonSRX* pArmMotor2;
38 
39  frc::DigitalInput* pArmHall ;
40 };
41 
42 #endif // _ARM_HG_
Arm()
Definition: Arm.cpp:3
frc::DigitalInput * pArmHall
hall effects for arm is lowered enough
Definition: Arm.h:39
can::WPI_TalonSRX * pArmMotor2
Pointer for Arm arm motor.
Definition: Arm.h:37
bool GetSensor(void)
Returns whether the hall effects is tripped This is the sensor for when the arm is lowered...
Definition: Arm.cpp:43
can::WPI_TalonSRX * pArmMotor
Pointer for Arm arm motor.
Definition: Arm.h:36
void MoveArm(double Speed)
Move Arm arm up or down.
Definition: Arm.cpp:37
void InitDefaultCommand() override
Initalizes the default command for this subsystem (Arm)
Definition: Arm.cpp:32
A subsystem that controls the Arm of the robot.
Definition: Arm.h:15