mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Tilt pan camera test
Change-Id: I4496c9940a5da0bd78d90f1a5b4a9ebea6597336
This commit is contained in:
18
wpilibc/wpilibC++IntegrationTests/src/TestBench.cpp
Normal file
18
wpilibc/wpilibC++IntegrationTests/src/TestBench.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* 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);
|
||||
}
|
||||
Reference in New Issue
Block a user