Files
allwpilib/wpilibc/wpilibC++IntegrationTests/include/fixtures/TiltPanCameraFixture.h
thomasclark 2e39540f20 Tilt pan camera test
Change-Id: I4496c9940a5da0bd78d90f1a5b4a9ebea6597336
2014-06-02 17:34:10 -04:00

36 lines
1000 B
C++

/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2014. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
#pragma once
#include "WPILib.h"
#include "ITestFixture.h"
/**
* A class to represent the camera with tilt and pan servos and a gyro
*
* @author Thomas Clark
*/
class TiltPanCameraFixture : public ITestFixture {
public:
TiltPanCameraFixture(Servo *tilt, Servo *pan, Gyro *gyro);
virtual bool SetUp();
virtual bool Reset();
virtual bool TearDown();
Gyro *GetGyro();
Servo *GetTilt();
Servo *GetPan();
protected:
static const double RESET_TIME = 1.0;
Servo *m_tilt, *m_pan;
Gyro *m_gyro;
};