2
0
mirror of https://github.com/team2059/Dent synced 2024-12-28 21:02:30 -05:00
dent/Subsystems/Collector.h

66 lines
1.6 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
2015-03-10 19:46:43 -04:00
*collectorMotorBottom, //<! Bottom collector motor
*collectorMotorRamp, //<! Ramp collector motor
2015-03-02 08:28:03 -05:00
*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 power The speed to run the collectors
2015-03-02 08:28:03 -05:00
*/
void MoveRollers(double power);
2015-03-21 10:24:33 -04:00
/**
* @brief Moves the left roller
*
* @param power The speed to run the left roller
*/
void MoveLeftRoller(double power);
/**
* @brief Moves the right roller
*
* @param power The speed to run the right roller
*/
void MoveRightRoller(double power);
/**
* @brief Moves the bottom rollers
*
* @param power The speed to run the bottom rollers
*/
void MoveBottomRollers(double power);
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