From 3fa5c4bcc03e517cf966f7b9de58f1bc17d82d6c Mon Sep 17 00:00:00 2001 From: Adam Long Date: Wed, 19 Mar 2014 18:39:15 -0400 Subject: [PATCH] Removed unused variables (multiplier) and cleaned up the variable-declaration area of the code --- MyRobot.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/MyRobot.cpp b/MyRobot.cpp index 33e9305..db4e2a4 100644 --- a/MyRobot.cpp +++ b/MyRobot.cpp @@ -3,22 +3,19 @@ #include "SmartDashboard/SmartDashboard.h" #include #include -#include #include //}}} class RobotDemo : public SimpleRobot { //Declarations{{{ RobotDrive myRobot; - float potVal, multiplier, throttle; bool collectorExtended, shooting, compressing, allowCompressing; - float upLimit; + float upLimit, throttle; Joystick Rstick, Lstick; Solenoid collectorSole1, collectorSole2; Compressor compressor; Jaguar Left1, Left2, Left3, Right1, Right2, Right3, RightArmMotor1, RightArmMotor2, LeftArmMotor1, LeftArmMotor2, CollectorMotor1; - AnalogChannel armPot; - AnalogChannel BallSonicLeft, BallSonicRight, WallSonicLeft, WallSonicRight; + AnalogChannel armPot, BallSonicLeft, BallSonicRight, WallSonicLeft, WallSonicRight; DigitalOutput BallLeft, BallRight, WallLeft, WallRight; //}}} public: @@ -64,7 +61,6 @@ public: //RobotInit{{{ void RobotInit() { DashboardSetup(); - multiplier = 1.0f; upLimit = 130.0; compressor.Start(); shooting = false;