25 #include <Base/Common/BIASpragma.hh>
26 #include <PanTilt/DPPanTiltControl.hh>
34 #include "PanTiltManualControl.hh"
40 PanTiltManualControl::PanTiltManualControl(std::string device,
bool heavyDutyMode):
59 myfile.open(
"ptu_data.txt", ios::out);
94 for (
int i=0;i<=10;i+=2) {
95 int tilt = -500+(tilt_mod*i);
122 cout <<
"PAN: " << p <<
" TILT: " << t << endl;
125 mvprintw(5,0,
"PAN: %f Tilt: %f \n", p, t);
130 cout <<
"exited from ncurses loop" << endl;
char SetSpeed(int nPanSpeed, int nTiltSpeed)
Set speed for movement.
abstract control class for control of Directed Perception Pan Tilt Unit.
BIAS::DPPanTiltControl ptControl
void StartControl()
Start the control.
static void GetPositionDegrees(double &panDegree, double &tiltDegree)
Get position in degrees, values should be updated by derived classes.
void SetPosition(int nPanPos, int nTiltPos, bool bWaitComplete=true)
Set the current position of the PTU in steps.
int SetMode(int nMode)
Set the mode in which the camera is to operate.