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

19 lines
732 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. */
/*----------------------------------------------------------------------------*/
#include "TestBench.h"
TiltPanCameraFixture *TestBench::GetTiltPanCamera() {
Gyro *gyro = new Gyro(1);
gyro->SetSensitivity(0.007);
Servo *tilt = new Servo(10),
*pan = new Servo(9);
return new TiltPanCameraFixture(tilt, pan, gyro);
}