45 bool absPosQ(
char axis,
double& nRad)
override;
64 bool offPosQ(
char axis,
double& nRad)
override;
68 bool maxPosQ(
char axis,
double& nRad)
override;
72 bool minPosQ(
char axis,
double& nRad)
override;
107 bool aWait()
override;
115 bool halt(
char axis)
override;
119 bool speed(
char axis,
double radSec)
override;
123 bool speedQ(
char axis,
double& radSec)
override;
127 bool aceleration(
char axis,
double radSec2)
override;
137 bool baseSpeed(
char axis,
double radSec)
override;
143 bool baseSpeedQ(
char axis,
double& radSec)
override;
147 bool upperSpeed(
char axis,
double radSec)
override;
151 bool upperSpeedQ(
char axis,
double& radSec)
override;
155 bool lowerSpeed(
char axis,
double radSec)
override;
159 bool lowerSpeedQ(
char axis,
double& radSec)
override;
163 bool reset()
override;
167 bool save()
override;
179 bool version(
char* nVersion)
override;
183 void nversion(
double& nVersion)
override;
187 bool powerModeQ(
bool transit,
char& mode)
override;
191 bool powerMode(
bool transit,
char mode)
override;
199 bool setLimits(
char axis,
double& l,
double& u)
override;
217 bool init(
const std::string& port)
override;
221 void close()
override;
228 double radError(
char axis,
double nRadMoved)
override;
232 long radToPos(
char axis,
double nRad)
override;
236 double posToRad(
char axis,
long nPos)
override;
246 bool scan(
char axis,
int wait,
float initial,
float final,
double radPre)
264 bool verbose(
bool set)
override;
289 double status(
double& rad)
override;
296 bool transmit(
const char* command)
override;
300 bool receive(
const char* command,
char* response)
override;
304 bool radQuerry(
char axis,
char command,
double& nRad)
override;
308 bool radAsign(
char axis,
char command,
double nRad)
override;
bool minPosQ(char axis, double &nRad) override
Query min movement limit of a axis in absolute terms.
bool echoModeQ(bool &mode) override
Query echo mode.
CTuMicos()=default
Default constructor.
bool halt(char axis) override
Inmediately stop.
bool baseSpeed(char axis, double radSec) override
Specification of velocity to which start and finish the (de/a)celeration.
bool upperSpeed(char axis, double radSec) override
Specification of velocity upper limit.
bool resolution() override
Query the pan and tilt resolution per position moved and initialize local atributes.
bool aWait() override
Wait the finish of the last position command to continue accept commands.
bool powerMode(bool transit, char mode) override
Specification of power mode.
bool version(char *nVersion) override
Version and CopyRights.
bool enableLimitsQ(bool &enable) override
Query if exist movement limits.
bool radQuerry(char axis, char command, double &nRad) override
Used to obtains a number of radians.
bool enableLimits(bool set) override
Enable/Disable movement limits.
This class implements initialization and communication methods to control a generic Pan and Tilt Unit...
Contains classes for various device interfaces.
bool absPosQ(char axis, double &nRad) override
Query position in absolute terms.
double status(double &rad) override
Check if ptu is moving.
bool setLimits(char axis, double &l, double &u) override
Set limits of movement.
bool clear()
Clear controller internal stack.
bool maxPosQ(char axis, double &nRad) override
Query max movement limit of a axis in absolute terms.
void clearErrors() override
Clear errors.
void nversion(double &nVersion) override
Number of version.
bool echoMode(bool mode) override
Enable/Disable echo response with command.
bool haltAll() override
Inmediately stop all.
bool receive(const char *command, char *response) override
To receive the responseof the PTU.
bool lowerSpeed(char axis, double radSec) override
Specification of velocity lower limit.
static double convertToDouble(char *sDouble)
Convert string to double.
bool moveToAbsPos(char axis, double nRad) override
Specification of positions in absolute terms.
bool save() override
Save or restart default values.
Versatile class for consistent logging and management of output messages.
bool verboseQ(bool &modo) override
Query verbose mode.
bool changeMotionDir() override
bool verbose(bool set) override
Set verbose.
This class implements initialization and communication methods to control a Tilt Unit model DT-80...
double posToRad(char axis, long nPos) override
To obtain the number of radians for a discrete value.
bool moveToOffPos(char axis, double nRad) override
Specify desired axis position as an offset from the current position.
~CTuMicos() override
Destructor.
long radToPos(char axis, double nRad) override
To obtain the discrete value for a number of radians.
bool baseSpeedQ(char axis, double &radSec) override
Query velocity to which start and finish the (de/a)celeration.
void close() override
Close Connection with serial port.
bool inmediateExecution(bool set) override
With I mode (default) instructs pan-tilt unit to immediately execute positional commands.
static long convertToLong(char *sLong)
Convert string to long.
bool aceleration(char axis, double radSec2) override
Specification (de/a)celeration in turn.
bool lowerSpeedQ(char axis, double &radSec) override
Query velocity lower limit.
bool radAsign(char axis, char command, double nRad) override
Method used for asign a number of radians with a command.
bool upperSpeedQ(char axis, double &radSec) override
Query velocity upper limit.
bool init(const std::string &port) override
PTU and serial port initialization.
bool reset() override
Reset PTU to initial state.
bool scan(char axis, int wait, float initial, float final, double radPre) override
Performs a scan in the axis indicated and whit the precision desired.
double radError(char axis, double nRadMoved) override
To obtains the mistake for use discrete values when the movement is expressed in radians.
bool speedQ(char axis, double &radSec) override
Query turn speed.
bool powerModeQ(bool transit, char &mode) override
Query power mode.
bool restoreDefaults() override
Restore default values.
bool transmit(const char *command) override
To transmition commands to the PTU.
bool restoreFactoryDefaults() override
Restore factory default values.
bool acelerationQ(char axis, double &radSec2) override
Query (de/a)celeration in turn.
int checkErrors() override
Check errors, returns 0 if there are not errors or error code otherwise.
bool rangeMeasure() override
Search limit forward.
bool speed(char axis, double radSec) override
Specification of turn speed.
bool offPosQ(char axis, double &nRad) override
Query position in relative terms.