2
0
mirror of https://github.com/team2059/Dent synced 2024-12-18 20:52:29 -05:00
dent/Subsystems/Collector.h

48 lines
1.1 KiB
C
Raw Normal View History

#ifndef COLLECTOR_H
#define COLLECTOR_H
#include "WPILib.h"
2015-03-02 08:28:03 -05:00
/**
* @brief Collects totes
*
* Uses four motors, two on the sides, one on the bottom, and one on the ramp to collect and eject totes
*/
class Collector: public Subsystem{
2015-01-16 20:12:48 -05:00
private:
2015-03-02 08:28:03 -05:00
CANTalon *collectorMotorLeft, //<! Left collector motor
*collectorMotorBottom, //<! Bottom collctor motor
*collectorMotorRamp, //<! Ramp collctor motor
*collectorMotorRight; //<! Right collector motor
/**
2015-03-09 09:48:18 -04:00
* @brief Analog input for sonar (unused)
2015-03-02 08:28:03 -05:00
*/
2015-02-15 07:53:19 -05:00
AnalogInput *sonarAnalog;
2015-03-02 08:28:03 -05:00
/**
2015-03-09 09:48:18 -04:00
* @brief Digital output for sonar (unused)
2015-03-02 08:28:03 -05:00
*/
2015-02-15 07:53:19 -05:00
DigitalOutput *sonarDigital;
2015-01-16 20:12:48 -05:00
public:
2015-03-02 08:28:03 -05:00
/**
* @brief Constructs Collector
*/
2015-01-16 20:12:48 -05:00
Collector();
2015-03-02 08:28:03 -05:00
/**
* @brief No action
*/
2015-01-16 20:12:48 -05:00
void InitDefaultCommand();
2015-03-02 08:28:03 -05:00
/**
* @brief Moves the collectors
*
* @param double The speed to run the collectors
*/
void MoveRollers(double);
2015-03-02 08:28:03 -05:00
/**
2015-03-09 09:48:18 -04:00
* @brief Gets the distance of the sonar (unused)
2015-03-02 08:28:03 -05:00
*
* @return The sonar distance
*/
2015-02-15 17:10:20 -05:00
double GetSonarDistance();
};
#endif
2015-02-08 12:26:15 -05:00
// vim: ts=2:sw=2:et