mirror of
https://github.com/team2059/Zaphod
synced 2024-12-18 20:12:28 -05:00
32 lines
824 B
C++
32 lines
824 B
C++
#ifndef __ZAPHOD_ROBOT_H__
|
|
#define __ZAPHOD_ROBOT_H__
|
|
|
|
#include <WPILib.h>
|
|
#include "ZaphodBase.h"
|
|
#include "Definitions.h"
|
|
|
|
class JoystickController;
|
|
class ZaphodShooter;
|
|
class ZaphodCollector;
|
|
|
|
class ZaphodRobot
|
|
{
|
|
private:
|
|
Jaguar *right1, *right2, *right3, *left1, *left2, *left3;
|
|
Compressor *compressor;
|
|
Solenoid *solenoid1, *solenoid2;
|
|
DigitalOutput *frontSonarLeftD, *frontSonarRightD, *rearSonarLeftD, *rearSonarRightD;
|
|
AnalogChannel *frontSonarLeftA, *frontSonarRightA, *rearSonarLeftA, *rearSonarRightA;
|
|
JoystickController *ControlSystem;
|
|
ZaphodShooter *shooter;
|
|
ZaphodCollector *collector;
|
|
public:
|
|
ZaphodRobot();
|
|
|
|
float frontSonarLeftV, frontSonarRightV, rearSonarLeftV, rearSonarRightV;
|
|
float getFrontSonar();
|
|
float getRearSonar();
|
|
void handler();
|
|
};
|
|
#endif
|