DeepSpace
2019
|
A subsytem that interfaces with the climberbase on the robot. More...
#include <CrawlDrive.h>
Public Member Functions | |
CrawlDrive () | |
Class constructor. More... | |
void | InitDefaultCommand () override |
Initalizes the default command for this subsystem () More... | |
void | Move (double Speed) |
Drive, (or crawl), forwards or backwards Moves the wheels attached to the arms. What wheels do. More... | |
bool | GetSensor (void) |
Returns true if its on the floor. More... | |
Private Attributes | |
frc::Spark * | pCrawlLeft |
Pointer for the left crawl motor. More... | |
frc::Spark * | pCrawlRight |
Pointer for the right crawl motor. More... | |
frc::DigitalInput * | pFloorSensor |
A subsytem that interfaces with the climberbase on the robot.
Definition at line 11 of file CrawlDrive.h.
CrawlDrive::CrawlDrive | ( | ) |
Class constructor.
Definition at line 3 of file CrawlDrive.cpp.
bool CrawlDrive::GetSensor | ( | void | ) |
Returns true if its on the floor.
Definition at line 27 of file CrawlDrive.cpp.
|
override |
Initalizes the default command for this subsystem ()
Definition at line 23 of file CrawlDrive.cpp.
void CrawlDrive::Move | ( | double | Speed | ) |
Drive, (or crawl), forwards or backwards Moves the wheels attached to the arms. What wheels do.
Speed | Percent power to go. 100% drives forwards |
Definition at line 32 of file CrawlDrive.cpp.
|
private |
Pointer for the left crawl motor.
Definition at line 31 of file CrawlDrive.h.
|
private |
Pointer for the right crawl motor.
Definition at line 32 of file CrawlDrive.h.
|
private |
Definition at line 33 of file CrawlDrive.h.