Instrument Neutral Distributed Interface INDI
2.0.2
|
#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 |
#define LX200_TIMEOUT 5 /* FD timeout in seconds */ |
Definition at line 39 of file lx200apdriver.cpp.
#define MAX_LX200AP_PULSE_LEN 999 |
Definition at line 42 of file lx200apdriver.cpp.
bool apCanHome | ( | int | fd | ) |
Definition at line 1021 of file lx200apdriver.cpp.
int apHomeAndSync | ( | int | fd | ) |
Definition at line 1030 of file lx200apdriver.cpp.
const char* apMountStatus | ( | const char * | statusString | ) |
Definition at line 879 of file lx200apdriver.cpp.
int APParkMount | ( | int | fd | ) |
Definition at line 693 of file lx200apdriver.cpp.
APRateTableState apRateTable | ( | const char * | statusString | ) |
Definition at line 924 of file lx200apdriver.cpp.
int APSendPulseCmd | ( | int | fd, |
int | direction, | ||
int | duration_msec | ||
) |
Definition at line 659 of file lx200apdriver.cpp.
bool apStatusParked | ( | const char * | statusString | ) |
Definition at line 913 of file lx200apdriver.cpp.
bool apStatusSlewing | ( | const char * | statusString | ) |
Definition at line 918 of file lx200apdriver.cpp.
int APSyncCM | ( | int | fd, |
char * | matchedObject | ||
) |
Definition at line 284 of file lx200apdriver.cpp.
int APSyncCMR | ( | int | fd, |
char * | matchedObject | ||
) |
Definition at line 312 of file lx200apdriver.cpp.
int APUnParkMount | ( | int | fd | ) |
Definition at line 699 of file lx200apdriver.cpp.
int check_lx200ap_connection | ( | int | fd | ) |
Definition at line 53 of file lx200apdriver.cpp.
int check_lx200ap_status | ( | int | fd, |
char * | parkStatus, | ||
char * | slewStatus | ||
) |
Definition at line 861 of file lx200apdriver.cpp.
int getApMountFeatures | ( | int | fd, |
bool * | hasEncoder, | ||
bool * | clutchAware | ||
) |
Definition at line 973 of file lx200apdriver.cpp.
int getApStatusString | ( | int | fd, |
char * | statusString | ||
) |
Definition at line 841 of file lx200apdriver.cpp.
int getApStatusStringInternal | ( | int | fd, |
char * | statusString, | ||
bool | complain | ||
) |
Definition at line 804 of file lx200apdriver.cpp.
int getAPUTCOffset | ( | int | fd, |
double * | value | ||
) |
Definition at line 101 of file lx200apdriver.cpp.
int getAPWormPosition | ( | int | fd, |
int * | position | ||
) |
Definition at line 375 of file lx200apdriver.cpp.
int isAPInitialized | ( | int | fd, |
bool * | isInitialized | ||
) |
Definition at line 1035 of file lx200apdriver.cpp.
int selectAPCenterRate | ( | int | fd, |
int | centerIndex | ||
) |
Definition at line 709 of file lx200apdriver.cpp.
int selectAPGuideRate | ( | int | fd, |
int | guideRate | ||
) |
Definition at line 464 of file lx200apdriver.cpp.
int selectAPMoveToRate | ( | int | fd, |
int | moveToIndex | ||
) |
Definition at line 408 of file lx200apdriver.cpp.
int selectAPPECState | ( | int | fd, |
int | pecstate | ||
) |
Definition at line 354 of file lx200apdriver.cpp.
int selectAPSlewRate | ( | int | fd, |
int | slewIndex | ||
) |
Definition at line 426 of file lx200apdriver.cpp.
int selectAPTrackingMode | ( | int | fd, |
int | trackMode | ||
) |
Definition at line 442 of file lx200apdriver.cpp.
int selectAPV2CenterRate | ( | int | fd, |
int | centerIndex, | ||
APRateTableState | rateTable | ||
) |
Definition at line 729 of file lx200apdriver.cpp.
int sendAPCommand | ( | int | fd, |
const char * | cmd, | ||
const char * | comment | ||
) |
Definition at line 341 of file lx200apdriver.cpp.
void set_lx200ap_name | ( | const char * | deviceName, |
unsigned int | debug_level | ||
) |
Definition at line 47 of file lx200apdriver.cpp.
int setAPDETrackRate | ( | int | fd, |
double | rate | ||
) |
Definition at line 610 of file lx200apdriver.cpp.
int setAPObjectAlt | ( | int | fd, |
double | alt | ||
) |
Definition at line 251 of file lx200apdriver.cpp.
int setAPObjectAZ | ( | int | fd, |
double | az | ||
) |
Definition at line 231 of file lx200apdriver.cpp.
int setAPObjectDEC | ( | int | fd, |
double | dec | ||
) |
Definition at line 513 of file lx200apdriver.cpp.
int setAPObjectRA | ( | int | fd, |
double | ra | ||
) |
Definition at line 494 of file lx200apdriver.cpp.
int setAPRATrackRate | ( | int | fd, |
double | rate | ||
) |
Definition at line 562 of file lx200apdriver.cpp.
int setAPSiteLatitude | ( | int | fd, |
double | Lat | ||
) |
Definition at line 547 of file lx200apdriver.cpp.
int setAPSiteLongitude | ( | int | fd, |
double | Long | ||
) |
Definition at line 529 of file lx200apdriver.cpp.
int setAPUTCOffset | ( | int | fd, |
double | hours | ||
) |
Definition at line 269 of file lx200apdriver.cpp.
int swapAPButtons | ( | int | fd, |
int | currentSwap | ||
) |
Definition at line 480 of file lx200apdriver.cpp.
unsigned int AP_DBG_SCOPE |
Definition at line 45 of file lx200apdriver.cpp.
char lx200ap_name[MAXINDIDEVICE] |
Definition at line 44 of file lx200apdriver.cpp.