mirror of
https://github.com/team2059/Dent
synced 2024-12-18 20:52:29 -05:00
45 lines
1.0 KiB
C++
45 lines
1.0 KiB
C++
#include "DentRobot.h"
|
|
#include "Commands/Autonomous/Autonomous.h"
|
|
OI* DentRobot::oi=NULL;
|
|
Collector* DentRobot::collector=NULL;
|
|
Drivetrain* DentRobot::drivetrain=NULL;
|
|
Elevator* DentRobot::elevator=NULL;
|
|
DIO* DentRobot::dio = NULL;
|
|
AirCompressor* DentRobot::airCompressor=NULL;
|
|
Autonomous* DentRobot::aut=NULL;
|
|
DentRobot::DentRobot(){
|
|
oi=new OI();
|
|
collector=new Collector();
|
|
drivetrain=new Drivetrain();
|
|
elevator=new Elevator();
|
|
dio = new DIO();
|
|
airCompressor=new AirCompressor();
|
|
aut=new Autonomous();
|
|
printf("Initialized");
|
|
}
|
|
void DentRobot::RobotInit(){
|
|
SmartDashboard::PutNumber("CodeVersion",0.001);
|
|
}
|
|
void DentRobot::DisabledPeriodic(){
|
|
Scheduler::GetInstance()->Run();
|
|
}
|
|
void DentRobot::AutonomousInit(){
|
|
if(aut != NULL){
|
|
aut->Start();
|
|
}
|
|
}
|
|
void DentRobot::AutonomousPeriodic(){
|
|
Scheduler::GetInstance()->Run();
|
|
}
|
|
void DentRobot::TeleopInit(){
|
|
//if (aut != NULL){
|
|
// aut->Cancel();
|
|
//}
|
|
}
|
|
void DentRobot::TeleopPeriodic(){
|
|
Scheduler::GetInstance()->Run();
|
|
}
|
|
void DentRobot::TestPeriodic(){
|
|
}
|
|
START_ROBOT_CLASS(DentRobot);
|