2
0
mirror of https://github.com/team2059/Zaphod synced 2024-12-18 20:12:28 -05:00

Made changes

This commit is contained in:
Austen Adler 2014-08-22 15:57:39 -04:00
parent 0edf7dc593
commit 508e55c10d
4 changed files with 7 additions and 13 deletions

View File

@ -1,5 +1,4 @@
#include "HHBase.h"
HHBase::HHBase():
hHBot(new HHRobot()){
printf("Done\n");

View File

@ -36,6 +36,7 @@ void HHRobot::DriveRobot(float x, float y){
void HHRobot::UpdateDashboard(){
dashboard->PutFloatValue("Shooting Power", ControlSystem->throttle);
}
//Main function used to handle periodic tasks on the robot
void HHRobot::Handler(){
//Periodic tasks that should be run by every loop

View File

@ -9,27 +9,23 @@ void HHCompressor::CompressorSystemPeriodic(){
case EXTENDED:
solenoid1->Set(false);
solenoid2->Set(true);
e_CollectorSolenoidState = IDLE;
break;
case RETRACTED:
solenoid1->Set(true);
solenoid2->Set(false);
e_CollectorSolenoidState = IDLE;
break;
case IDLE:
e_CollectorSolenoidState = IDLE;
break;
default:
break;
}
//e_CollectorSolenoidState=IDLE;
}
void HHCompressor::StartCompressing(){
e_CollectorSolenoidState=IDLE;
if(compressor->GetPressureSwitchValue()==1){
compressor->Start();
}
void HHCompressor::StopCompressing(){
}else{
compressor->Stop();
}
}
void HHCompressor::ExtendCollector(){
e_CollectorSolenoidState=EXTENDED;
}

View File

@ -14,6 +14,4 @@ class HHCompressor{
void CompressorSystemPeriodic();
void ExtendCollector();
void RetractCollector();
void StartCompressing();
void StopCompressing();
};