From 42f6e9e4e49ef9697deb65fe6b6e575d6fce03b7 Mon Sep 17 00:00:00 2001 From: Adam Long Date: Wed, 2 Apr 2014 14:45:42 -0700 Subject: [PATCH] Forgot to make the compressor actually RUN --- MyRobot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MyRobot.cpp b/MyRobot.cpp index 41a9376..d7d985f 100644 --- a/MyRobot.cpp +++ b/MyRobot.cpp @@ -252,11 +252,11 @@ public: bool runCompressor(int timer, int refreshInterval){ if(timer%refreshInterval==0&compressing&comressor.GetPressureSwitchValue()==1){ compressing=false; - return false; + compressor.Stop(); } if(timer%refreshInterval==0&!compressing&comressor.GetPressureSwitchValue()==0){ compressing=true; - return true; + compressor.Start(); } //}}} //Autonomous{{{