diff --git a/Commands/Autonomous/Turn.cpp b/Commands/Autonomous/Turn.cpp index 2ca2e4b..4382fab 100644 --- a/Commands/Autonomous/Turn.cpp +++ b/Commands/Autonomous/Turn.cpp @@ -4,8 +4,7 @@ Turn::Turn(double timeout): Command("Turn") { Requires(DentRobot::drivetrain); SetTimeout(timeout); } -void Turn::Initialize() { -} +void Turn::Initialize() {} void Turn::Execute() { //X axis, Y axis, Z axis, sensitivity, speed threshold (usually throttle) DentRobot::drivetrain->DriveArcade(0.0, 0.0, 0.6, 0.9); diff --git a/Commands/BinCollector/BinIn.cpp b/Commands/BinCollector/BinIn.cpp index a96b423..0862010 100644 --- a/Commands/BinCollector/BinIn.cpp +++ b/Commands/BinCollector/BinIn.cpp @@ -4,8 +4,7 @@ BinIn::BinIn(float timeout): Command("BinIn") { SetTimeout(timeout); } -void BinIn::Initialize() { -} +void BinIn::Initialize() {} void BinIn::Execute() { DentRobot::binCollector->MoveArms(0.75); } diff --git a/Commands/BinCollector/BinOut.cpp b/Commands/BinCollector/BinOut.cpp index 9a87a98..4f837db 100644 --- a/Commands/BinCollector/BinOut.cpp +++ b/Commands/BinCollector/BinOut.cpp @@ -4,8 +4,7 @@ BinOut::BinOut(double timeout): Command("BinOut") { SetTimeout(timeout); } -void BinOut::Initialize() { -} +void BinOut::Initialize() {} void BinOut::Execute() { DentRobot::binCollector->MoveArms(-0.1); } diff --git a/Commands/BinElevator/BinCloseArms.cpp b/Commands/BinElevator/BinCloseArms.cpp index e8fb51c..e8c0589 100644 --- a/Commands/BinElevator/BinCloseArms.cpp +++ b/Commands/BinElevator/BinCloseArms.cpp @@ -4,16 +4,14 @@ BinCloseArms::BinCloseArms(double timeout): Command("BinCloseArms") { SetTimeout(timeout); } -void BinCloseArms::Initialize() { -} +void BinCloseArms::Initialize() {} void BinCloseArms::Execute() { DentRobot::pneumatics->SetArmsOpen(false); } bool BinCloseArms::IsFinished() { return true; } -void BinCloseArms::End() { -} +void BinCloseArms::End() {} void BinCloseArms::Interrupted() { End(); } diff --git a/Commands/BinElevator/BinLower.cpp b/Commands/BinElevator/BinLower.cpp index 823b35e..903e448 100644 --- a/Commands/BinElevator/BinLower.cpp +++ b/Commands/BinElevator/BinLower.cpp @@ -4,8 +4,7 @@ BinLower::BinLower(float timeout): Command("BinLower") { SetTimeout(timeout); } -void BinLower::Initialize() { -} +void BinLower::Initialize() {} void BinLower::Execute() { DentRobot::binElevator->Run(-1.0); } diff --git a/Commands/BinElevator/BinOpenArms.cpp b/Commands/BinElevator/BinOpenArms.cpp index cf9bfb7..0e1f8a4 100644 --- a/Commands/BinElevator/BinOpenArms.cpp +++ b/Commands/BinElevator/BinOpenArms.cpp @@ -4,16 +4,14 @@ BinOpenArms::BinOpenArms(double timeout): Command("BinOpenArms") { SetTimeout(timeout); } -void BinOpenArms::Initialize() { -} +void BinOpenArms::Initialize() {} void BinOpenArms::Execute() { DentRobot::pneumatics->SetArmsOpen(true); } bool BinOpenArms::IsFinished() { return true; } -void BinOpenArms::End() { -} +void BinOpenArms::End() {} void BinOpenArms::Interrupted() { End(); } diff --git a/Commands/BinElevator/BinRaise.cpp b/Commands/BinElevator/BinRaise.cpp index 7332127..8d7f284 100644 --- a/Commands/BinElevator/BinRaise.cpp +++ b/Commands/BinElevator/BinRaise.cpp @@ -4,8 +4,7 @@ BinRaise::BinRaise(double timeout): Command("BinRaise") { SetTimeout(timeout); } -void BinRaise::Initialize() { -} +void BinRaise::Initialize() {} void BinRaise::Execute() { DentRobot::binElevator->Run(1.0); } diff --git a/Commands/Collector/RollOut.cpp b/Commands/Collector/RollOut.cpp index dae50d7..bc6d5b7 100644 --- a/Commands/Collector/RollOut.cpp +++ b/Commands/Collector/RollOut.cpp @@ -3,8 +3,7 @@ RollOut::RollOut(double timeout): Command("RollOut") { Requires(DentRobot::collector); SetTimeout(timeout); } -void RollOut::Initialize() { -} +void RollOut::Initialize() {} void RollOut::Execute() { // Divide by 2 twice because this speed should be half the collector speed DentRobot::collector->MoveRollers(-DentRobot::oi->GetLeftThrottle() * 0.8); diff --git a/Commands/Drivetrain/Drive.cpp b/Commands/Drivetrain/Drive.cpp index 0cb36f3..0424d45 100644 --- a/Commands/Drivetrain/Drive.cpp +++ b/Commands/Drivetrain/Drive.cpp @@ -3,8 +3,7 @@ Drive::Drive(): Command("Drive") { Requires(DentRobot::drivetrain); } -void Drive::Initialize() { -} +void Drive::Initialize() {} void Drive::Execute() { double x, y, z; x = DentRobot::oi->GetLeftStick()->GetRawAxis(0); @@ -29,8 +28,7 @@ void Drive::Execute() { bool Drive::IsFinished() { return IsTimedOut(); } -void Drive::End() { -} +void Drive::End() {} void Drive::Interrupted() { End(); } diff --git a/Commands/Elevator/Lower.cpp b/Commands/Elevator/Lower.cpp index dc7b92f..40dd6d5 100644 --- a/Commands/Elevator/Lower.cpp +++ b/Commands/Elevator/Lower.cpp @@ -5,8 +5,7 @@ Lower::Lower(double timeout, bool useSoftLimits): Command("Lower") { SetTimeout(timeout); softLimits=useSoftLimits; } -void Lower::Initialize() { -} +void Lower::Initialize() {} void Lower::Execute() { DentRobot::elevator->Run(-1.0); } diff --git a/Commands/Elevator/Raise.cpp b/Commands/Elevator/Raise.cpp index 111e8d5..01e808f 100644 --- a/Commands/Elevator/Raise.cpp +++ b/Commands/Elevator/Raise.cpp @@ -5,8 +5,7 @@ Raise::Raise(double timeout, bool useSoftLimits): Command("Raise") { SetTimeout(timeout); softLimits=useSoftLimits; } -void Raise::Initialize() { -} +void Raise::Initialize() {} void Raise::Execute() { DentRobot::elevator->Run(1.0); } diff --git a/DentRobot.cpp b/DentRobot.cpp index d6a0a2f..326a389 100644 --- a/DentRobot.cpp +++ b/DentRobot.cpp @@ -78,7 +78,6 @@ void DentRobot::TeleopPeriodic() { } SmartDashboard::PutNumber("CollectorThrottle", oi->GetLeftThrottle()); } -void DentRobot::TestPeriodic() { -} +void DentRobot::TestPeriodic() {} START_ROBOT_CLASS(DentRobot); // vim: ts=2:sw=2:et diff --git a/Subsystems/BinCollector.cpp b/Subsystems/BinCollector.cpp index 7fa458a..1d8f6f5 100644 --- a/Subsystems/BinCollector.cpp +++ b/Subsystems/BinCollector.cpp @@ -5,8 +5,7 @@ BinCollector::BinCollector(): Subsystem("BinCollector") { leftBinCollectorMotor = new CANTalon(BINCOLLECTOR_LEFT_CAN); rightBinCollectorMotor = new CANTalon(BINCOLLECTOR_RIGHT_CAN); } -void BinCollector::InitDefaultCommand() { -} +void BinCollector::InitDefaultCommand() {} void BinCollector::MoveArms(double speed) { leftBinCollectorMotor->Set(speed); rightBinCollectorMotor->Set(-speed); diff --git a/Subsystems/BinElevator.cpp b/Subsystems/BinElevator.cpp index 129bb46..308b9a7 100644 --- a/Subsystems/BinElevator.cpp +++ b/Subsystems/BinElevator.cpp @@ -7,8 +7,7 @@ BinElevator::BinElevator() { elevatorBottom = new DigitalInput(BINELEVATOR_BOTTOM_DIO); elevatorTop = new DigitalInput(BINELEVATOR_TOP_DIO); } -void BinElevator::InitDefaultCommand() { -} +void BinElevator::InitDefaultCommand() {} void BinElevator::Run(double power) { leftMotor->Set(power); rightMotor->Set(-power); diff --git a/Subsystems/Collector.cpp b/Subsystems/Collector.cpp index c5e9843..5e9908a 100644 --- a/Subsystems/Collector.cpp +++ b/Subsystems/Collector.cpp @@ -8,8 +8,7 @@ Collector::Collector(): Subsystem("Collector") { collectorMotorRight = new CANTalon(COLLECTOR_RIGHT_CAN); sonarAnalog = new AnalogInput(COLLECTOR_SONAR_ANALOG); } -void Collector::InitDefaultCommand() { -} +void Collector::InitDefaultCommand() {} void Collector::MoveRollers(double power) { MoveLeftRoller(power); MoveRightRoller(-power); diff --git a/Subsystems/Elevator.cpp b/Subsystems/Elevator.cpp index f57db16..698be8a 100644 --- a/Subsystems/Elevator.cpp +++ b/Subsystems/Elevator.cpp @@ -9,8 +9,7 @@ Elevator::Elevator() { // Checks if the elevator is drifting useEncoder = false; } -void Elevator::InitDefaultCommand() { -} +void Elevator::InitDefaultCommand() {} void Elevator::Run(double power) { // If we're not telling it to stop if(power != 0.0) { diff --git a/Subsystems/Pneumatics.cpp b/Subsystems/Pneumatics.cpp index 086c924..38c737b 100644 --- a/Subsystems/Pneumatics.cpp +++ b/Subsystems/Pneumatics.cpp @@ -9,8 +9,7 @@ Pneumatics::Pneumatics(): Subsystem("Pneumatics") { solenoid4 = new Solenoid(COMPRESSOR_PCM_CAN, BINELEVATOR_SOLENOID_FOUR); armState = false; } -void Pneumatics::InitDefaultCommand() { -} +void Pneumatics::InitDefaultCommand() {} void Pneumatics::SetArmsOpen(bool state) { if(state) { solenoid1->Set(true);