2014-05-24 14:29:44 -04:00
|
|
|
#ifndef __ZAPHOD_ROBOT_H__
|
|
|
|
#define __ZAPHOD_ROBOT_H__
|
|
|
|
|
|
|
|
#include <WPILib.h>
|
|
|
|
#include "ZaphodBase.h"
|
|
|
|
#include "Definitions.h"
|
|
|
|
|
|
|
|
class JoystickController;
|
|
|
|
class ZaphodShooter;
|
|
|
|
class ZaphodCollector;
|
2014-05-25 10:45:03 -04:00
|
|
|
class ZaphodCompressor;
|
2014-05-24 14:29:44 -04:00
|
|
|
|
|
|
|
class ZaphodRobot
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
Jaguar *right1, *right2, *right3, *left1, *left2, *left3;
|
|
|
|
DigitalOutput *frontSonarLeftD, *frontSonarRightD, *rearSonarLeftD, *rearSonarRightD;
|
|
|
|
AnalogChannel *frontSonarLeftA, *frontSonarRightA, *rearSonarLeftA, *rearSonarRightA;
|
|
|
|
JoystickController *ControlSystem;
|
|
|
|
ZaphodShooter *shooter;
|
|
|
|
ZaphodCollector *collector;
|
2014-05-25 10:45:03 -04:00
|
|
|
ZaphodCompressor *compressorSystem;
|
2014-05-24 14:29:44 -04:00
|
|
|
public:
|
|
|
|
ZaphodRobot();
|
|
|
|
|
|
|
|
float frontSonarLeftV, frontSonarRightV, rearSonarLeftV, rearSonarRightV;
|
|
|
|
float getFrontSonar();
|
|
|
|
float getRearSonar();
|
2014-05-25 14:41:10 -04:00
|
|
|
void driveRobot(float,float);
|
2014-05-24 14:29:44 -04:00
|
|
|
void handler();
|
|
|
|
};
|
|
|
|
#endif
|