![]() |
Scanframe Modular Application 0.1.0
|
Axis type of this implementation. More...
#include <GmiEmulator.h>
Public Types | |
typedef Axis | TInherited |
![]() | |
typedef TVector< Axis * > | PtrVector |
Easy to use vector for an array of Axis pointers. | |
Public Member Functions | |
TAxis (GmiEmulator *me, EAxisLocation al) | |
Constructor. | |
~TAxis () override | |
Destructor. | |
void | DoMovePos (EMovePosCmd mpc) |
void | DoMoveVel (EMoveVelCmd mvc) |
void | DoMoveCon (EMoveConCmd mcc) |
bool | IsMovePosComplete (timespec clk) |
bool | IsMoveVelComplete (timespec clk) |
bool | IsMoveConComplete (timespec clk) |
![]() | |
EAxisLocation | getLocation () const |
Returns the location of the axis in the constellation of axes. | |
AxisMovements | getMovements () const |
Returns the possible movements the is instance can make. | |
const char * | getName () const |
Returns the name of this instance. | |
const char * | getDescription () const |
Returns the description of this instance. | |
double | getCurrent (EAxisValueType avt) const |
Returns the current position/velocity/acceleration. | |
bool | setCurrent (EAxisValueType avt, double val) |
Sets the current position/velocity/acceleration. Only when not moving. | |
double | getAccuracy () const |
Returns the accuracy for velocity and position. | |
double | getResolution () const |
Returns the resolution of the axis. | |
double | getMinMax (EAxisMinMax amm) const |
Gets the current extremes from this axis. | |
bool | setOffset (double ofs) |
Set the position offset. | |
double | setOffset () const |
Get the position offset. | |
double | getTarget (EAxisValueType avt) const |
Returns the current velocity. | |
bool | setTarget (EAxisValueType avt, double val) |
Sets the current velocity. | |
bool | setPosition (double value) |
Sets the current position. | |
double | normalized (double pos) const |
normalize the passed position for all unlimited rotation axes. Uses accuracy to find the actual position to normalize. The passed value is also returned. | |
bool | setMode (EAxisMode mode) |
Sets the axis mode for operation. Returns false on failure. | |
EAxisMode | getMode () const |
Returns the mode of operation. | |
bool | canModeChange (EAxisMode cur_mode, EAxisMode new_mode, bool pos_cmplt, bool vel_cmplt, bool con_cmplt) |
Returns true if the mode can be changed. | |
Public Attributes | |
sf::ElapseTimer | MovePosTimer |
sf::ElapseTimer | MoveVelTimer |
sf::ElapseTimer | MoveConTimer |
double | TrgPos |
double | TrgVel |
double | TrgAcc |
double | TrgDist |
double | TrgDist2 |
double | StartVel |
double | CurPos |
double | CurVel |
double | OfsPos |
double | MaxPos |
double | MaxVel |
double | MaxAcc |
double | MinPos |
double | Accuracy |
double | Resolution |
double | Round |
EAxisMode | Mode |
GmiEmulator * | _Controller |
friend | GmiEmulator |
Additional Inherited Members | |
![]() | |
Axis (Controller *mc, EAxisLocation) | |
Constructor that registers itself at the passed controller. | |
virtual | ~Axis () |
Virtual destructor for possible derived destructors. | |
![]() | |
AxisMovements | _movements |
Holds the possible movements. | |
Axis type of this implementation.
sf::GmiEmulator::TAxis::TAxis | ( | GmiEmulator * | me, |
EAxisLocation | al | ||
) |
Constructor.
me | |
al |
|
override |
Destructor.
void sf::GmiEmulator::TAxis::DoMoveCon | ( | EMoveConCmd | mcc | ) |
void sf::GmiEmulator::TAxis::DoMovePos | ( | EMovePosCmd | mpc | ) |
void sf::GmiEmulator::TAxis::DoMoveVel | ( | EMoveVelCmd | mvc | ) |
bool sf::GmiEmulator::TAxis::IsMoveConComplete | ( | timespec | clk | ) |
bool sf::GmiEmulator::TAxis::IsMovePosComplete | ( | timespec | clk | ) |
bool sf::GmiEmulator::TAxis::IsMoveVelComplete | ( | timespec | clk | ) |
GmiEmulator* sf::GmiEmulator::TAxis::_Controller |
double sf::GmiEmulator::TAxis::Accuracy |
double sf::GmiEmulator::TAxis::CurPos |
double sf::GmiEmulator::TAxis::CurVel |
friend sf::GmiEmulator::TAxis::GmiEmulator |
double sf::GmiEmulator::TAxis::MaxAcc |
double sf::GmiEmulator::TAxis::MaxPos |
double sf::GmiEmulator::TAxis::MaxVel |
double sf::GmiEmulator::TAxis::MinPos |
EAxisMode sf::GmiEmulator::TAxis::Mode |
sf::ElapseTimer sf::GmiEmulator::TAxis::MoveConTimer |
sf::ElapseTimer sf::GmiEmulator::TAxis::MovePosTimer |
sf::ElapseTimer sf::GmiEmulator::TAxis::MoveVelTimer |
double sf::GmiEmulator::TAxis::OfsPos |
double sf::GmiEmulator::TAxis::Resolution |
double sf::GmiEmulator::TAxis::Round |
double sf::GmiEmulator::TAxis::StartVel |
double sf::GmiEmulator::TAxis::TrgAcc |
double sf::GmiEmulator::TAxis::TrgDist |
double sf::GmiEmulator::TAxis::TrgDist2 |
double sf::GmiEmulator::TAxis::TrgPos |
double sf::GmiEmulator::TAxis::TrgVel |