DeepSpace  2019
CrawlDrive.h
Go to the documentation of this file.
1 #ifndef _CRAWLDRIVE_HG_
3 #define _CRAWLDRIVE_HG_
4 
5 #include <frc/commands/Subsystem.h>
6 #include <frc/DigitalInput.h>
7 #include <frc/WPILib.h>
8 #include <frc/Spark.h>
9 #include "RobotMap.h"
10 
11 class CrawlDrive: public frc::Subsystem {
12  public:
13  CrawlDrive();
14  void InitDefaultCommand() override;
15 
21  void Move(double Speed);
22 
28  bool GetSensor(void) ;
29 
30 private:
31  frc::Spark* pCrawlLeft;
32  frc::Spark* pCrawlRight;
33  frc::DigitalInput* pFloorSensor;
34 };
35 
36 #endif // _CRAWLDRIVE_HG_
bool GetSensor(void)
Returns true if its on the floor.
Definition: CrawlDrive.cpp:27
frc::Spark * pCrawlRight
Pointer for the right crawl motor.
Definition: CrawlDrive.h:32
CrawlDrive()
Class constructor.
Definition: CrawlDrive.cpp:3
A subsytem that interfaces with the climberbase on the robot.
Definition: CrawlDrive.h:11
void InitDefaultCommand() override
Initalizes the default command for this subsystem ()
Definition: CrawlDrive.cpp:23
frc::DigitalInput * pFloorSensor
Definition: CrawlDrive.h:33
void Move(double Speed)
Drive, (or crawl), forwards or backwards Moves the wheels attached to the arms. What wheels do...
Definition: CrawlDrive.cpp:32
frc::Spark * pCrawlLeft
Pointer for the left crawl motor.
Definition: CrawlDrive.h:31