Ravens Robotics FRC 2015
|
#include <RobotArms.h>
Public Member Functions | |
virtual void | ComponentInit () |
virtual void | Sense () |
virtual void | DoWork () |
void | CalibrateArms () |
RobotArms () | |
virtual | ~RobotArms () |
![]() | |
RobotComponent () | |
virtual | ~RobotComponent () |
Private Attributes | |
Joystick * | m_ControlStick |
Secondary arm control stick. More... | |
DoubleSolenoid * | m_DoubleSolenoid |
DoubleSolenoid Controls. More... | |
Victor * | m_ArmMotor |
Arm lifting motor. More... | |
DigitalInput * | m_TopLimit |
DigitalInput * | m_BottomLimit |
DigitalInput * | m_Limit |
Encoder * | m_DriveCounter |
const int | kStickChannel = 1 |
Joystick Channel. More... | |
const int | kSolenoidChannel1 = 0 |
First Solenoid Channel. More... | |
const int | kSolenoidChannel2 = 1 |
Second Solenoid Channel. More... | |
const int | kArmMotorChannel = 5 |
Channel of Victor. More... | |
const int | kLimitChannel = 0 |
const int | kTopLimitChannel = 1 |
const int | kEncoderchannel1 = 4 |
const int | kEncoderchannel2 = 5 |
const int | kBottomLimitChannel = 6 |
const float | k_lifterDistancePerPulse = 0.0 |
const float | k_driverDistancePerPulse = 0.0 |
float | k_minCount |
Number of encoder counts to reach bottom. More... | |
float | k_maxCount |
Number of encoder counts to reach top. More... | |
int | liftSpeed |
Lifting speed of the arms. More... | |
bool | openArms |
Used to tell robot to open/close arms. More... | |
Definition at line 15 of file RobotArms.h.
RobotArms::RobotArms | ( | ) |
Definition at line 12 of file RobotArms.cpp.
References k_maxCount, k_minCount, liftSpeed, m_ArmMotor, m_BottomLimit, m_ControlStick, m_DoubleSolenoid, m_DriveCounter, m_Limit, m_TopLimit, and openArms.
|
virtual |
Definition at line 30 of file RobotArms.cpp.
References m_ArmMotor, m_BottomLimit, m_ControlStick, m_DoubleSolenoid, m_Limit, and m_TopLimit.
void RobotArms::CalibrateArms | ( | ) |
Definition at line 80 of file RobotArms.cpp.
References liftSpeed, m_ArmMotor, m_BottomLimit, and m_TopLimit.
Referenced by ComponentInit().
|
virtual |
Called once, to perform initialization that isn't appropriate for constructor.
Reimplemented from RobotComponent.
Definition at line 39 of file RobotArms.cpp.
References CalibrateArms(), kArmMotorChannel, kBottomLimitChannel, kLimitChannel, kSolenoidChannel1, kSolenoidChannel2, kStickChannel, kTopLimitChannel, m_ArmMotor, m_BottomLimit, m_ControlStick, m_DoubleSolenoid, m_Limit, and m_TopLimit.
|
virtual |
Component-specific worker function.
Reimplemented from RobotComponent.
Definition at line 68 of file RobotArms.cpp.
References liftSpeed, m_ArmMotor, m_DoubleSolenoid, and openArms.
|
virtual |
Component-specific sensory input collector
Reimplemented from RobotComponent.
Definition at line 49 of file RobotArms.cpp.
References liftSpeed, m_ControlStick, and openArms.
|
private |
Definition at line 60 of file RobotArms.h.
|
private |
Definition at line 59 of file RobotArms.h.
|
private |
Number of encoder counts to reach top.
Definition at line 63 of file RobotArms.h.
Referenced by RobotArms().
|
private |
Number of encoder counts to reach bottom.
Definition at line 62 of file RobotArms.h.
Referenced by RobotArms().
|
private |
|
private |
Definition at line 55 of file RobotArms.h.
Referenced by ComponentInit().
|
private |
Definition at line 53 of file RobotArms.h.
|
private |
Definition at line 54 of file RobotArms.h.
|
private |
Definition at line 51 of file RobotArms.h.
Referenced by ComponentInit().
|
private |
|
private |
|
private |
|
private |
Definition at line 52 of file RobotArms.h.
Referenced by ComponentInit().
|
private |
Lifting speed of the arms.
Definition at line 64 of file RobotArms.h.
Referenced by CalibrateArms(), DoWork(), RobotArms(), and Sense().
|
private |
Arm lifting motor.
Definition at line 40 of file RobotArms.h.
Referenced by CalibrateArms(), ComponentInit(), DoWork(), RobotArms(), and ~RobotArms().
|
private |
Definition at line 42 of file RobotArms.h.
Referenced by CalibrateArms(), ComponentInit(), RobotArms(), and ~RobotArms().
|
private |
Secondary arm control stick.
Definition at line 38 of file RobotArms.h.
Referenced by ComponentInit(), RobotArms(), Sense(), and ~RobotArms().
|
private |
DoubleSolenoid Controls.
Definition at line 39 of file RobotArms.h.
Referenced by ComponentInit(), DoWork(), RobotArms(), and ~RobotArms().
|
private |
Definition at line 44 of file RobotArms.h.
Referenced by RobotArms().
|
private |
Definition at line 43 of file RobotArms.h.
Referenced by ComponentInit(), RobotArms(), and ~RobotArms().
|
private |
Definition at line 41 of file RobotArms.h.
Referenced by CalibrateArms(), ComponentInit(), RobotArms(), and ~RobotArms().
|
private |
Used to tell robot to open/close arms.
Definition at line 65 of file RobotArms.h.
Referenced by DoWork(), RobotArms(), and Sense().