Instrument Neutral Distributed Interface INDI  2.0.2
Macros | Enumerations | Functions
lx200apdriver.h File Reference

Go to the source code of this file.

Macros

#define setAPPark(fd)   write(fd, "#:KA#", 4)
 
#define setAPUnPark(fd)   write(fd, "#:PO#", 4)
 
#define getAPVersionNumber(fd, x)   getCommandString(fd, x, "#:V#")
 
#define setAPClearBuffer(fd)   write(fd, "#", 1) /* AP key pad manual startup sequence */
 
#define setAPBackLashCompensation(fd, x, y, z)   setCommandXYZ(fd, x, y, z, "#:Br")
 
#define AP_TRACKING_SIDEREAL   0
 
#define AP_TRACKING_SOLAR   1
 
#define AP_TRACKING_LUNAR   2
 
#define AP_TRACKING_CUSTOM   3
 
#define AP_TRACKING_OFF   4
 
#define AP_PEC_OFF   0
 
#define AP_PEC_ON   1
 
#define AP_PEC_RECORD   2
 
#define AP_PEC_ENCODER   3
 

Enumerations

enum  APRateTableState {
  AP_RATE_TABLE_0 = 0 , AP_RATE_TABLE_1 = 1 , AP_RATE_TABLE_2 = 2 , AP_RATE_TABLE_3 = 3 ,
  AP_RATE_TABLE_DEFAULT = -1
}
 

Functions

void set_lx200ap_name (const char *deviceName, unsigned int debug_level)
 
int check_lx200ap_connection (int fd)
 
int getAPUTCOffset (int fd, double *value)
 
int setAPObjectAZ (int fd, double az)
 
int setAPObjectAlt (int fd, double alt)
 
int setAPUTCOffset (int fd, double hours)
 
int setAPSlewMode (int fd, int slewMode)
 
int APSyncCM (int fd, char *matchedObject)
 
int APSyncCMR (int fd, char *matchedObject)
 
int selectAPMoveToRate (int fd, int moveToIndex)
 
int selectAPSlewRate (int fd, int slewIndex)
 
int selectAPCenterRate (int fd, int centerIndex)
 
int selectAPV2CenterRate (int fd, int centerIndex, APRateTableState rateTable)
 
int selectAPTrackingMode (int fd, int trackMode)
 
int selectAPGuideRate (int fd, int guideRate)
 
int selectAPPECState (int fd, int pecstate)
 
int swapAPButtons (int fd, int currentSwap)
 
int setAPObjectRA (int fd, double ra)
 
int setAPObjectDEC (int fd, double dec)
 
int setAPSiteLongitude (int fd, double Long)
 
int setAPSiteLatitude (int fd, double Lat)
 
int setAPRATrackRate (int fd, double rate)
 
int setAPDETrackRate (int fd, double rate)
 
int APSendPulseCmd (int fd, int direction, int duration_msec)
 
void set_lx200ap_exp_name (const char *deviceName, unsigned int debug_level)
 
int check_lx200ap_status (int fd, char *parkStatus, char *slewStatus)
 
int APParkMount (int fd)
 
int APUnParkMount (int fd)
 
int getAPWormPosition (int fd, int *position)
 
int getApStatusString (int fd, char *statusString)
 
bool apStatusParked (const char *statusString)
 
bool apStatusSlewing (const char *statusString)
 
const char * apMountStatus (const char *statusString)
 
int isAPInitialized (int fd, bool *isInitialized)
 
APRateTableState apRateTable (const char *statusString)
 
int getApMountFeatures (int fd, bool *hasEncoder, bool *clutchAware)
 
bool apCanHome (int fd)
 
int apHomeAndSync (int fd)
 

Macro Definition Documentation

◆ AP_PEC_ENCODER

#define AP_PEC_ENCODER   3

Definition at line 41 of file lx200apdriver.h.

◆ AP_PEC_OFF

#define AP_PEC_OFF   0

Definition at line 38 of file lx200apdriver.h.

◆ AP_PEC_ON

#define AP_PEC_ON   1

Definition at line 39 of file lx200apdriver.h.

◆ AP_PEC_RECORD

#define AP_PEC_RECORD   2

Definition at line 40 of file lx200apdriver.h.

◆ AP_TRACKING_CUSTOM

#define AP_TRACKING_CUSTOM   3

Definition at line 35 of file lx200apdriver.h.

◆ AP_TRACKING_LUNAR

#define AP_TRACKING_LUNAR   2

Definition at line 34 of file lx200apdriver.h.

◆ AP_TRACKING_OFF

#define AP_TRACKING_OFF   4

Definition at line 36 of file lx200apdriver.h.

◆ AP_TRACKING_SIDEREAL

#define AP_TRACKING_SIDEREAL   0

Definition at line 32 of file lx200apdriver.h.

◆ AP_TRACKING_SOLAR

#define AP_TRACKING_SOLAR   1

Definition at line 33 of file lx200apdriver.h.

◆ getAPVersionNumber

#define getAPVersionNumber (   fd,
 
)    getCommandString(fd, x, "#:V#")

Definition at line 28 of file lx200apdriver.h.

◆ setAPBackLashCompensation

#define setAPBackLashCompensation (   fd,
  x,
  y,
 
)    setCommandXYZ(fd, x, y, z, "#:Br")

Definition at line 30 of file lx200apdriver.h.

◆ setAPClearBuffer

#define setAPClearBuffer (   fd)    write(fd, "#", 1) /* AP key pad manual startup sequence */

Definition at line 29 of file lx200apdriver.h.

◆ setAPPark

#define setAPPark (   fd)    write(fd, "#:KA#", 4)

Definition at line 24 of file lx200apdriver.h.

◆ setAPUnPark

#define setAPUnPark (   fd)    write(fd, "#:PO#", 4)

Definition at line 25 of file lx200apdriver.h.

Enumeration Type Documentation

◆ APRateTableState

Enumerator
AP_RATE_TABLE_0 
AP_RATE_TABLE_1 
AP_RATE_TABLE_2 
AP_RATE_TABLE_3 
AP_RATE_TABLE_DEFAULT 

Definition at line 57 of file lx200apdriver.h.

Function Documentation

◆ apCanHome()

bool apCanHome ( int  fd)

Definition at line 1021 of file lx200apdriver.cpp.

◆ apHomeAndSync()

int apHomeAndSync ( int  fd)

Definition at line 1030 of file lx200apdriver.cpp.

◆ apMountStatus()

const char* apMountStatus ( const char *  statusString)

Definition at line 879 of file lx200apdriver.cpp.

◆ APParkMount()

int APParkMount ( int  fd)

Definition at line 693 of file lx200apdriver.cpp.

◆ apRateTable()

APRateTableState apRateTable ( const char *  statusString)

Definition at line 924 of file lx200apdriver.cpp.

◆ APSendPulseCmd()

int APSendPulseCmd ( int  fd,
int  direction,
int  duration_msec 
)

Definition at line 659 of file lx200apdriver.cpp.

◆ apStatusParked()

bool apStatusParked ( const char *  statusString)

Definition at line 913 of file lx200apdriver.cpp.

◆ apStatusSlewing()

bool apStatusSlewing ( const char *  statusString)

Definition at line 918 of file lx200apdriver.cpp.

◆ APSyncCM()

int APSyncCM ( int  fd,
char *  matchedObject 
)

Definition at line 284 of file lx200apdriver.cpp.

◆ APSyncCMR()

int APSyncCMR ( int  fd,
char *  matchedObject 
)

Definition at line 312 of file lx200apdriver.cpp.

◆ APUnParkMount()

int APUnParkMount ( int  fd)

Definition at line 699 of file lx200apdriver.cpp.

◆ check_lx200ap_connection()

int check_lx200ap_connection ( int  fd)

Definition at line 53 of file lx200apdriver.cpp.

◆ check_lx200ap_status()

int check_lx200ap_status ( int  fd,
char *  parkStatus,
char *  slewStatus 
)

Definition at line 861 of file lx200apdriver.cpp.

◆ getApMountFeatures()

int getApMountFeatures ( int  fd,
bool *  hasEncoder,
bool *  clutchAware 
)

Definition at line 973 of file lx200apdriver.cpp.

◆ getApStatusString()

int getApStatusString ( int  fd,
char *  statusString 
)

Definition at line 841 of file lx200apdriver.cpp.

◆ getAPUTCOffset()

int getAPUTCOffset ( int  fd,
double *  value 
)

Definition at line 101 of file lx200apdriver.cpp.

◆ getAPWormPosition()

int getAPWormPosition ( int  fd,
int *  position 
)

Definition at line 375 of file lx200apdriver.cpp.

◆ isAPInitialized()

int isAPInitialized ( int  fd,
bool *  isInitialized 
)

Definition at line 1035 of file lx200apdriver.cpp.

◆ selectAPCenterRate()

int selectAPCenterRate ( int  fd,
int  centerIndex 
)

Definition at line 709 of file lx200apdriver.cpp.

◆ selectAPGuideRate()

int selectAPGuideRate ( int  fd,
int  guideRate 
)

Definition at line 464 of file lx200apdriver.cpp.

◆ selectAPMoveToRate()

int selectAPMoveToRate ( int  fd,
int  moveToIndex 
)

Definition at line 408 of file lx200apdriver.cpp.

◆ selectAPPECState()

int selectAPPECState ( int  fd,
int  pecstate 
)

Definition at line 354 of file lx200apdriver.cpp.

◆ selectAPSlewRate()

int selectAPSlewRate ( int  fd,
int  slewIndex 
)

Definition at line 426 of file lx200apdriver.cpp.

◆ selectAPTrackingMode()

int selectAPTrackingMode ( int  fd,
int  trackMode 
)

Definition at line 442 of file lx200apdriver.cpp.

◆ selectAPV2CenterRate()

int selectAPV2CenterRate ( int  fd,
int  centerIndex,
APRateTableState  rateTable 
)

Definition at line 729 of file lx200apdriver.cpp.

◆ set_lx200ap_exp_name()

void set_lx200ap_exp_name ( const char *  deviceName,
unsigned int  debug_level 
)

◆ set_lx200ap_name()

void set_lx200ap_name ( const char *  deviceName,
unsigned int  debug_level 
)

Definition at line 47 of file lx200apdriver.cpp.

◆ setAPDETrackRate()

int setAPDETrackRate ( int  fd,
double  rate 
)

Definition at line 610 of file lx200apdriver.cpp.

◆ setAPObjectAlt()

int setAPObjectAlt ( int  fd,
double  alt 
)

Definition at line 251 of file lx200apdriver.cpp.

◆ setAPObjectAZ()

int setAPObjectAZ ( int  fd,
double  az 
)

Definition at line 231 of file lx200apdriver.cpp.

◆ setAPObjectDEC()

int setAPObjectDEC ( int  fd,
double  dec 
)

Definition at line 513 of file lx200apdriver.cpp.

◆ setAPObjectRA()

int setAPObjectRA ( int  fd,
double  ra 
)

Definition at line 494 of file lx200apdriver.cpp.

◆ setAPRATrackRate()

int setAPRATrackRate ( int  fd,
double  rate 
)

Definition at line 562 of file lx200apdriver.cpp.

◆ setAPSiteLatitude()

int setAPSiteLatitude ( int  fd,
double  Lat 
)

Definition at line 547 of file lx200apdriver.cpp.

◆ setAPSiteLongitude()

int setAPSiteLongitude ( int  fd,
double  Long 
)

Definition at line 529 of file lx200apdriver.cpp.

◆ setAPSlewMode()

int setAPSlewMode ( int  fd,
int  slewMode 
)

◆ setAPUTCOffset()

int setAPUTCOffset ( int  fd,
double  hours 
)

Definition at line 269 of file lx200apdriver.cpp.

◆ swapAPButtons()

int swapAPButtons ( int  fd,
int  currentSwap 
)

Definition at line 480 of file lx200apdriver.cpp.