48 virtual bool absPosQ(
char axis,
double& nRad) = 0;
67 virtual bool offPosQ(
char axis,
double& nRad) = 0;
71 virtual bool maxPosQ(
char axis,
double& nRad) = 0;
75 virtual bool minPosQ(
char axis,
double& nRad) = 0;
110 virtual bool aWait(
void) = 0;
118 virtual bool halt(
char axis) = 0;
122 virtual bool speed(
char axis,
double RadSec) = 0;
126 virtual bool speedQ(
char axis,
double& RadSec) = 0;
130 virtual bool aceleration(
char axis,
double RadSec2) = 0;
134 virtual bool acelerationQ(
char axis,
double& RadSec2) = 0;
140 virtual bool baseSpeed(
char axis,
double RadSec) = 0;
146 virtual bool baseSpeedQ(
char axis,
double& RadSec) = 0;
150 virtual bool upperSpeed(
char axis,
double RadSec) = 0;
154 virtual bool upperSpeedQ(
char axis,
double& RadSec) = 0;
158 virtual bool lowerSpeed(
char axis,
double RadSec) = 0;
162 virtual bool lowerSpeedQ(
char axis,
double& RadSec) = 0;
166 virtual bool reset(
void) = 0;
170 virtual bool save(
void) = 0;
182 virtual bool version(
char* nVersion) = 0;
186 virtual void nversion(
double& nVersion) = 0;
198 virtual double status(
double& rad) = 0;
202 virtual bool setLimits(
char axis,
double& l,
double& u) = 0;
227 virtual void close() = 0;
234 virtual double radError(
char axis,
double nRadMoved) = 0;
238 virtual long radToPos(
char axis,
double nRad) = 0;
242 virtual double posToRad(
char axis,
long nPos) = 0;
253 char axis,
int wait,
float initial,
float final,
double RadPre) = 0;
257 virtual bool verboseQ(
bool& modo) = 0;
270 virtual bool verbose(
bool set) = 0;
298 virtual bool transmit(
const char* command) = 0;
302 virtual bool receive(
const char* command,
char* response) = 0;
306 virtual bool radQuerry(
char axis,
char command,
double& nRad) = 0;
310 virtual bool radAsign(
char axis,
char command,
double nRad) = 0;
virtual bool upperSpeedQ(char axis, double &RadSec)=0
Query velocity upper limit.
virtual bool absPosQ(char axis, double &nRad)=0
Query position in absolute terms.
virtual bool aceleration(char axis, double RadSec2)=0
Specification (de/a)celeration in turn.
virtual bool enableLimits(bool set)=0
Enable/Disable movement limits.
virtual bool save(void)=0
Save or restart default values.
virtual ~CPtuBase()
Destructor.
virtual bool lowerSpeedQ(char axis, double &RadSec)=0
Query velocity lower limit.
A communications serial port built as an implementation of a utils::CStream.
virtual bool verbose(bool set)=0
Set verbose.
mrpt::comms::CSerialPort serPort
virtual bool verboseQ(bool &modo)=0
Query verbose mode.
virtual bool inmediateExecution(bool set)=0
With I mode (default) instructs pan-tilt unit to immediately execute positional commands.
virtual bool scan(char axis, int wait, float initial, float final, double RadPre)=0
Performs a scan in the axis indicated and whit the precision desired.
This class implements initialization and comunication methods to control a generic Pan and Tilt Unit...
virtual bool resolution(void)=0
Query the pan and tilt resolution per position moved and initialize local atributes.
virtual bool echoMode(bool mode)=0
Enable/Disable echo response with command.
Contains classes for various device interfaces.
virtual bool upperSpeed(char axis, double RadSec)=0
Specification of velocity upper limit.
virtual bool aWait(void)=0
Wait the finish of the last position command to continue accept commands.
virtual bool restoreDefaults(void)=0
Restore default values.
virtual bool moveToAbsPos(char axis, double nRad)=0
Specification of positions in absolute terms.
virtual bool restoreFactoryDefaults(void)=0
Restore factory default values.
virtual bool init(const std::string &port)=0
PTU and serial port initialization.
virtual bool moveToOffPos(char axis, double nRad)=0
Specify desired axis position as an offset from the current position.
virtual void close()=0
Close Connection with serial port.
virtual bool maxPosQ(char axis, double &nRad)=0
Query max movement limit of a axis in absolute terms.
virtual bool minPosQ(char axis, double &nRad)=0
Query min movement limit of a axis in absolute terms.
virtual double status(double &rad)=0
Check if ptu is moving.
virtual bool powerMode(bool transit, char mode)=0
Specification of power mode.
virtual bool setLimits(char axis, double &l, double &u)=0
Set limits of movement.
virtual bool changeMotionDir()=0
virtual bool baseSpeedQ(char axis, double &RadSec)=0
Query velocity to which start and finish the (de/a)celeration.
virtual double radError(char axis, double nRadMoved)=0
To obtains the mistake for use discrete values when the movement is expressed in radians.
virtual int checkErrors()=0
Check errors, returns 0 if there are not errors or error code otherwise.
virtual bool radQuerry(char axis, char command, double &nRad)=0
Used to obtains a number of radians.
virtual bool acelerationQ(char axis, double &RadSec2)=0
Query (de/a)celeration in turn.
GLsizei const GLchar ** string
virtual void clearErrors()=0
Clear errors.
virtual bool reset(void)=0
Reset PTU to initial state.
virtual bool powerModeQ(bool transit, char &mode)=0
Query power mode.
virtual bool rangeMeasure()=0
Search limit forward.
virtual bool halt(char axis)=0
Inmediately stop.
virtual bool transmit(const char *command)=0
To transmition commands to the PTU.
virtual bool haltAll()=0
Inmediately stop all.
virtual bool speedQ(char axis, double &RadSec)=0
Query turn speed.
virtual bool offPosQ(char axis, double &nRad)=0
Query position in relative terms.
virtual double posToRad(char axis, long nPos)=0
To obtain the number of radians for a discrete value.
virtual bool enableLimitsQ(bool &enable)=0
Query if exist movement limits.
virtual long radToPos(char axis, double nRad)=0
To obtain the discrete value for a number of radians.
virtual bool receive(const char *command, char *response)=0
To receive the responseof the PTU.
virtual bool lowerSpeed(char axis, double RadSec)=0
Specification of velocity lower limit.
virtual void nversion(double &nVersion)=0
Number of version.
virtual bool baseSpeed(char axis, double RadSec)=0
Specification of velocity to which start and finish the (de/a)celeration.
virtual bool version(char *nVersion)=0
Version and CopyRights.
virtual bool radAsign(char axis, char command, double nRad)=0
Method used for asign a number of radians with a command.
virtual bool speed(char axis, double RadSec)=0
Specification of turn speed.
virtual bool echoModeQ(bool &mode)=0
Query echo mode.