Instrument Neutral Distributed Interface INDI  1.9.5
Classes | Macros | Enumerations
lx200_OnStep.h File Reference
#include "lx200generic.h"
#include "lx200driver.h"
#include "indicom.h"
#include "indifocuserinterface.h"
#include "indiweatherinterface.h"
#include "indirotatorinterface.h"
#include "connectionplugins/connectiontcp.h"
#include <cstring>
#include <unistd.h>
#include <termios.h>
#include <stdlib.h>

Go to the source code of this file.

Classes

class  LX200_OnStep
 

Macros

#define RB_MAX_LEN   64
 
#define CMD_MAX_LEN   32
 
#define setParkOnStep(fd)   write(fd, "#:hQ#", 5)
 
#define ReticPlus(fd)   write(fd, "#:B+#", 5)
 
#define ReticMoins(fd)   write(fd, "#:B-#", 5)
 
#define OnStepalign1(fd)   write(fd, "#:A1#", 5)
 
#define OnStepalign2(fd)   write(fd, "#:A2#", 5)
 
#define OnStepalign3(fd)   write(fd, "#:A3#", 5)
 
#define OnStepalignOK(fd)   write(fd, "#:A+#", 5)
 
#define OnStep
 
#define RB_MAX_LEN   64
 
#define PORTS_COUNT   10
 
#define STARTING_PORT   0
 

Enumerations

enum  ResponseErrors { RES_ERR_FORMAT = -1001 }
 
enum  Errors {
  ERR_NONE, ERR_MOTOR_FAULT, ERR_ALT_MIN, ERR_LIMIT_SENSE,
  ERR_DEC, ERR_AZM, ERR_UNDER_POLE, ERR_MERIDIAN,
  ERR_SYNC, ERR_PARK, ERR_GOTO_SYNC, ERR_UNSPECIFIED,
  ERR_ALT_MAX, ERR_GOTO_ERR_NONE, ERR_GOTO_ERR_BELOW_HORIZON, ERR_GOTO_ERR_ABOVE_OVERHEAD,
  ERR_GOTO_ERR_STANDBY, ERR_GOTO_ERR_PARK, ERR_GOTO_ERR_GOTO, ERR_GOTO_ERR_OUTSIDE_LIMITS,
  ERR_GOTO_ERR_HARDWARE_FAULT, ERR_GOTO_ERR_IN_MOTION, ERR_GOTO_ERR_UNSPECIFIED
}
 
enum  RateCompensation {
  RC_NONE, RC_REFR_RA, RC_REFR_BOTH, RC_FULL_RA,
  RC_FULL_BOTH
}
 
enum  MountType { MOUNTTYPE_GEM, MOUNTTYPE_FORK, MOUNTTYPE_FORK_ALT, MOUNTTYPE_ALTAZ }
 
enum  OnStepVersion {
  OSV_UNKNOWN, OSV_OnStepV1or2, OSV_OnStepV3, OSV_OnStepV4,
  OSV_OnStepV5, OSV_OnStepX
}
 

Macro Definition Documentation

◆ CMD_MAX_LEN

#define CMD_MAX_LEN   32

Definition at line 127 of file lx200_OnStep.h.

◆ OnStep

#define OnStep

Definition at line 136 of file lx200_OnStep.h.

◆ OnStepalign1

#define OnStepalign1 (   fd)    write(fd, "#:A1#", 5)

Definition at line 132 of file lx200_OnStep.h.

◆ OnStepalign2

#define OnStepalign2 (   fd)    write(fd, "#:A2#", 5)

Definition at line 133 of file lx200_OnStep.h.

◆ OnStepalign3

#define OnStepalign3 (   fd)    write(fd, "#:A3#", 5)

Definition at line 134 of file lx200_OnStep.h.

◆ OnStepalignOK

#define OnStepalignOK (   fd)    write(fd, "#:A+#", 5)

Definition at line 135 of file lx200_OnStep.h.

◆ PORTS_COUNT

#define PORTS_COUNT   10

Definition at line 139 of file lx200_OnStep.h.

◆ RB_MAX_LEN [1/2]

#define RB_MAX_LEN   64

Definition at line 137 of file lx200_OnStep.h.

◆ RB_MAX_LEN [2/2]

#define RB_MAX_LEN   64

Definition at line 137 of file lx200_OnStep.h.

◆ ReticMoins

#define ReticMoins (   fd)    write(fd, "#:B-#", 5)

Definition at line 131 of file lx200_OnStep.h.

◆ ReticPlus

#define ReticPlus (   fd)    write(fd, "#:B+#", 5)

Definition at line 130 of file lx200_OnStep.h.

◆ setParkOnStep

#define setParkOnStep (   fd)    write(fd, "#:hQ#", 5)

Definition at line 129 of file lx200_OnStep.h.

◆ STARTING_PORT

#define STARTING_PORT   0

Definition at line 140 of file lx200_OnStep.h.

Enumeration Type Documentation

◆ Errors

enum Errors
Enumerator
ERR_NONE 
ERR_MOTOR_FAULT 
ERR_ALT_MIN 
ERR_LIMIT_SENSE 
ERR_DEC 
ERR_AZM 
ERR_UNDER_POLE 
ERR_MERIDIAN 
ERR_SYNC 
ERR_PARK 
ERR_GOTO_SYNC 
ERR_UNSPECIFIED 
ERR_ALT_MAX 
ERR_GOTO_ERR_NONE 
ERR_GOTO_ERR_BELOW_HORIZON 
ERR_GOTO_ERR_ABOVE_OVERHEAD 
ERR_GOTO_ERR_STANDBY 
ERR_GOTO_ERR_PARK 
ERR_GOTO_ERR_GOTO 
ERR_GOTO_ERR_OUTSIDE_LIMITS 
ERR_GOTO_ERR_HARDWARE_FAULT 
ERR_GOTO_ERR_IN_MOTION 
ERR_GOTO_ERR_UNSPECIFIED 

Definition at line 144 of file lx200_OnStep.h.

◆ MountType

enum MountType
Enumerator
MOUNTTYPE_GEM 
MOUNTTYPE_FORK 
MOUNTTYPE_FORK_ALT 
MOUNTTYPE_ALTAZ 

Definition at line 147 of file lx200_OnStep.h.

◆ OnStepVersion

Enumerator
OSV_UNKNOWN 
OSV_OnStepV1or2 
OSV_OnStepV3 
OSV_OnStepV4 
OSV_OnStepV5 
OSV_OnStepX 

Definition at line 149 of file lx200_OnStep.h.

◆ RateCompensation

Enumerator
RC_NONE 
RC_REFR_RA 
RC_REFR_BOTH 
RC_FULL_RA 
RC_FULL_BOTH 

Definition at line 145 of file lx200_OnStep.h.

◆ ResponseErrors

Enumerator
RES_ERR_FORMAT 

Definition at line 142 of file lx200_OnStep.h.