DeepSpace  2019
CrawlDrive Class Reference

A subsytem that interfaces with the climberbase on the robot. More...

#include <CrawlDrive.h>

Inheritance diagram for CrawlDrive:

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
 

Detailed Description

A subsytem that interfaces with the climberbase on the robot.

Definition at line 11 of file CrawlDrive.h.

Constructor & Destructor Documentation

◆ CrawlDrive()

CrawlDrive::CrawlDrive ( )

Class constructor.

Definition at line 3 of file CrawlDrive.cpp.

Member Function Documentation

◆ GetSensor()

bool CrawlDrive::GetSensor ( void  )

Returns true if its on the floor.

Returns
true Something is right in front of it (on the floor)
false Nothing in front of it (in the air)

Definition at line 27 of file CrawlDrive.cpp.

◆ InitDefaultCommand()

void CrawlDrive::InitDefaultCommand ( )
override

Initalizes the default command for this subsystem ()

Definition at line 23 of file CrawlDrive.cpp.

◆ Move()

void CrawlDrive::Move ( double  Speed)

Drive, (or crawl), forwards or backwards Moves the wheels attached to the arms. What wheels do.

Parameters
SpeedPercent power to go. 100% drives forwards

Definition at line 32 of file CrawlDrive.cpp.

Member Data Documentation

◆ pCrawlLeft

frc::Spark* CrawlDrive::pCrawlLeft
private

Pointer for the left crawl motor.

Definition at line 31 of file CrawlDrive.h.

◆ pCrawlRight

frc::Spark* CrawlDrive::pCrawlRight
private

Pointer for the right crawl motor.

Definition at line 32 of file CrawlDrive.h.

◆ pFloorSensor

frc::DigitalInput* CrawlDrive::pFloorSensor
private

Definition at line 33 of file CrawlDrive.h.


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