TxtSmartFactoryLib  0.8.0
Smart Factory Library
ft::TxtPanTiltUnit Class Reference

#include <TxtPanTiltUnit.h>

Inheritance diagram for ft::TxtPanTiltUnit:
Collaboration diagram for ft::TxtPanTiltUnit:

Public Member Functions

 TxtPanTiltUnit (TxtTransfer *pT, uint8_t chPan=0, uint8_t chTilt=1)
 
virtual ~TxtPanTiltUnit ()
 
bool init ()
 
TxtPanTiltUnit_status_t getStatus ()
 
void setStepPan (uint16_t steps)
 
void setStepTilt (uint16_t steps)
 
uint16_t getStepPan ()
 
uint16_t getStepTilt ()
 
void setSpeedPan (int16_t speed)
 
void setSpeedTilt (int16_t speed)
 
int16_t getSpeedPan ()
 
int16_t getSpeedTilt ()
 
uint16_t getPosPan ()
 
uint16_t getPosTilt ()
 
float getPosPanRel ()
 
float getPosTiltRel ()
 
void stop ()
 
bool movePos (uint16_t pPan, uint16_t pTilt)
 
bool moveCenter ()
 
bool moveHBW ()
 
void moveHome ()
 
void movePan0 ()
 
void movePanCenter ()
 
void movePanEnd ()
 
void moveTilt0 ()
 
void moveTiltCenter ()
 
void moveTiltEnd ()
 
void moveStepPanLeft ()
 
void moveStepPanRight ()
 
void moveStepTiltUp ()
 
void moveStepTiltDown ()
 
- Public Member Functions inherited from ft::SubjectObserver
 SubjectObserver ()
 
virtual ~SubjectObserver ()
 
virtual void Attach (Observer *)
 
virtual void Detach (Observer *)
 
virtual void Notify ()
 

Protected Member Functions

void configInputs (uint8_t ch)
 
void setMotorsOff ()
 
void setMotorPanOff ()
 
void setMotorTiltOff ()
 
void moveLeft (uint8_t ch, uint16_t steps, int16_t speed, uint16_t *pPos, uint16_t posEnd)
 
void moveRight (uint8_t ch, uint16_t steps, int16_t speed, uint16_t *pPos, uint16_t posEnd)
 
void movePanLeft (uint16_t steps)
 
void movePanRight (uint16_t steps)
 
void moveTiltUp (uint16_t steps)
 
void moveTiltDown (uint16_t steps)
 
bool movePanPos (uint16_t pPan)
 
bool moveTiltPos (uint16_t pTilt)
 

Protected Attributes

TxtTransferpT
 
bool stopAllReq
 
TxtPanTiltUnit_status_t status
 
uint16_t posPan
 
uint16_t posTilt
 
int16_t speedPan
 
int16_t speedTilt
 
uint16_t stepsPan
 
uint16_t stepsTilt
 
uint8_t chPan
 
uint8_t chTilt
 
TxtPanTiltUnitCalibData calibData
 

Constructor & Destructor Documentation

ft::TxtPanTiltUnit::TxtPanTiltUnit ( TxtTransfer pT,
uint8_t  chPan = 0,
uint8_t  chTilt = 1 
)
virtual ft::TxtPanTiltUnit::~TxtPanTiltUnit ( )
virtual

Member Function Documentation

void ft::TxtPanTiltUnit::configInputs ( uint8_t  ch)
protected
uint16_t ft::TxtPanTiltUnit::getPosPan ( )
inline
float ft::TxtPanTiltUnit::getPosPanRel ( )
inline
uint16_t ft::TxtPanTiltUnit::getPosTilt ( )
inline
float ft::TxtPanTiltUnit::getPosTiltRel ( )
inline
int16_t ft::TxtPanTiltUnit::getSpeedPan ( )
inline
int16_t ft::TxtPanTiltUnit::getSpeedTilt ( )
inline
TxtPanTiltUnit_status_t ft::TxtPanTiltUnit::getStatus ( )
inline
uint16_t ft::TxtPanTiltUnit::getStepPan ( )
inline
uint16_t ft::TxtPanTiltUnit::getStepTilt ( )
inline
bool ft::TxtPanTiltUnit::init ( )
bool ft::TxtPanTiltUnit::moveCenter ( )
bool ft::TxtPanTiltUnit::moveHBW ( )
void ft::TxtPanTiltUnit::moveHome ( )
void ft::TxtPanTiltUnit::moveLeft ( uint8_t  ch,
uint16_t  steps,
int16_t  speed,
uint16_t *  pPos,
uint16_t  posEnd 
)
protected
void ft::TxtPanTiltUnit::movePan0 ( )
void ft::TxtPanTiltUnit::movePanCenter ( )
void ft::TxtPanTiltUnit::movePanEnd ( )
void ft::TxtPanTiltUnit::movePanLeft ( uint16_t  steps)
protected
bool ft::TxtPanTiltUnit::movePanPos ( uint16_t  pPan)
protected
void ft::TxtPanTiltUnit::movePanRight ( uint16_t  steps)
protected
bool ft::TxtPanTiltUnit::movePos ( uint16_t  pPan,
uint16_t  pTilt 
)
void ft::TxtPanTiltUnit::moveRight ( uint8_t  ch,
uint16_t  steps,
int16_t  speed,
uint16_t *  pPos,
uint16_t  posEnd 
)
protected
void ft::TxtPanTiltUnit::moveStepPanLeft ( )
void ft::TxtPanTiltUnit::moveStepPanRight ( )
void ft::TxtPanTiltUnit::moveStepTiltDown ( )
void ft::TxtPanTiltUnit::moveStepTiltUp ( )
void ft::TxtPanTiltUnit::moveTilt0 ( )
void ft::TxtPanTiltUnit::moveTiltCenter ( )
void ft::TxtPanTiltUnit::moveTiltDown ( uint16_t  steps)
protected
void ft::TxtPanTiltUnit::moveTiltEnd ( )
bool ft::TxtPanTiltUnit::moveTiltPos ( uint16_t  pTilt)
protected
void ft::TxtPanTiltUnit::moveTiltUp ( uint16_t  steps)
protected
void ft::TxtPanTiltUnit::setMotorPanOff ( )
protected
void ft::TxtPanTiltUnit::setMotorsOff ( )
protected
void ft::TxtPanTiltUnit::setMotorTiltOff ( )
protected
void ft::TxtPanTiltUnit::setSpeedPan ( int16_t  speed)
inline
void ft::TxtPanTiltUnit::setSpeedTilt ( int16_t  speed)
inline
void ft::TxtPanTiltUnit::setStepPan ( uint16_t  steps)
inline
void ft::TxtPanTiltUnit::setStepTilt ( uint16_t  steps)
inline
void ft::TxtPanTiltUnit::stop ( )

Member Data Documentation

TxtPanTiltUnitCalibData ft::TxtPanTiltUnit::calibData
protected
uint8_t ft::TxtPanTiltUnit::chPan
protected
uint8_t ft::TxtPanTiltUnit::chTilt
protected
uint16_t ft::TxtPanTiltUnit::posPan
protected
uint16_t ft::TxtPanTiltUnit::posTilt
protected
TxtTransfer* ft::TxtPanTiltUnit::pT
protected
int16_t ft::TxtPanTiltUnit::speedPan
protected
int16_t ft::TxtPanTiltUnit::speedTilt
protected
TxtPanTiltUnit_status_t ft::TxtPanTiltUnit::status
protected
uint16_t ft::TxtPanTiltUnit::stepsPan
protected
uint16_t ft::TxtPanTiltUnit::stepsTilt
protected
bool ft::TxtPanTiltUnit::stopAllReq
protected

The documentation for this class was generated from the following file: