TwiceAsNice
2019-02-18
|
#include <inditelescope.h>
Public Member Functions | |
Telescope () | |
virtual | ~Telescope () |
virtual bool | ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n) |
Process the client newNumber command. More... | |
virtual bool | ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n) |
Process the client newSwitch command. More... | |
virtual bool | ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n) |
Process the client newSwitch command. More... | |
virtual void | ISGetProperties (const char *dev) |
define the driver's properties to the client. More... | |
virtual bool | ISSnoopDevice (XMLEle *root) |
Process a snoop event from INDI server. More... | |
uint32_t | GetTelescopeCapability () const |
GetTelescopeCapability returns the capability of the Telescope. More... | |
void | SetTelescopeCapability (uint32_t cap, uint8_t slewRateCount=0) |
SetTelescopeCapability sets the Telescope capabilities. More... | |
bool | CanGOTO () |
bool | CanSync () |
bool | CanAbort () |
bool | CanPark () |
bool | CanControlTrack () |
bool | HasTime () |
bool | HasLocation () |
bool | HasPierSide () |
bool | HasPECState () |
bool | HasTrackMode () |
bool | HasTrackRate () |
virtual bool | initProperties () |
Called to initialize basic properties required all the time. More... | |
virtual bool | updateProperties () |
Called when connected state changes, to add/remove properties. More... | |
virtual bool | Handshake () |
perform handshake with device to check communication More... | |
virtual void | TimerHit () |
Called when setTimer() time is up. More... | |
void | SetParkDataType (TelescopeParkData type) |
setParkDataType Sets the type of parking data stored in the park data file and presented to the user. More... | |
bool | InitPark () |
InitPark Loads parking data (stored in ~/.indi/ParkData.xml) that contains parking status and parking position. More... | |
bool | isParked () |
isParked is mount currently parked? More... | |
void | SetParked (bool isparked) |
SetParked Change the mount parking status. More... | |
double | GetAxis1Park () const |
double | GetAxis1ParkDefault () const |
double | GetAxis2Park () const |
double | GetAxis2ParkDefault () const |
void | SetAxis1Park (double value) |
SetRAPark Set current RA/AZ parking position. More... | |
void | SetAxis1ParkDefault (double steps) |
SetRAPark Set default RA/AZ parking position. More... | |
void | SetAxis2Park (double steps) |
SetDEPark Set current DEC/ALT parking position. More... | |
void | SetAxis2ParkDefault (double steps) |
SetDEParkDefault Set default DEC/ALT parking position. More... | |
bool | isLocked () const |
isLocked is mount currently locked? More... | |
void | setTelescopeConnection (const uint8_t &value) |
setTelescopeConnection Set telescope connection mode. More... | |
uint8_t | getTelescopeConnection () const |
void | setPierSide (TelescopePierSide side) |
TelescopePierSide | getPierSide () |
void | setPECState (TelescopePECState state) |
TelescopePECState | getPECState () |
Telescope () | |
virtual | ~Telescope () |
virtual bool | ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n) |
Process the client newNumber command. More... | |
virtual bool | ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n) |
Process the client newSwitch command. More... | |
virtual bool | ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n) |
Process the client newSwitch command. More... | |
virtual void | ISGetProperties (const char *dev) |
define the driver's properties to the client. More... | |
virtual bool | ISSnoopDevice (XMLEle *root) |
Process a snoop event from INDI server. More... | |
uint32_t | GetTelescopeCapability () const |
GetTelescopeCapability returns the capability of the Telescope. More... | |
void | SetTelescopeCapability (uint32_t cap, uint8_t slewRateCount=0) |
SetTelescopeCapability sets the Telescope capabilities. More... | |
bool | CanGOTO () |
bool | CanSync () |
bool | CanAbort () |
bool | CanPark () |
bool | CanControlTrack () |
bool | HasTime () |
bool | HasLocation () |
bool | HasPierSide () |
bool | HasPECState () |
bool | HasTrackMode () |
bool | HasTrackRate () |
virtual bool | initProperties () |
Called to initialize basic properties required all the time. More... | |
virtual bool | updateProperties () |
Called when connected state changes, to add/remove properties. More... | |
virtual bool | Handshake () |
perform handshake with device to check communication More... | |
virtual void | TimerHit () |
Called when setTimer() time is up. More... | |
void | SetParkDataType (TelescopeParkData type) |
setParkDataType Sets the type of parking data stored in the park data file and presented to the user. More... | |
bool | InitPark () |
InitPark Loads parking data (stored in ~/.indi/ParkData.xml) that contains parking status and parking position. More... | |
bool | isParked () |
isParked is mount currently parked? More... | |
void | SetParked (bool isparked) |
SetParked Change the mount parking status. More... | |
double | GetAxis1Park () const |
double | GetAxis1ParkDefault () const |
double | GetAxis2Park () const |
double | GetAxis2ParkDefault () const |
void | SetAxis1Park (double value) |
SetRAPark Set current RA/AZ parking position. More... | |
void | SetAxis1ParkDefault (double steps) |
SetRAPark Set default RA/AZ parking position. More... | |
void | SetAxis2Park (double steps) |
SetDEPark Set current DEC/ALT parking position. More... | |
void | SetAxis2ParkDefault (double steps) |
SetDEParkDefault Set default DEC/ALT parking position. More... | |
bool | isLocked () const |
isLocked is mount currently locked? More... | |
void | setTelescopeConnection (const uint8_t &value) |
setTelescopeConnection Set telescope connection mode. More... | |
uint8_t | getTelescopeConnection () const |
void | setPierSide (TelescopePierSide side) |
TelescopePierSide | getPierSide () |
void | setPECState (TelescopePECState state) |
TelescopePECState | getPECState () |
![]() | |
DefaultDevice () | |
virtual | ~DefaultDevice () |
void | addAuxControls () |
Add Debug, Simulation, and Configuration options to the driver. More... | |
void | addDebugControl () |
Add Debug control to the driver. More... | |
void | addSimulationControl () |
Add Simulation control to the driver. More... | |
void | addConfigurationControl () |
Add Configuration control to the driver. More... | |
void | addPollPeriodControl () |
Add Polling period control to the driver. More... | |
void | resetProperties () |
Set all properties to IDLE state. More... | |
void | defineNumber (INumberVectorProperty *nvp) |
Define number vector to client & register it. More... | |
void | defineText (ITextVectorProperty *tvp) |
Define text vector to client & register it. More... | |
void | defineSwitch (ISwitchVectorProperty *svp) |
Define switch vector to client & register it. More... | |
void | defineLight (ILightVectorProperty *lvp) |
Define light vector to client & register it. More... | |
void | defineBLOB (IBLOBVectorProperty *bvp) |
Define BLOB vector to client & register it. More... | |
virtual bool | deleteProperty (const char *propertyName) |
Delete a property and unregister it. More... | |
virtual void | setConnected (bool status, IPState state=IPS_OK, const char *msg=nullptr) |
Set connection switch status in the client. More... | |
int | SetTimer (uint32_t ms) |
Set a timer to call the function TimerHit after ms milliseconds. More... | |
void | RemoveTimer (int id) |
Remove timer added with SetTimer. More... | |
virtual const char * | getDriverExec () |
virtual const char * | getDriverName () |
void | setVersion (uint16_t vMajor, uint16_t vMinor) |
Set driver version information to be defined in DRIVER_INFO property as vMajor.vMinor. More... | |
uint16_t | getMajorVersion () |
uint16_t | getMinorVersion () |
virtual bool | ISNewBLOB (const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n) |
Process the client newBLOB command. More... | |
virtual uint16_t | getDriverInterface () |
void | setDriverInterface (uint16_t value) |
setInterface Set driver interface. More... | |
DefaultDevice () | |
virtual | ~DefaultDevice () |
void | addAuxControls () |
Add Debug, Simulation, and Configuration options to the driver. More... | |
void | addDebugControl () |
Add Debug control to the driver. More... | |
void | addSimulationControl () |
Add Simulation control to the driver. More... | |
void | addConfigurationControl () |
Add Configuration control to the driver. More... | |
void | addPollPeriodControl () |
Add Polling period control to the driver. More... | |
void | resetProperties () |
Set all properties to IDLE state. More... | |
void | defineNumber (INumberVectorProperty *nvp) |
Define number vector to client & register it. More... | |
void | defineText (ITextVectorProperty *tvp) |
Define text vector to client & register it. More... | |
void | defineSwitch (ISwitchVectorProperty *svp) |
Define switch vector to client & register it. More... | |
void | defineLight (ILightVectorProperty *lvp) |
Define light vector to client & register it. More... | |
void | defineBLOB (IBLOBVectorProperty *bvp) |
Define BLOB vector to client & register it. More... | |
virtual bool | deleteProperty (const char *propertyName) |
Delete a property and unregister it. More... | |
virtual void | setConnected (bool status, IPState state=IPS_OK, const char *msg=nullptr) |
Set connection switch status in the client. More... | |
int | SetTimer (uint32_t ms) |
Set a timer to call the function TimerHit after ms milliseconds. More... | |
void | RemoveTimer (int id) |
Remove timer added with SetTimer. More... | |
virtual const char * | getDriverExec () |
virtual const char * | getDriverName () |
void | setVersion (uint16_t vMajor, uint16_t vMinor) |
Set driver version information to be defined in DRIVER_INFO property as vMajor.vMinor. More... | |
uint16_t | getMajorVersion () |
uint16_t | getMinorVersion () |
virtual bool | ISNewBLOB (const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n) |
Process the client newBLOB command. More... | |
virtual uint16_t | getDriverInterface () |
void | setDriverInterface (uint16_t value) |
setInterface Set driver interface. More... | |
![]() | |
BaseDevice () | |
virtual | ~BaseDevice () |
INumberVectorProperty * | getNumber (const char *name) |
ITextVectorProperty * | getText (const char *name) |
ISwitchVectorProperty * | getSwitch (const char *name) |
ILightVectorProperty * | getLight (const char *name) |
IBLOBVectorProperty * | getBLOB (const char *name) |
IPState | getPropertyState (const char *name) |
IPerm | getPropertyPermission (const char *name) |
void | registerProperty (void *p, INDI_PROPERTY_TYPE type) |
int | removeProperty (const char *name, char *errmsg) |
Remove a property. More... | |
void * | getRawProperty (const char *name, INDI_PROPERTY_TYPE type=INDI_UNKNOWN) |
Return a property and its type given its name. More... | |
INDI::Property * | getProperty (const char *name, INDI_PROPERTY_TYPE type=INDI_UNKNOWN) |
Return a property and its type given its name. More... | |
std::vector< INDI::Property * > * | getProperties () |
Return a list of all properties in the device. More... | |
bool | buildSkeleton (const char *filename) |
Build driver properties from a skeleton file. More... | |
bool | isConnected () |
void | setDeviceName (const char *dev) |
Set the device name. More... | |
const char * | getDeviceName () |
void | addMessage (const std::string &msg) |
Add message to the driver's message queue. More... | |
void | checkMessage (XMLEle *root) |
void | doMessage (XMLEle *msg) |
std::string | messageQueue (int index) const |
std::string | lastMessage () |
void | setMediator (INDI::BaseMediator *med) |
Set the driver's mediator to receive notification of news devices and updated property values. More... | |
INDI::BaseMediator * | getMediator () |
const char * | getDriverName () |
const char * | getDriverExec () |
const char * | getDriverVersion () |
BaseDevice () | |
virtual | ~BaseDevice () |
INumberVectorProperty * | getNumber (const char *name) |
ITextVectorProperty * | getText (const char *name) |
ISwitchVectorProperty * | getSwitch (const char *name) |
ILightVectorProperty * | getLight (const char *name) |
IBLOBVectorProperty * | getBLOB (const char *name) |
IPState | getPropertyState (const char *name) |
IPerm | getPropertyPermission (const char *name) |
void | registerProperty (void *p, INDI_PROPERTY_TYPE type) |
int | removeProperty (const char *name, char *errmsg) |
Remove a property. More... | |
void * | getRawProperty (const char *name, INDI_PROPERTY_TYPE type=INDI_UNKNOWN) |
Return a property and its type given its name. More... | |
INDI::Property * | getProperty (const char *name, INDI_PROPERTY_TYPE type=INDI_UNKNOWN) |
Return a property and its type given its name. More... | |
std::vector< INDI::Property * > * | getProperties () |
Return a list of all properties in the device. More... | |
bool | buildSkeleton (const char *filename) |
Build driver properties from a skeleton file. More... | |
bool | isConnected () |
void | setDeviceName (const char *dev) |
Set the device name. More... | |
const char * | getDeviceName () |
void | addMessage (const std::string &msg) |
Add message to the driver's message queue. More... | |
void | checkMessage (XMLEle *root) |
void | doMessage (XMLEle *msg) |
std::string | messageQueue (int index) const |
std::string | lastMessage () |
void | setMediator (INDI::BaseMediator *med) |
Set the driver's mediator to receive notification of news devices and updated property values. More... | |
INDI::BaseMediator * | getMediator () |
const char * | getDriverName () |
const char * | getDriverExec () |
const char * | getDriverVersion () |
Static Public Member Functions | |
static void | joystickHelper (const char *joystick_n, double mag, double angle, void *context) |
static void | buttonHelper (const char *button_n, ISState state, void *context) |
static void | joystickHelper (const char *joystick_n, double mag, double angle, void *context) |
static void | buttonHelper (const char *button_n, ISState state, void *context) |
Public Attributes | |
enum INDI::Telescope:: { ... } | TelescopeConnection |
enum INDI::Telescope:: { ... } | TelescopeCapability |
enum INDI::Telescope:: { ... } | TelescopeConnection |
enum INDI::Telescope:: { ... } | TelescopeCapability |
Protected Types | |
enum | { SCOPE_CONFIG1, SCOPE_CONFIG2, SCOPE_CONFIG3, SCOPE_CONFIG4, SCOPE_CONFIG5, SCOPE_CONFIG6 } |
enum | { SCOPE_CONFIG1, SCOPE_CONFIG2, SCOPE_CONFIG3, SCOPE_CONFIG4, SCOPE_CONFIG5, SCOPE_CONFIG6 } |
Protected Member Functions | |
virtual bool | saveConfigItems (FILE *fp) |
saveConfigItems Save specific properties in the provide config file handler. More... | |
void | NewRaDec (double ra, double dec) |
The child class calls this function when it has updates. More... | |
virtual bool | ReadScopeStatus ()=0 |
Read telescope status. More... | |
virtual bool | Goto (double ra, double dec) |
Move the scope to the supplied RA and DEC coordinates. More... | |
virtual bool | Sync (double ra, double dec) |
Set the telescope current RA and DEC coordinates to the supplied RA and DEC coordinates. More... | |
virtual bool | MoveNS (INDI_DIR_NS dir, TelescopeMotionCommand command) |
Start or Stop the telescope motion in the direction dir. More... | |
virtual bool | MoveWE (INDI_DIR_WE dir, TelescopeMotionCommand command) |
Move the telescope in the direction dir. More... | |
virtual bool | Park () |
Park the telescope to its home position. More... | |
virtual bool | UnPark () |
Unpark the telescope if already parked. More... | |
virtual bool | Abort () |
Abort any telescope motion including tracking if possible. More... | |
virtual bool | SetTrackMode (uint8_t mode) |
SetTrackMode Set active tracking mode. More... | |
virtual bool | SetTrackRate (double raRate, double deRate) |
SetTrackRate Set custom tracking rates. More... | |
virtual int | AddTrackMode (const char *name, const char *label, bool isDefault=false) |
AddTrackMode. More... | |
virtual bool | SetTrackEnabled (bool enabled) |
SetTrackEnabled Engages or disengages mount tracking. More... | |
virtual bool | updateTime (ln_date *utc, double utc_offset) |
Update telescope time, date, and UTC offset. More... | |
virtual bool | updateLocation (double latitude, double longitude, double elevation) |
Update telescope location settings. More... | |
virtual bool | SetParkPosition (double Axis1Value, double Axis2Value) |
SetParkPosition Set desired parking position to the supplied value. More... | |
virtual bool | SetCurrentPark () |
SetCurrentPark Set current coordinates/encoders value as the desired parking position. More... | |
virtual bool | SetDefaultPark () |
SetDefaultPark Set default coordinates/encoders value as the desired parking position. More... | |
virtual bool | SetSlewRate (int index) |
SetSlewRate Set desired slew rate index. More... | |
bool | callHandshake () |
callHandshake Helper function that sets the port file descriptor before calling the actual Handshake function implenented in drivers More... | |
void | processNSWE (double mag, double angle) |
void | processJoystick (const char *joystick_n, double mag, double angle) |
void | processSlewPresets (double mag, double angle) |
void | processButton (const char *button_n, ISState state) |
bool | LoadScopeConfig () |
Load scope settings from XML files. More... | |
bool | HasDefaultScopeConfig () |
Load scope settings from XML files. More... | |
bool | UpdateScopeConfig () |
Save scope settings to XML files. More... | |
std::string | GetHomeDirectory () const |
Validate a file name. More... | |
int | GetScopeConfigIndex () const |
Get the scope config index. More... | |
bool | CheckFile (const std::string &file_name, bool writable) const |
Check if a file exists and it is readable. More... | |
void | sendTimeFromSystem () |
char * | LoadParkData () |
bool | WriteParkData () |
virtual bool | saveConfigItems (FILE *fp) |
saveConfigItems Save specific properties in the provide config file handler. More... | |
void | NewRaDec (double ra, double dec) |
The child class calls this function when it has updates. More... | |
virtual bool | ReadScopeStatus ()=0 |
Read telescope status. More... | |
virtual bool | Goto (double ra, double dec) |
Move the scope to the supplied RA and DEC coordinates. More... | |
virtual bool | Sync (double ra, double dec) |
Set the telescope current RA and DEC coordinates to the supplied RA and DEC coordinates. More... | |
virtual bool | MoveNS (INDI_DIR_NS dir, TelescopeMotionCommand command) |
Start or Stop the telescope motion in the direction dir. More... | |
virtual bool | MoveWE (INDI_DIR_WE dir, TelescopeMotionCommand command) |
Move the telescope in the direction dir. More... | |
virtual bool | Park () |
Park the telescope to its home position. More... | |
virtual bool | UnPark () |
Unpark the telescope if already parked. More... | |
virtual bool | Abort () |
Abort any telescope motion including tracking if possible. More... | |
virtual bool | SetTrackMode (uint8_t mode) |
SetTrackMode Set active tracking mode. More... | |
virtual bool | SetTrackRate (double raRate, double deRate) |
SetTrackRate Set custom tracking rates. More... | |
virtual int | AddTrackMode (const char *name, const char *label, bool isDefault=false) |
AddTrackMode. More... | |
virtual bool | SetTrackEnabled (bool enabled) |
SetTrackEnabled Engages or disengages mount tracking. More... | |
virtual bool | updateTime (ln_date *utc, double utc_offset) |
Update telescope time, date, and UTC offset. More... | |
virtual bool | updateLocation (double latitude, double longitude, double elevation) |
Update telescope location settings. More... | |
virtual bool | SetParkPosition (double Axis1Value, double Axis2Value) |
SetParkPosition Set desired parking position to the supplied value. More... | |
virtual bool | SetCurrentPark () |
SetCurrentPark Set current coordinates/encoders value as the desired parking position. More... | |
virtual bool | SetDefaultPark () |
SetDefaultPark Set default coordinates/encoders value as the desired parking position. More... | |
virtual bool | SetSlewRate (int index) |
SetSlewRate Set desired slew rate index. More... | |
bool | callHandshake () |
callHandshake Helper function that sets the port file descriptor before calling the actual Handshake function implenented in drivers More... | |
void | processNSWE (double mag, double angle) |
void | processJoystick (const char *joystick_n, double mag, double angle) |
void | processSlewPresets (double mag, double angle) |
void | processButton (const char *button_n, ISState state) |
bool | LoadScopeConfig () |
Load scope settings from XML files. More... | |
bool | HasDefaultScopeConfig () |
Load scope settings from XML files. More... | |
bool | UpdateScopeConfig () |
Save scope settings to XML files. More... | |
std::string | GetHomeDirectory () const |
Validate a file name. More... | |
int | GetScopeConfigIndex () const |
Get the scope config index. More... | |
bool | CheckFile (const std::string &file_name, bool writable) const |
Check if a file exists and it is readable. More... | |
void | sendTimeFromSystem () |
char * | LoadParkData () |
bool | WriteParkData () |
![]() | |
void | setDynamicPropertiesBehavior (bool defineEnabled, bool deleteEnabled) |
setDynamicPropertiesBehavior controls handling of dynamic properties. More... | |
virtual bool | loadConfig (bool silent=false, const char *property=nullptr) |
Load the last saved configuration file. More... | |
virtual bool | saveConfig (bool silent=false, const char *property=nullptr) |
Save the current properties in a configuration file. More... | |
virtual bool | saveAllConfigItems (FILE *fp) |
saveAllConfigItems Save all the drivers' properties in the configuration file More... | |
virtual bool | loadDefaultConfig () |
Load the default configuration file. More... | |
void | setDebug (bool enable) |
Toggle driver debug status A driver can be more verbose if Debug option is enabled by the client. More... | |
void | setSimulation (bool enable) |
Toggle driver simulation status A driver can run in simulation mode if Simulation option is enabled by the client. More... | |
virtual void | debugTriggered (bool enable) |
Inform driver that the debug option was triggered. More... | |
virtual void | simulationTriggered (bool enable) |
Inform driver that the simulation option was triggered. More... | |
bool | isDebug () |
bool | isSimulation () |
virtual bool | Connect () |
Connect to the device. More... | |
virtual bool | Disconnect () |
Disconnect from device. More... | |
void | registerConnection (Connection::Interface *newConnection) |
registerConnection Add new connection plugin to the existing connection pool. More... | |
bool | unRegisterConnection (Connection::Interface *existingConnection) |
unRegisterConnection Remove connection from existing pool More... | |
Connection::Interface * | getActiveConnection () |
void | setDefaultPollingPeriod (uint32_t period) |
uint32_t | getPollingPeriod () |
virtual const char * | getDefaultName ()=0 |
void | setDynamicPropertiesBehavior (bool defineEnabled, bool deleteEnabled) |
setDynamicPropertiesBehavior controls handling of dynamic properties. More... | |
virtual bool | loadConfig (bool silent=false, const char *property=nullptr) |
Load the last saved configuration file. More... | |
virtual bool | saveConfig (bool silent=false, const char *property=nullptr) |
Save the current properties in a configuration file. More... | |
virtual bool | saveAllConfigItems (FILE *fp) |
saveAllConfigItems Save all the drivers' properties in the configuration file More... | |
virtual bool | loadDefaultConfig () |
Load the default configuration file. More... | |
void | setDebug (bool enable) |
Toggle driver debug status A driver can be more verbose if Debug option is enabled by the client. More... | |
void | setSimulation (bool enable) |
Toggle driver simulation status A driver can run in simulation mode if Simulation option is enabled by the client. More... | |
virtual void | debugTriggered (bool enable) |
Inform driver that the debug option was triggered. More... | |
virtual void | simulationTriggered (bool enable) |
Inform driver that the simulation option was triggered. More... | |
bool | isDebug () |
bool | isSimulation () |
virtual bool | Connect () |
Connect to the device. More... | |
virtual bool | Disconnect () |
Disconnect from device. More... | |
void | registerConnection (Connection::Interface *newConnection) |
registerConnection Add new connection plugin to the existing connection pool. More... | |
bool | unRegisterConnection (Connection::Interface *existingConnection) |
unRegisterConnection Remove connection from existing pool More... | |
Connection::Interface * | getActiveConnection () |
void | setDefaultPollingPeriod (uint32_t period) |
uint32_t | getPollingPeriod () |
virtual const char * | getDefaultName ()=0 |
![]() | |
int | buildProp (XMLEle *root, char *errmsg) |
Build a property given the supplied XML element (defXXX) More... | |
int | setValue (XMLEle *root, char *errmsg) |
handle SetXXX commands from client More... | |
int | setBLOB (IBLOBVectorProperty *pp, XMLEle *root, char *errmsg) |
Parse and store BLOB in the respective vector. More... | |
int | buildProp (XMLEle *root, char *errmsg) |
Build a property given the supplied XML element (defXXX) More... | |
int | setValue (XMLEle *root, char *errmsg) |
handle SetXXX commands from client More... | |
int | setBLOB (IBLOBVectorProperty *pp, XMLEle *root, char *errmsg) |
Parse and store BLOB in the respective vector. More... | |
Private Member Functions | |
bool | processTimeInfo (const char *utc, const char *offset) |
bool | processLocationInfo (double latitude, double longitude, double elevation) |
void | triggerSnoop (const char *driverName, const char *propertyName) |
bool | processTimeInfo (const char *utc, const char *offset) |
bool | processLocationInfo (double latitude, double longitude, double elevation) |
void | triggerSnoop (const char *driverName, const char *propertyName) |
Private Attributes | |
TelescopeParkData | parkDataType |
bool | IsLocked |
bool | IsParked |
const char * | ParkDeviceName |
const std::string | ParkDataFileName |
XMLEle * | ParkdataXmlRoot |
XMLEle * | ParkdeviceXml |
XMLEle * | ParkstatusXml |
XMLEle * | ParkpositionXml |
XMLEle * | ParkpositionAxis1Xml |
XMLEle * | ParkpositionAxis2Xml |
double | Axis1ParkPosition |
double | Axis1DefaultParkPosition |
double | Axis2ParkPosition |
double | Axis2DefaultParkPosition |
uint8_t | nSlewRate |
IPState | lastEqState |
uint8_t | telescopeConnection = CONNECTION_SERIAL | CONNECTION_TCP |
Controller * | controller |
anonymous enum |
anonymous enum |
|
protected |
anonymous enum |
anonymous enum |
|
protected |
Telescope::Telescope | ( | ) |
|
virtual |
INDI::Telescope::Telescope | ( | ) |
|
virtual |
|
protectedvirtual |
Abort any telescope motion including tracking if possible.
Reimplemented in EQMod, LX200Telescope, IOptronV3, PMC8, ScopeSim, IEQPro, CelestronGPS, TemmaMount, Paramount, LX200Pulsar2, SkywatcherAPIMount, SynscanMount, ScopeScript, LX200Basic, SkywatcherAltAzSimple, SimpleScope, NexStarEvo, and ScopeSim.
|
protectedvirtual |
Abort any telescope motion including tracking if possible.
Reimplemented in EQMod, LX200Telescope, IOptronV3, PMC8, ScopeSim, IEQPro, CelestronGPS, TemmaMount, Paramount, LX200Pulsar2, SkywatcherAPIMount, SynscanMount, ScopeScript, LX200Basic, SkywatcherAltAzSimple, SimpleScope, NexStarEvo, and ScopeSim.
|
protectedvirtual |
AddTrackMode.
name | Name of track mode. It is recommended to use standard properties names such as TRACK_SIDEREAL..etc. |
label | Label of track mode that appears at the client side. |
isDefault | Set to true to mark the track mode as the default. Only one mode should be marked as default. |
|
protectedvirtual |
AddTrackMode.
name | Name of track mode. It is recommended to use standard properties names such as TRACK_SIDEREAL..etc. |
label | Label of track mode that appears at the client side. |
isDefault | Set to true to mark the track mode as the default. Only one mode should be marked as default. |
|
static |
|
protected |
callHandshake Helper function that sets the port file descriptor before calling the actual Handshake function implenented in drivers
|
protected |
callHandshake Helper function that sets the port file descriptor before calling the actual Handshake function implenented in drivers
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Check if a file exists and it is readable.
file_name | File name |
writable | Additional check if the file is writable |
Check if a file exists and it is readable.
file_name | File name |
writable | Additional check if the file is writable |
double Telescope::GetAxis1Park | ( | ) | const |
double INDI::Telescope::GetAxis1Park | ( | ) | const |
double INDI::Telescope::GetAxis1ParkDefault | ( | ) | const |
double Telescope::GetAxis1ParkDefault | ( | ) | const |
double INDI::Telescope::GetAxis2Park | ( | ) | const |
double Telescope::GetAxis2Park | ( | ) | const |
double INDI::Telescope::GetAxis2ParkDefault | ( | ) | const |
double Telescope::GetAxis2ParkDefault | ( | ) | const |
|
protected |
Validate a file name.
file_name | File name |
|
protected |
Validate a file name.
file_name | File name |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Get the scope config index.
|
protected |
Get the scope config index.
|
inline |
GetTelescopeCapability returns the capability of the Telescope.
|
inline |
GetTelescopeCapability returns the capability of the Telescope.
uint8_t Telescope::getTelescopeConnection | ( | ) | const |
uint8_t INDI::Telescope::getTelescopeConnection | ( | ) | const |
|
protectedvirtual |
Move the scope to the supplied RA and DEC coordinates.
Reimplemented in EQMod, LX200Telescope, ScopeSim, LX200AstroPhysics, LX200AstroPhysicsExperimental, IOptronV3, PMC8, IEQPro, LX200Pulsar2, LX200AstroPhysicsGTOCP2, Paramount, CelestronGPS, ioptronHC8406, LX200ZEQ25, SkywatcherAPIMount, LX200GotoNova, ScopeScript, SkywatcherAltAzSimple, TemmaMount, LX200Basic, SynscanMount, SimpleScope, NexStarEvo, and ScopeSim.
|
protectedvirtual |
Move the scope to the supplied RA and DEC coordinates.
Reimplemented in EQMod, LX200Telescope, ScopeSim, LX200AstroPhysics, LX200AstroPhysicsExperimental, IOptronV3, PMC8, IEQPro, LX200Pulsar2, LX200AstroPhysicsGTOCP2, Paramount, CelestronGPS, ioptronHC8406, LX200ZEQ25, SkywatcherAPIMount, LX200GotoNova, ScopeScript, SkywatcherAltAzSimple, TemmaMount, LX200Basic, SynscanMount, SimpleScope, NexStarEvo, and ScopeSim.
|
virtual |
perform handshake with device to check communication
Reimplemented in EQMod, LX200_10MICRON, LX200Telescope, LX200AstroPhysics, LX200AstroPhysicsExperimental, SkywatcherAPIMount, LX200AstroPhysicsGTOCP2, DSC, IOptronV3, PMC8, SkywatcherAltAzSimple, IEQPro, TemmaMount, CelestronGPS, ScopeScript, Paramount, LX200Pulsar2, SkyCommander, LX200Basic, SimpleScope, and NexStarEvo.
|
virtual |
perform handshake with device to check communication
Reimplemented in EQMod, LX200_10MICRON, LX200Telescope, LX200AstroPhysics, LX200AstroPhysicsExperimental, SkywatcherAPIMount, LX200AstroPhysicsGTOCP2, DSC, IOptronV3, PMC8, SkywatcherAltAzSimple, IEQPro, TemmaMount, CelestronGPS, ScopeScript, Paramount, LX200Pulsar2, SkyCommander, LX200Basic, SimpleScope, and NexStarEvo.
|
protected |
Load scope settings from XML files.
|
protected |
Load scope settings from XML files.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool Telescope::InitPark | ( | ) |
InitPark Loads parking data (stored in ~/.indi/ParkData.xml) that contains parking status and parking position.
bool INDI::Telescope::InitPark | ( | ) |
InitPark Loads parking data (stored in ~/.indi/ParkData.xml) that contains parking status and parking position.
|
virtual |
Called to initialize basic properties required all the time.
Reimplemented from INDI::DefaultDevice.
Reimplemented in EQMod, LX200_10MICRON, LX200Telescope, LX200_OnStep, LX200AstroPhysics, SkywatcherAPIMount, ScopeSim, LX200AstroPhysicsExperimental, DSC, LX200Gemini, IOptronV3, PMC8, SkywatcherAltAzSimple, CelestronGPS, IEQPro, LX200AstroPhysicsGTOCP2, LX200Autostar, Paramount, LX200Pulsar2, SynscanMount, TemmaMount, LX200Basic, SimpleScope, ioptronHC8406, LX200_16, LX200Classic, LX200GotoNova, LX200GPS, LX200SS2000PC, LX200ZEQ25, ScopeScript, LX200FS2, NexStarEvo, and ScopeSim.
|
virtual |
Called to initialize basic properties required all the time.
Reimplemented from INDI::DefaultDevice.
Reimplemented in EQMod, LX200_10MICRON, LX200Telescope, LX200_OnStep, LX200AstroPhysics, SkywatcherAPIMount, ScopeSim, LX200AstroPhysicsExperimental, DSC, LX200Gemini, IOptronV3, PMC8, SkywatcherAltAzSimple, CelestronGPS, IEQPro, LX200AstroPhysicsGTOCP2, LX200Autostar, Paramount, LX200Pulsar2, SynscanMount, TemmaMount, LX200Basic, SimpleScope, ioptronHC8406, LX200_16, LX200Classic, LX200GotoNova, LX200GPS, LX200SS2000PC, LX200ZEQ25, ScopeScript, LX200FS2, NexStarEvo, and ScopeSim.
|
virtual |
define the driver's properties to the client.
Usually, only a minimum set of properties are defined to the client in this function if the device is in disconnected state. Those properties should be enough to enable the client to establish a connection to the device. In addition to CONNECT/DISCONNECT, such properties may include port name, IP address, etc. You should check if the device is already connected, and if this is true, then you must define the remainder of the the properties to the client in this function. Otherwise, the remainder of the driver's properties are defined to the client in updateProperties() function which is called when a client connects/disconnects from a device.
dev | name of the device |
Reimplemented from INDI::DefaultDevice.
Reimplemented in EQMod, LX200Telescope, LX200_OnStep, SkywatcherAPIMount, ScopeSim, LX200AstroPhysics, SkywatcherAltAzSimple, LX200AstroPhysicsExperimental, CelestronGPS, LX200AstroPhysicsGTOCP2, LX200Gemini, LX200Pulsar2, LX200_16, LX200Basic, LX200GPS, LX200Classic, ScopeScript, LX200Autostar, SynscanMount, and NexStarEvo.
|
virtual |
define the driver's properties to the client.
Usually, only a minimum set of properties are defined to the client in this function if the device is in disconnected state. Those properties should be enough to enable the client to establish a connection to the device. In addition to CONNECT/DISCONNECT, such properties may include port name, IP address, etc. You should check if the device is already connected, and if this is true, then you must define the remainder of the the properties to the client in this function. Otherwise, the remainder of the driver's properties are defined to the client in updateProperties() function which is called when a client connects/disconnects from a device.
dev | name of the device |
Reimplemented from INDI::DefaultDevice.
Reimplemented in EQMod, LX200Telescope, LX200_OnStep, SkywatcherAPIMount, ScopeSim, LX200AstroPhysics, SkywatcherAltAzSimple, LX200AstroPhysicsExperimental, CelestronGPS, LX200AstroPhysicsGTOCP2, LX200Gemini, LX200Pulsar2, LX200_16, LX200Basic, LX200GPS, LX200Classic, ScopeScript, LX200Autostar, SynscanMount, and NexStarEvo.
bool Telescope::isLocked | ( | ) | const |
bool INDI::Telescope::isLocked | ( | ) | const |
|
virtual |
Process the client newNumber command.
Reimplemented from INDI::DefaultDevice.
Reimplemented in EQMod, LX200_10MICRON, LX200Telescope, LX200_OnStep, TemmaMount, SynscanMount, SkywatcherAPIMount, ScopeSim, SkywatcherAltAzSimple, LX200AstroPhysics, CelestronGPS, LX200AstroPhysicsExperimental, Paramount, DSC, LX200Gemini, LX200Basic, IOptronV3, PMC8, LX200_16, LX200Classic, LX200ZEQ25, IEQPro, LX200SS2000PC, LX200Autostar, LX200FS2, ScopeSim, and NexStarEvo.
|
virtual |
Process the client newNumber command.
Reimplemented from INDI::DefaultDevice.
Reimplemented in EQMod, LX200_10MICRON, LX200Telescope, LX200_OnStep, TemmaMount, SynscanMount, SkywatcherAPIMount, ScopeSim, SkywatcherAltAzSimple, LX200AstroPhysics, CelestronGPS, LX200AstroPhysicsExperimental, Paramount, DSC, LX200Gemini, LX200Basic, IOptronV3, PMC8, LX200_16, LX200Classic, LX200ZEQ25, IEQPro, LX200SS2000PC, LX200Autostar, LX200FS2, ScopeSim, and NexStarEvo.
|
virtual |
Process the client newSwitch command.
Reimplemented from INDI::DefaultDevice.
Reimplemented in EQMod, LX200_10MICRON, LX200Telescope, LX200_OnStep, TemmaMount, SynscanMount, SkywatcherAPIMount, ScopeSim, SkywatcherAltAzSimple, LX200AstroPhysics, CelestronGPS, LX200AstroPhysicsExperimental, Paramount, DSC, LX200Pulsar2, IOptronV3, LX200Gemini, PMC8, LX200_16, LX200Classic, IEQPro, ioptronHC8406, LX200AstroPhysicsGTOCP2, LX200GPS, LX200Autostar, LX200GotoNova, LX200ZEQ25, ScopeSim, and NexStarEvo.
|
virtual |
Process the client newSwitch command.
Reimplemented from INDI::DefaultDevice.
Reimplemented in EQMod, LX200_10MICRON, LX200Telescope, LX200_OnStep, TemmaMount, SynscanMount, SkywatcherAPIMount, ScopeSim, SkywatcherAltAzSimple, LX200AstroPhysics, CelestronGPS, LX200AstroPhysicsExperimental, Paramount, DSC, LX200Pulsar2, IOptronV3, LX200Gemini, PMC8, LX200_16, LX200Classic, IEQPro, ioptronHC8406, LX200AstroPhysicsGTOCP2, LX200GPS, LX200Autostar, LX200GotoNova, LX200ZEQ25, ScopeSim, and NexStarEvo.
|
virtual |
Process the client newSwitch command.
Reimplemented from INDI::DefaultDevice.
Reimplemented in EQMod, LX200_10MICRON, LX200Telescope, TemmaMount, SynscanMount, SkywatcherAPIMount, SkywatcherAltAzSimple, LX200Pulsar2, DSC, ScopeScript, ScopeSim, and NexStarEvo.
|
virtual |
Process the client newSwitch command.
Reimplemented from INDI::DefaultDevice.
Reimplemented in EQMod, LX200_10MICRON, LX200Telescope, TemmaMount, SynscanMount, SkywatcherAPIMount, SkywatcherAltAzSimple, LX200Pulsar2, DSC, ScopeScript, ScopeSim, and NexStarEvo.
bool Telescope::isParked | ( | ) |
isParked is mount currently parked?
bool INDI::Telescope::isParked | ( | ) |
isParked is mount currently parked?
Process a snoop event from INDI server.
This function is called when a snooped property is updated in a snooped driver.
Reimplemented from INDI::DefaultDevice.
Process a snoop event from INDI server.
This function is called when a snooped property is updated in a snooped driver.
Reimplemented from INDI::DefaultDevice.
|
static |
|
static |
|
protected |
|
protected |
|
protected |
Load scope settings from XML files.
|
protected |
Load scope settings from XML files.
|
protectedvirtual |
Start or Stop the telescope motion in the direction dir.
dir | direction of motion |
command | Start or Stop command |
Reimplemented in EQMod, LX200AstroPhysicsExperimental, LX200Telescope, LX200AstroPhysicsGTOCP2, SkywatcherAPIMount, ScopeSim, CelestronGPS, SkywatcherAltAzSimple, LX200ZEQ25, IOptronV3, PMC8, TemmaMount, IEQPro, Paramount, SynscanMount, LX200Pulsar2, ScopeScript, NexStarEvo, and ScopeSim.
|
protectedvirtual |
Start or Stop the telescope motion in the direction dir.
dir | direction of motion |
command | Start or Stop command |
Reimplemented in EQMod, LX200AstroPhysicsExperimental, LX200Telescope, LX200AstroPhysicsGTOCP2, SkywatcherAPIMount, ScopeSim, CelestronGPS, SkywatcherAltAzSimple, LX200ZEQ25, IOptronV3, PMC8, TemmaMount, IEQPro, Paramount, SynscanMount, LX200Pulsar2, ScopeScript, NexStarEvo, and ScopeSim.
|
protectedvirtual |
Move the telescope in the direction dir.
dir | direction of motion |
command | Start or Stop command |
Reimplemented in EQMod, LX200AstroPhysicsExperimental, LX200Telescope, LX200AstroPhysicsGTOCP2, SkywatcherAPIMount, ScopeSim, CelestronGPS, SkywatcherAltAzSimple, LX200ZEQ25, IOptronV3, PMC8, TemmaMount, IEQPro, Paramount, SynscanMount, LX200Pulsar2, ScopeScript, NexStarEvo, and ScopeSim.
|
protectedvirtual |
Move the telescope in the direction dir.
dir | direction of motion |
command | Start or Stop command |
Reimplemented in EQMod, LX200AstroPhysicsExperimental, LX200Telescope, LX200AstroPhysicsGTOCP2, SkywatcherAPIMount, ScopeSim, CelestronGPS, SkywatcherAltAzSimple, LX200ZEQ25, IOptronV3, PMC8, TemmaMount, IEQPro, Paramount, SynscanMount, LX200Pulsar2, ScopeScript, NexStarEvo, and ScopeSim.
|
protected |
The child class calls this function when it has updates.
|
protected |
The child class calls this function when it has updates.
|
protectedvirtual |
Park the telescope to its home position.
Reimplemented in EQMod, LX200_10MICRON, LX200Telescope, CelestronGPS, ScopeSim, LX200_OnStep, LX200AstroPhysics, SkywatcherAPIMount, LX200AstroPhysicsExperimental, ioptronHC8406, LX200ZEQ25, LX200Pulsar2, SkywatcherAltAzSimple, IOptronV3, LX200GotoNova, PMC8, Paramount, IEQPro, LX200Gemini, LX200AstroPhysicsGTOCP2, ScopeScript, TemmaMount, LX200FS2, SynscanMount, and NexStarEvo.
|
protectedvirtual |
Park the telescope to its home position.
Reimplemented in EQMod, LX200_10MICRON, LX200Telescope, CelestronGPS, ScopeSim, LX200_OnStep, LX200AstroPhysics, SkywatcherAPIMount, LX200AstroPhysicsExperimental, ioptronHC8406, LX200ZEQ25, LX200Pulsar2, SkywatcherAltAzSimple, IOptronV3, LX200GotoNova, PMC8, Paramount, IEQPro, LX200Gemini, LX200AstroPhysicsGTOCP2, ScopeScript, TemmaMount, LX200FS2, SynscanMount, and NexStarEvo.
|
protected |
|
protected |
|
private |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedpure virtual |
Read telescope status.
This function checks the following:
Implemented in EQMod, LX200_10MICRON, LX200_OnStep, SkywatcherAPIMount, LX200Telescope, SkywatcherAltAzSimple, LX200AstroPhysics, LX200AstroPhysicsExperimental, LX200Gemini, DSC, ScopeSim, IOptronV3, PMC8, IEQPro, ioptronHC8406, LX200ZEQ25, ScopeScript, LX200AstroPhysicsGTOCP2, LX200GotoNova, NexStarEvo, TemmaMount, CelestronGPS, LX200_16, SynscanMount, SimpleScope, Paramount, LX200Pulsar2, SkyCommander, LX200Basic, and ScopeSim.
|
protectedpure virtual |
Read telescope status.
This function checks the following:
Implemented in EQMod, LX200_10MICRON, LX200_OnStep, SkywatcherAPIMount, LX200Telescope, SkywatcherAltAzSimple, LX200AstroPhysics, LX200AstroPhysicsExperimental, LX200Gemini, DSC, ScopeSim, IOptronV3, PMC8, IEQPro, ioptronHC8406, LX200ZEQ25, ScopeScript, LX200AstroPhysicsGTOCP2, LX200GotoNova, NexStarEvo, TemmaMount, CelestronGPS, LX200_16, SynscanMount, SimpleScope, Paramount, LX200Pulsar2, SkyCommander, LX200Basic, and ScopeSim.
|
protectedvirtual |
saveConfigItems Save specific properties in the provide config file handler.
Child class usually override this function to save their own properties and the base class saveConfigItems(fp) must be explicitly called by each child class. The Default Device saveConfigItems(fp) only save Debug properties options in the config file.
fp | Pointer to config file handler |
Reimplemented from INDI::DefaultDevice.
Reimplemented in EQMod, LX200Telescope, LX200AstroPhysicsExperimental, CelestronGPS, LX200AstroPhysics, LX200AstroPhysicsGTOCP2, SkywatcherAPIMount, LX200Gemini, SkywatcherAltAzSimple, ioptronHC8406, IOptronV3, LX200GotoNova, PMC8, IEQPro, DSC, LX200SS2000PC, LX200FS2, ScopeScript, and NexStarEvo.
|
protectedvirtual |
saveConfigItems Save specific properties in the provide config file handler.
Child class usually override this function to save their own properties and the base class saveConfigItems(fp) must be explicitly called by each child class. The Default Device saveConfigItems(fp) only save Debug properties options in the config file.
fp | Pointer to config file handler |
Reimplemented from INDI::DefaultDevice.
Reimplemented in EQMod, LX200Telescope, LX200AstroPhysicsExperimental, CelestronGPS, LX200AstroPhysics, LX200AstroPhysicsGTOCP2, SkywatcherAPIMount, LX200Gemini, SkywatcherAltAzSimple, ioptronHC8406, IOptronV3, LX200GotoNova, PMC8, IEQPro, DSC, LX200SS2000PC, LX200FS2, ScopeScript, and NexStarEvo.
|
protected |
|
protected |
void Telescope::SetAxis1Park | ( | double | value | ) |
SetRAPark Set current RA/AZ parking position.
The data park file (stored in ~/.indi/ParkData.xml) is updated in the process.
value | current Axis 1 value (RA or AZ either in angles or encoder values as specified by the TelescopeParkData type). |
void INDI::Telescope::SetAxis1Park | ( | double | value | ) |
SetRAPark Set current RA/AZ parking position.
The data park file (stored in ~/.indi/ParkData.xml) is updated in the process.
value | current Axis 1 value (RA or AZ either in angles or encoder values as specified by the TelescopeParkData type). |
void Telescope::SetAxis1ParkDefault | ( | double | steps | ) |
SetRAPark Set default RA/AZ parking position.
value | Default Axis 1 value (RA or AZ either in angles or encoder values as specified by the TelescopeParkData type). |
void INDI::Telescope::SetAxis1ParkDefault | ( | double | steps | ) |
SetRAPark Set default RA/AZ parking position.
value | Default Axis 1 value (RA or AZ either in angles or encoder values as specified by the TelescopeParkData type). |
void Telescope::SetAxis2Park | ( | double | steps | ) |
SetDEPark Set current DEC/ALT parking position.
The data park file (stored in ~/.indi/ParkData.xml) is updated in the process.
value | current Axis 1 value (DEC or ALT either in angles or encoder values as specified by the TelescopeParkData type). |
void INDI::Telescope::SetAxis2Park | ( | double | steps | ) |
SetDEPark Set current DEC/ALT parking position.
The data park file (stored in ~/.indi/ParkData.xml) is updated in the process.
value | current Axis 1 value (DEC or ALT either in angles or encoder values as specified by the TelescopeParkData type). |
void Telescope::SetAxis2ParkDefault | ( | double | steps | ) |
SetDEParkDefault Set default DEC/ALT parking position.
value | Default Axis 2 value (DEC or ALT either in angles or encoder values as specified by the TelescopeParkData type). |
void INDI::Telescope::SetAxis2ParkDefault | ( | double | steps | ) |
SetDEParkDefault Set default DEC/ALT parking position.
value | Default Axis 2 value (DEC or ALT either in angles or encoder values as specified by the TelescopeParkData type). |
|
protectedvirtual |
SetCurrentPark Set current coordinates/encoders value as the desired parking position.
Reimplemented in EQMod, CelestronGPS, ScopeSim, IOptronV3, PMC8, IEQPro, LX200_OnStep, Paramount, LX200AstroPhysics, LX200AstroPhysicsExperimental, LX200ZEQ25, TemmaMount, SynscanMount, LX200AstroPhysicsGTOCP2, and LX200FS2.
|
protectedvirtual |
SetCurrentPark Set current coordinates/encoders value as the desired parking position.
Reimplemented in EQMod, CelestronGPS, ScopeSim, IOptronV3, PMC8, IEQPro, LX200_OnStep, Paramount, LX200AstroPhysics, LX200AstroPhysicsExperimental, LX200ZEQ25, TemmaMount, SynscanMount, LX200AstroPhysicsGTOCP2, and LX200FS2.
|
protectedvirtual |
SetDefaultPark Set default coordinates/encoders value as the desired parking position.
Reimplemented in EQMod, CelestronGPS, ScopeSim, IOptronV3, PMC8, IEQPro, LX200_OnStep, Paramount, LX200AstroPhysics, LX200AstroPhysicsExperimental, LX200ZEQ25, TemmaMount, SynscanMount, LX200AstroPhysicsGTOCP2, and LX200FS2.
|
protectedvirtual |
SetDefaultPark Set default coordinates/encoders value as the desired parking position.
Reimplemented in EQMod, CelestronGPS, ScopeSim, IOptronV3, PMC8, IEQPro, LX200_OnStep, Paramount, LX200AstroPhysics, LX200AstroPhysicsExperimental, LX200ZEQ25, TemmaMount, SynscanMount, LX200AstroPhysicsGTOCP2, and LX200FS2.
void Telescope::SetParkDataType | ( | TelescopeParkData | type | ) |
setParkDataType Sets the type of parking data stored in the park data file and presented to the user.
type | parking data type. If PARK_NONE then no properties will be presented to the user for custom parking position. |
void INDI::Telescope::SetParkDataType | ( | TelescopeParkData | type | ) |
setParkDataType Sets the type of parking data stored in the park data file and presented to the user.
type | parking data type. If PARK_NONE then no properties will be presented to the user for custom parking position. |
void Telescope::SetParked | ( | bool | isparked | ) |
SetParked Change the mount parking status.
The data park file (stored in ~/.indi/ParkData.xml) is updated in the process.
isparked | set to true if parked, false otherwise. |
void INDI::Telescope::SetParked | ( | bool | isparked | ) |
SetParked Change the mount parking status.
The data park file (stored in ~/.indi/ParkData.xml) is updated in the process.
isparked | set to true if parked, false otherwise. |
|
protectedvirtual |
SetParkPosition Set desired parking position to the supplied value.
This ONLY sets the desired park position value and does not perform parking.
Axis1Value | First axis value |
Axis2Value | Second axis value |
Reimplemented in Paramount.
|
protectedvirtual |
SetParkPosition Set desired parking position to the supplied value.
This ONLY sets the desired park position value and does not perform parking.
Axis1Value | First axis value |
Axis2Value | Second axis value |
Reimplemented in Paramount.
void Telescope::setPECState | ( | TelescopePECState | state | ) |
void INDI::Telescope::setPECState | ( | TelescopePECState | state | ) |
void INDI::Telescope::setPierSide | ( | TelescopePierSide | side | ) |
void Telescope::setPierSide | ( | TelescopePierSide | side | ) |
|
protectedvirtual |
SetSlewRate Set desired slew rate index.
index | Index of slew rate where 0 is slowest rate and capability.nSlewRate-1 is maximum rate. |
Reimplemented in IOptronV3, PMC8, IEQPro, LX200Telescope, LX200AstroPhysics, LX200AstroPhysicsExperimental, LX200AstroPhysicsGTOCP2, LX200ZEQ25, LX200GotoNova, SynscanMount, and LX200Pulsar2.
|
protectedvirtual |
SetSlewRate Set desired slew rate index.
index | Index of slew rate where 0 is slowest rate and capability.nSlewRate-1 is maximum rate. |
Reimplemented in IOptronV3, PMC8, IEQPro, LX200Telescope, LX200AstroPhysics, LX200AstroPhysicsExperimental, LX200AstroPhysicsGTOCP2, LX200ZEQ25, LX200GotoNova, SynscanMount, and LX200Pulsar2.
SetTelescopeCapability sets the Telescope capabilities.
All capabilities must be initialized.
cap | ORed list of telescope capabilities. |
slewRateCount | Number of slew rates supported by the telescope. If < 4 (default is 0), no slew rate properties will be defined to the client. If >=4, the driver will construct the default slew rate property TELESCOPE_SLEW_RATE with SLEW_GUIDE, SLEW_CENTERING, SLEW_FIND, and SLEW_MAX members where SLEW_GUIDE is the at the lowest setting and SLEW_MAX is at the highest. |
SetTelescopeCapability sets the Telescope capabilities.
All capabilities must be initialized.
cap | ORed list of telescope capabilities. |
slewRateCount | Number of slew rates supported by the telescope. If < 4 (default is 0), no slew rate properties will be defined to the client. If >=4, the driver will construct the default slew rate property TELESCOPE_SLEW_RATE with SLEW_GUIDE, SLEW_CENTERING, SLEW_FIND, and SLEW_MAX members where SLEW_GUIDE is the at the lowest setting and SLEW_MAX is at the highest. |
setTelescopeConnection Set telescope connection mode.
Child class should call this in the constructor before Telescope registers any connection interfaces
value | ORed combination of TelescopeConnection values. |
setTelescopeConnection Set telescope connection mode.
Child class should call this in the constructor before Telescope registers any connection interfaces
value | ORed combination of TelescopeConnection values. |
SetTrackEnabled Engages or disengages mount tracking.
If there are no tracking modes available, it is assumed sidereal. Otherwise, whatever tracking mode should be activated or deactivated accordingly.
enabled | True to engage tracking, false to stop tracking completely. |
Reimplemented in EQMod, LX200AstroPhysicsExperimental, IOptronV3, PMC8, CelestronGPS, IEQPro, LX200AstroPhysics, ScopeSim, LX200_OnStep, LX200AstroPhysicsGTOCP2, Paramount, LX200Gemini, and ioptronHC8406.
SetTrackEnabled Engages or disengages mount tracking.
If there are no tracking modes available, it is assumed sidereal. Otherwise, whatever tracking mode should be activated or deactivated accordingly.
enabled | True to engage tracking, false to stop tracking completely. |
Reimplemented in EQMod, LX200AstroPhysicsExperimental, IOptronV3, PMC8, CelestronGPS, IEQPro, LX200AstroPhysics, ScopeSim, LX200_OnStep, LX200AstroPhysicsGTOCP2, Paramount, LX200Gemini, and ioptronHC8406.
SetTrackMode Set active tracking mode.
Do not change track state.
mode | Index of track mode. |
Reimplemented in EQMod, LX200AstroPhysicsExperimental, CelestronGPS, LX200AstroPhysics, IOptronV3, PMC8, LX200Telescope, IEQPro, ScopeSim, LX200AstroPhysicsGTOCP2, Paramount, LX200Gemini, ioptronHC8406, LX200ZEQ25, and LX200GotoNova.
SetTrackMode Set active tracking mode.
Do not change track state.
mode | Index of track mode. |
Reimplemented in EQMod, LX200AstroPhysicsExperimental, CelestronGPS, LX200AstroPhysics, IOptronV3, PMC8, LX200Telescope, IEQPro, ScopeSim, LX200AstroPhysicsGTOCP2, Paramount, LX200Gemini, ioptronHC8406, LX200ZEQ25, and LX200GotoNova.
|
protectedvirtual |
SetTrackRate Set custom tracking rates.
raRate | RA tracking rate in arcsecs/s |
deRate | DEC tracking rate in arcsecs/s |
Reimplemented in EQMod, LX200AstroPhysicsExperimental, LX200AstroPhysics, IOptronV3, PMC8, IEQPro, ScopeSim, LX200AstroPhysicsGTOCP2, and Paramount.
|
protectedvirtual |
SetTrackRate Set custom tracking rates.
raRate | RA tracking rate in arcsecs/s |
deRate | DEC tracking rate in arcsecs/s |
Reimplemented in EQMod, LX200AstroPhysicsExperimental, LX200AstroPhysics, IOptronV3, PMC8, IEQPro, ScopeSim, LX200AstroPhysicsGTOCP2, and Paramount.
|
protectedvirtual |
Set the telescope current RA and DEC coordinates to the supplied RA and DEC coordinates.
Reimplemented in EQMod, LX200Telescope, ScopeSim, SkywatcherAPIMount, LX200AstroPhysics, LX200AstroPhysicsExperimental, SkywatcherAltAzSimple, SynscanMount, IOptronV3, LX200Pulsar2, PMC8, IEQPro, Paramount, CelestronGPS, LX200AstroPhysicsGTOCP2, DSC, ioptronHC8406, LX200GotoNova, ScopeScript, TemmaMount, LX200Basic, ScopeSim, and NexStarEvo.
|
protectedvirtual |
Set the telescope current RA and DEC coordinates to the supplied RA and DEC coordinates.
Reimplemented in EQMod, LX200Telescope, ScopeSim, SkywatcherAPIMount, LX200AstroPhysics, LX200AstroPhysicsExperimental, SkywatcherAltAzSimple, SynscanMount, IOptronV3, LX200Pulsar2, PMC8, IEQPro, Paramount, CelestronGPS, LX200AstroPhysicsGTOCP2, DSC, ioptronHC8406, LX200GotoNova, ScopeScript, TemmaMount, LX200Basic, ScopeSim, and NexStarEvo.
|
virtual |
Called when setTimer() time is up.
Reimplemented from INDI::DefaultDevice.
Reimplemented in EQMod, SkywatcherAPIMount, SkywatcherAltAzSimple, NexStarEvo, and ScopeSim.
|
virtual |
Called when setTimer() time is up.
Reimplemented from INDI::DefaultDevice.
Reimplemented in EQMod, SkywatcherAPIMount, SkywatcherAltAzSimple, NexStarEvo, and ScopeSim.
|
protectedvirtual |
Unpark the telescope if already parked.
Reimplemented in EQMod, LX200_10MICRON, CelestronGPS, ScopeSim, LX200_OnStep, LX200AstroPhysics, SkywatcherAPIMount, LX200AstroPhysicsExperimental, ioptronHC8406, LX200Pulsar2, LX200ZEQ25, SkywatcherAltAzSimple, IOptronV3, LX200GotoNova, PMC8, Paramount, IEQPro, LX200Gemini, LX200AstroPhysicsGTOCP2, ScopeScript, TemmaMount, LX200FS2, SynscanMount, LX200GPS, and NexStarEvo.
|
protectedvirtual |
Unpark the telescope if already parked.
Reimplemented in EQMod, LX200_10MICRON, CelestronGPS, ScopeSim, LX200_OnStep, LX200AstroPhysics, SkywatcherAPIMount, LX200AstroPhysicsExperimental, ioptronHC8406, LX200Pulsar2, LX200ZEQ25, SkywatcherAltAzSimple, IOptronV3, LX200GotoNova, PMC8, Paramount, IEQPro, LX200Gemini, LX200AstroPhysicsGTOCP2, ScopeScript, TemmaMount, LX200FS2, SynscanMount, LX200GPS, and NexStarEvo.
|
protectedvirtual |
Update telescope location settings.
latitude | Site latitude in degrees. |
longitude | Site latitude in degrees increasing eastward from Greenwich (0 to 360). |
elevation | Site elevation in meters. |
Reimplemented in EQMod, LX200Telescope, LX200_OnStep, LX200AstroPhysics, SkywatcherAPIMount, ScopeSim, LX200AstroPhysicsExperimental, IOptronV3, PMC8, IEQPro, CelestronGPS, LX200AstroPhysicsGTOCP2, LX200Pulsar2, DSC, ioptronHC8406, TemmaMount, LX200GotoNova, LX200ZEQ25, LX200SS2000PC, Paramount, SynscanMount, LX200FS2, NexStarEvo, and ScopeSim.
|
protectedvirtual |
Update telescope location settings.
latitude | Site latitude in degrees. |
longitude | Site latitude in degrees increasing eastward from Greenwich (0 to 360). |
elevation | Site elevation in meters. |
Reimplemented in EQMod, LX200Telescope, LX200_OnStep, LX200AstroPhysics, SkywatcherAPIMount, ScopeSim, LX200AstroPhysicsExperimental, IOptronV3, PMC8, IEQPro, CelestronGPS, LX200AstroPhysicsGTOCP2, LX200Pulsar2, DSC, ioptronHC8406, TemmaMount, LX200GotoNova, LX200ZEQ25, LX200SS2000PC, Paramount, SynscanMount, LX200FS2, NexStarEvo, and ScopeSim.
|
virtual |
Called when connected state changes, to add/remove properties.
Reimplemented from INDI::DefaultDevice.
Reimplemented in EQMod, LX200_10MICRON, SkywatcherAPIMount, SkywatcherAltAzSimple, LX200Telescope, LX200_OnStep, LX200AstroPhysics, ScopeSim, LX200AstroPhysicsExperimental, DSC, LX200Gemini, IOptronV3, PMC8, CelestronGPS, IEQPro, LX200AstroPhysicsGTOCP2, LX200Autostar, Paramount, LX200Pulsar2, TemmaMount, LX200Basic, LX200Classic, LX200_16, LX200GPS, LX200SS2000PC, ioptronHC8406, SynscanMount, LX200GotoNova, LX200ZEQ25, and LX200FS2.
|
virtual |
Called when connected state changes, to add/remove properties.
Reimplemented from INDI::DefaultDevice.
Reimplemented in EQMod, LX200_10MICRON, SkywatcherAPIMount, SkywatcherAltAzSimple, LX200Telescope, LX200_OnStep, LX200AstroPhysics, ScopeSim, LX200AstroPhysicsExperimental, DSC, LX200Gemini, IOptronV3, PMC8, CelestronGPS, IEQPro, LX200AstroPhysicsGTOCP2, LX200Autostar, Paramount, LX200Pulsar2, TemmaMount, LX200Basic, LX200Classic, LX200_16, LX200GPS, LX200SS2000PC, ioptronHC8406, SynscanMount, LX200GotoNova, LX200ZEQ25, and LX200FS2.
|
protected |
Save scope settings to XML files.
|
protected |
Save scope settings to XML files.
|
protectedvirtual |
Update telescope time, date, and UTC offset.
utc | UTC time. |
utc_offset | UTC offset in hours. |
Reimplemented in EQMod, LX200Telescope, LX200AstroPhysics, LX200AstroPhysicsExperimental, IOptronV3, PMC8, CelestronGPS, IEQPro, LX200AstroPhysicsGTOCP2, LX200Pulsar2, ioptronHC8406, LX200GotoNova, LX200ZEQ25, Paramount, SynscanMount, LX200GPS, and LX200SS2000PC.
|
protectedvirtual |
Update telescope time, date, and UTC offset.
utc | UTC time. |
utc_offset | UTC offset in hours. |
Reimplemented in EQMod, LX200Telescope, LX200AstroPhysics, LX200AstroPhysicsExperimental, IOptronV3, PMC8, CelestronGPS, IEQPro, LX200AstroPhysicsGTOCP2, LX200Pulsar2, ioptronHC8406, LX200GotoNova, LX200ZEQ25, Paramount, SynscanMount, LX200GPS, and LX200SS2000PC.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
private |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
protected |
|
private |
|
private |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
RememberTrackState Remember last state of Track State to fall back to in case of errors or aborts.
|
protected |
|
protected |
The telescope/guide scope configuration file name.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
enum { ... } INDI::Telescope::TelescopeCapability |
enum { ... } INDI::Telescope::TelescopeCapability |
enum { ... } INDI::Telescope::TelescopeConnection |
enum { ... } INDI::Telescope::TelescopeConnection |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
This is a variable filled in by the ReadStatus telescope low level code, used to report current state are we slewing, tracking, or parked.
|
protected |
|
protected |