Instrument Neutral Distributed Interface INDI  2.0.2
Macros | Functions | Variables
lx200apdriver.cpp File Reference
#include <cmath>
#include "lx200apdriver.h"
#include "indicom.h"
#include "indilogger.h"
#include "lx200driver.h"
#include <cstring>
#include <unistd.h>
#include <termios.h>

Go to the source code of this file.

Macros

#define LX200_TIMEOUT   5 /* FD timeout in seconds */
 
#define MAX_LX200AP_PULSE_LEN   999
 

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 APSyncCM (int fd, char *matchedObject)
 
int APSyncCMR (int fd, char *matchedObject)
 
int sendAPCommand (int fd, const char *cmd, const char *comment)
 
int selectAPPECState (int fd, int pecstate)
 
int getAPWormPosition (int fd, int *position)
 
int selectAPMoveToRate (int fd, int moveToIndex)
 
int selectAPSlewRate (int fd, int slewIndex)
 
int selectAPTrackingMode (int fd, int trackMode)
 
int selectAPGuideRate (int fd, int guideRate)
 
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)
 
int APParkMount (int fd)
 
int APUnParkMount (int fd)
 
int selectAPCenterRate (int fd, int centerIndex)
 
int selectAPV2CenterRate (int fd, int centerIndex, APRateTableState rateTable)
 
int getApStatusStringInternal (int fd, char *statusString, bool complain)
 
int getApStatusString (int fd, char *statusString)
 
int check_lx200ap_status (int fd, char *parkStatus, char *slewStatus)
 
const char * apMountStatus (const char *statusString)
 
bool apStatusParked (const char *statusString)
 
bool apStatusSlewing (const char *statusString)
 
APRateTableState apRateTable (const char *statusString)
 
int getApMountFeatures (int fd, bool *hasEncoder, bool *clutchAware)
 
bool apCanHome (int fd)
 
int apHomeAndSync (int fd)
 
int isAPInitialized (int fd, bool *isInitialized)
 

Variables

char lx200ap_name [MAXINDIDEVICE]
 
unsigned int AP_DBG_SCOPE
 

Macro Definition Documentation

◆ LX200_TIMEOUT

#define LX200_TIMEOUT   5 /* FD timeout in seconds */

Definition at line 39 of file lx200apdriver.cpp.

◆ MAX_LX200AP_PULSE_LEN

#define MAX_LX200AP_PULSE_LEN   999

Definition at line 42 of file lx200apdriver.cpp.

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.

◆ getApStatusStringInternal()

int getApStatusStringInternal ( int  fd,
char *  statusString,
bool  complain 
)

Definition at line 804 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.

◆ sendAPCommand()

int sendAPCommand ( int  fd,
const char *  cmd,
const char *  comment 
)

Definition at line 341 of file lx200apdriver.cpp.

◆ 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.

◆ 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.

Variable Documentation

◆ AP_DBG_SCOPE

unsigned int AP_DBG_SCOPE

Definition at line 45 of file lx200apdriver.cpp.

◆ lx200ap_name

char lx200ap_name[MAXINDIDEVICE]

Definition at line 44 of file lx200apdriver.cpp.