TwiceAsNice
2019-02-18
|
#include <indirotatorinterface.h>
Public Types | |
enum | { ROTATOR_CAN_ABORT = 1 << 0, ROTATOR_CAN_HOME = 1 << 1, ROTATOR_CAN_SYNC = 1 << 2, ROTATOR_CAN_REVERSE = 1 << 3 } |
enum | { ROTATOR_CAN_ABORT = 1 << 0, ROTATOR_CAN_HOME = 1 << 1, ROTATOR_CAN_SYNC = 1 << 2, ROTATOR_CAN_REVERSE = 1 << 3 } |
Public Member Functions | |
uint32_t | GetCapability () const |
GetRotatorCapability returns the capability of the Rotator. More... | |
void | SetCapability (uint32_t cap) |
SetRotatorCapability sets the Rotator capabilities. More... | |
bool | CanAbort () |
bool | CanHome () |
bool | CanSync () |
bool | CanReverse () |
uint32_t | GetCapability () const |
GetRotatorCapability returns the capability of the Rotator. More... | |
void | SetCapability (uint32_t cap) |
SetRotatorCapability sets the Rotator capabilities. More... | |
bool | CanAbort () |
bool | CanHome () |
bool | CanSync () |
bool | CanReverse () |
Public Attributes | |
enum INDI::RotatorInterface:: { ... } | RotatorCapability |
enum INDI::RotatorInterface:: { ... } | RotatorCapability |
Protected Types | |
enum | { REVERSE_ENABLED, REVERSE_DISABLED } |
enum | { REVERSE_ENABLED, REVERSE_DISABLED } |
Protected Member Functions | |
RotatorInterface (DefaultDevice *defaultDevice) | |
void | initProperties (const char *groupName) |
Initilize Rotator properties. More... | |
bool | updateProperties () |
updateProperties Define or Delete Rotator properties based on the connection status of the base device More... | |
bool | processNumber (const char *dev, const char *name, double values[], char *names[], int n) |
Process Rotator number properties. More... | |
bool | processSwitch (const char *dev, const char *name, ISState *states, char *names[], int n) |
Process Rotator switch properties. More... | |
virtual IPState | MoveRotator (double angle)=0 |
MoveRotator Go to specific angle. More... | |
virtual bool | SyncRotator (double angle) |
SyncRotator Set current angle as the supplied angle without moving the rotator. More... | |
virtual IPState | HomeRotator () |
HomeRotator Go to home position. More... | |
virtual bool | ReverseRotator (bool enabled) |
ReverseRotator Reverse the direction of the rotator. More... | |
virtual bool | AbortRotator () |
AbortRotator Abort all motion. More... | |
RotatorInterface (DefaultDevice *defaultDevice) | |
void | initProperties (const char *groupName) |
Initilize Rotator properties. More... | |
bool | updateProperties () |
updateProperties Define or Delete Rotator properties based on the connection status of the base device More... | |
bool | processNumber (const char *dev, const char *name, double values[], char *names[], int n) |
Process Rotator number properties. More... | |
bool | processSwitch (const char *dev, const char *name, ISState *states, char *names[], int n) |
Process Rotator switch properties. More... | |
virtual IPState | MoveRotator (double angle)=0 |
MoveRotator Go to specific angle. More... | |
virtual bool | SyncRotator (double angle) |
SyncRotator Set current angle as the supplied angle without moving the rotator. More... | |
virtual IPState | HomeRotator () |
HomeRotator Go to home position. More... | |
virtual bool | ReverseRotator (bool enabled) |
ReverseRotator Reverse the direction of the rotator. More... | |
virtual bool | AbortRotator () |
AbortRotator Abort all motion. More... | |
Protected Attributes | |
INumber | GotoRotatorN [1] |
INumberVectorProperty | GotoRotatorNP |
INumber | SyncRotatorN [1] |
INumberVectorProperty | SyncRotatorNP |
ISwitch | AbortRotatorS [1] |
ISwitchVectorProperty | AbortRotatorSP |
ISwitch | HomeRotatorS [1] |
ISwitchVectorProperty | HomeRotatorSP |
ISwitch | ReverseRotatorS [2] |
ISwitchVectorProperty | ReverseRotatorSP |
uint32_t | rotatorCapability = 0 |
DefaultDevice * | m_defaultDevice { nullptr } |
anonymous enum |
anonymous enum |
|
explicitprotected |
|
explicitprotected |
|
protectedvirtual |
AbortRotator Abort all motion.
Reimplemented in Integra, and NightCrawler.
|
protectedvirtual |
AbortRotator Abort all motion.
Reimplemented in Integra, and NightCrawler.
|
inline |
|
inline |
|
inline |
GetRotatorCapability returns the capability of the Rotator.
|
inline |
GetRotatorCapability returns the capability of the Rotator.
|
protectedvirtual |
HomeRotator Go to home position.
Reimplemented in Gemini, NightCrawler, and Pyxis.
|
protectedvirtual |
HomeRotator Go to home position.
Reimplemented in Gemini, NightCrawler, and Pyxis.
|
protected |
Initilize Rotator properties.
It is recommended to call this function within initProperties() of your primary device
|
protected |
Initilize Rotator properties.
It is recommended to call this function within initProperties() of your primary device
|
protectedpure virtual |
MoveRotator Go to specific angle.
angle | Target angle in degrees. |
Implemented in Gemini, Integra, NightCrawler, and Pyxis.
|
protectedpure virtual |
MoveRotator Go to specific angle.
angle | Target angle in degrees. |
Implemented in Gemini, Integra, NightCrawler, and Pyxis.
|
protected |
Process Rotator number properties.
|
protected |
Process Rotator number properties.
|
protected |
Process Rotator switch properties.
|
protected |
Process Rotator switch properties.
|
inline |
|
inline |
|
protectedvirtual |
SyncRotator Set current angle as the supplied angle without moving the rotator.
ticks | Desired new angle. |
Reimplemented in Integra, and NightCrawler.
|
protectedvirtual |
SyncRotator Set current angle as the supplied angle without moving the rotator.
ticks | Desired new angle. |
Reimplemented in Integra, and NightCrawler.
|
protected |
updateProperties Define or Delete Rotator properties based on the connection status of the base device
|
protected |
updateProperties Define or Delete Rotator properties based on the connection status of the base device
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
enum { ... } INDI::RotatorInterface::RotatorCapability |
enum { ... } INDI::RotatorInterface::RotatorCapability |
|
protected |
|
protected |
|
protected |