mirror of
https://github.com/team2059/Zaphod
synced 2024-12-18 20:12:28 -05:00
Made changes
This commit is contained in:
parent
0edf7dc593
commit
508e55c10d
@ -1,5 +1,4 @@
|
||||
#include "HHBase.h"
|
||||
|
||||
HHBase::HHBase():
|
||||
hHBot(new HHRobot()){
|
||||
printf("Done\n");
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -14,6 +14,4 @@ class HHCompressor{
|
||||
void CompressorSystemPeriodic();
|
||||
void ExtendCollector();
|
||||
void RetractCollector();
|
||||
void StartCompressing();
|
||||
void StopCompressing();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user