From 123898882c723e09c67a2a167b5d73912bbd4cd0 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Mon, 9 Mar 2015 09:48:18 -0400 Subject: [PATCH] Continued work on documentation --- Commands/Autonomous/AutoDrive.h | 6 +-- Commands/BinElevator/BinOpenArms.h | 8 ++++ DentRobot.h | 2 +- Subsystems/BinElevator.h | 41 +++++++++++++++++++-- Subsystems/Collector.h | 6 +-- Subsystems/Drivetrain.h | 49 ++++++++++++++++++++++--- Subsystems/Elevator.cpp | 1 - Subsystems/Elevator.h | 59 +++++++++++++++++++++++++++--- Subsystems/Pneumatics.h | 22 +++++++++-- 9 files changed, 168 insertions(+), 26 deletions(-) diff --git a/Commands/Autonomous/AutoDrive.h b/Commands/Autonomous/AutoDrive.h index 23fb324..1572c09 100644 --- a/Commands/Autonomous/AutoDrive.h +++ b/Commands/Autonomous/AutoDrive.h @@ -19,9 +19,9 @@ class AutoDrive: public Command{ /** * @brief Constructs AutoDrive * - * @param double Timeout in seconds - * @param double Joystick x value (default: 0.0) - * @param double Joystick y value (default: 0.75) + * @param duration Timeout in seconds + * @param xtmp Joystick x value (default: 0.0) + * @param ytmp Joystick y value (default: 0.75) */ AutoDrive(double duration, double xtmp = 0.0, double ytmp = -0.75); /** diff --git a/Commands/BinElevator/BinOpenArms.h b/Commands/BinElevator/BinOpenArms.h index aaa4966..0b2bf03 100644 --- a/Commands/BinElevator/BinOpenArms.h +++ b/Commands/BinElevator/BinOpenArms.h @@ -4,8 +4,16 @@ #include "Commands/Command.h" #include "WPILib.h" +/** + * @brief Opens bin arms (unused) + */ class BinOpenArms: public Command{ public: + /** + * @brief Constructs BinOpenArms + * + * @param double The timeout + */ BinOpenArms(double); /** * @brief Constructs BinOpenArms diff --git a/DentRobot.h b/DentRobot.h index 4c859f9..43759bd 100644 --- a/DentRobot.h +++ b/DentRobot.h @@ -45,7 +45,7 @@ class DentRobot: public IterativeRobot { */ static BinElevator* binElevator; /** - * @brief The Pneumatics system (UNUSED) + * @brief The Pneumatics system (unused) */ static Pneumatics* pneumatics; /** diff --git a/Subsystems/BinElevator.h b/Subsystems/BinElevator.h index 8f77991..3ff85a6 100644 --- a/Subsystems/BinElevator.h +++ b/Subsystems/BinElevator.h @@ -3,18 +3,53 @@ #include "WPILib.h" #include "Commands/PIDSubsystem.h" +/** + * @brief Controls the bin elevator + */ class BinElevator{ private: - CANTalon *motor; - Encoder *elevatorEncoder; - DigitalInput *elevatorBottom, *elevatorTop; + CANTalon *motor; //