Instrument Neutral Distributed Interface INDI  2.0.2
Macros | Functions
celestronprotocol.h File Reference
#include <libnova/julian_day.h>

Go to the source code of this file.

Macros

#define LOWER   90.
 
#define HIGHER   0.
 
#define REVERSE_NS   0 /* 1 for reverse; 0 for normal. */
 
#define MAXSLEWRATE   4 /* 2 for safety; 4 for 16-inch; 8 otherwise. */
 
#define SLEW   0
 
#define FIND   1
 
#define CENTER   2
 
#define GUIDE   3
 
#define NORTH   0
 
#define SOUTH   3
 
#define EAST   2
 
#define WEST   1
 
#define SLEWRATE8   8 /* should be 8 degrees per second (not 16-inch) */
 
#define SLEWRATE4   4 /* should be 4 degrees per second */
 
#define SLEWRATE3   3 /* should be 3 degrees per second */
 
#define SLEWRATE2   2 /* should be 2 degrees per second */
 
#define BRIGHTER   16 /* increase */
 
#define DIMMER   8 /* decrease */
 
#define BLINK0   0 /* no blinking */
 
#define BLINK1   1 /* blink rate 1 */
 
#define BLINK2   2 /* blink rate 2 */
 
#define BLINK3   4 /* blink rate 3 */
 
#define FOCUSOUT   8 /* positive voltage output */
 
#define FOCUSIN   4 /* negative voltage output */
 
#define FOCUSSTOP   0 /* no output */
 
#define FOCUSSLOW   1 /* half voltage */
 
#define FOCUSFAST   2 /* full voltage */
 
#define ROTATORON   1 /* image rotator on */
 
#define ROTATOROFF   0 /* image rotator off */
 
#define FANON   1 /* cooling fan on */
 
#define FANOFF   0 /* cooling fan off */
 

Functions

int ConnectTel (char *port)
 
void DisconnectTel ()
 
int CheckConnectTel ()
 
void SetRate (int newRate)
 
void SetLimits (double limitLower, double limitHigher)
 
int StartSlew (int direction)
 
int StopSlew (int direction)
 
double GetRA ()
 
double GetDec ()
 
int SlewToCoords (double newRA, double newDec)
 
int SyncToCoords (double newRA, double newDec)
 
int CheckCoords (double desRA, double desDec, double tolRA, double tolDEC)
 
int isScopeSlewing ()
 
int updateLocation (double lng, double lat)
 
int updateTime (struct ln_date *utc, double utc_offset)
 
void StopNSEW ()
 
int SetSlewRate ()
 
int SyncLST (double newTime)
 
int SyncLocalTime ()
 
void Reticle (int reticle)
 
void Focus (int focus)
 
void Derotator (int rotate)
 
void Fan (int fan)
 

Macro Definition Documentation

◆ BLINK0

#define BLINK0   0 /* no blinking */

Definition at line 81 of file celestronprotocol.h.

◆ BLINK1

#define BLINK1   1 /* blink rate 1 */

Definition at line 82 of file celestronprotocol.h.

◆ BLINK2

#define BLINK2   2 /* blink rate 2 */

Definition at line 83 of file celestronprotocol.h.

◆ BLINK3

#define BLINK3   4 /* blink rate 3 */

Definition at line 84 of file celestronprotocol.h.

◆ BRIGHTER

#define BRIGHTER   16 /* increase */

Definition at line 79 of file celestronprotocol.h.

◆ CENTER

#define CENTER   2

Definition at line 56 of file celestronprotocol.h.

◆ DIMMER

#define DIMMER   8 /* decrease */

Definition at line 80 of file celestronprotocol.h.

◆ EAST

#define EAST   2

Definition at line 67 of file celestronprotocol.h.

◆ FANOFF

#define FANOFF   0 /* cooling fan off */

Definition at line 102 of file celestronprotocol.h.

◆ FANON

#define FANON   1 /* cooling fan on */

Definition at line 101 of file celestronprotocol.h.

◆ FIND

#define FIND   1

Definition at line 55 of file celestronprotocol.h.

◆ FOCUSFAST

#define FOCUSFAST   2 /* full voltage */

Definition at line 92 of file celestronprotocol.h.

◆ FOCUSIN

#define FOCUSIN   4 /* negative voltage output */

Definition at line 89 of file celestronprotocol.h.

◆ FOCUSOUT

#define FOCUSOUT   8 /* positive voltage output */

Definition at line 88 of file celestronprotocol.h.

◆ FOCUSSLOW

#define FOCUSSLOW   1 /* half voltage */

Definition at line 91 of file celestronprotocol.h.

◆ FOCUSSTOP

#define FOCUSSTOP   0 /* no output */

Definition at line 90 of file celestronprotocol.h.

◆ GUIDE

#define GUIDE   3

Definition at line 57 of file celestronprotocol.h.

◆ HIGHER

#define HIGHER   0.

Definition at line 41 of file celestronprotocol.h.

◆ LOWER

#define LOWER   90.

Definition at line 36 of file celestronprotocol.h.

◆ MAXSLEWRATE

#define MAXSLEWRATE   4 /* 2 for safety; 4 for 16-inch; 8 otherwise. */

Definition at line 49 of file celestronprotocol.h.

◆ NORTH

#define NORTH   0

Definition at line 63 of file celestronprotocol.h.

◆ REVERSE_NS

#define REVERSE_NS   0 /* 1 for reverse; 0 for normal. */

Definition at line 45 of file celestronprotocol.h.

◆ ROTATOROFF

#define ROTATOROFF   0 /* image rotator off */

Definition at line 97 of file celestronprotocol.h.

◆ ROTATORON

#define ROTATORON   1 /* image rotator on */

Definition at line 96 of file celestronprotocol.h.

◆ SLEW

#define SLEW   0

Definition at line 54 of file celestronprotocol.h.

◆ SLEWRATE2

#define SLEWRATE2   2 /* should be 2 degrees per second */

Definition at line 75 of file celestronprotocol.h.

◆ SLEWRATE3

#define SLEWRATE3   3 /* should be 3 degrees per second */

Definition at line 74 of file celestronprotocol.h.

◆ SLEWRATE4

#define SLEWRATE4   4 /* should be 4 degrees per second */

Definition at line 73 of file celestronprotocol.h.

◆ SLEWRATE8

#define SLEWRATE8   8 /* should be 8 degrees per second (not 16-inch) */

Definition at line 72 of file celestronprotocol.h.

◆ SOUTH

#define SOUTH   3

Definition at line 64 of file celestronprotocol.h.

◆ WEST

#define WEST   1

Definition at line 68 of file celestronprotocol.h.

Function Documentation

◆ CheckConnectTel()

int CheckConnectTel ( )

Definition at line 102 of file celestronprotocol.c.

◆ CheckCoords()

int CheckCoords ( double  desRA,
double  desDec,
double  tolRA,
double  tolDEC 
)

Definition at line 703 of file celestronprotocol.c.

◆ ConnectTel()

int ConnectTel ( char *  port)

Definition at line 125 of file celestronprotocol.c.

◆ Derotator()

void Derotator ( int  rotate)

Definition at line 794 of file celestronprotocol.c.

◆ DisconnectTel()

void DisconnectTel ( )

Definition at line 304 of file celestronprotocol.c.

◆ Fan()

void Fan ( int  fan)

Definition at line 803 of file celestronprotocol.c.

◆ Focus()

void Focus ( int  focus)

Definition at line 786 of file celestronprotocol.c.

◆ GetDec()

double GetDec ( )

Definition at line 332 of file celestronprotocol.c.

◆ GetRA()

double GetRA ( )

Definition at line 318 of file celestronprotocol.c.

◆ isScopeSlewing()

int isScopeSlewing ( )

Definition at line 342 of file celestronprotocol.c.

◆ Reticle()

void Reticle ( int  reticle)

Definition at line 778 of file celestronprotocol.c.

◆ SetLimits()

void SetLimits ( double  limitLower,
double  limitHigher 
)

Definition at line 738 of file celestronprotocol.c.

◆ SetRate()

void SetRate ( int  newRate)

Definition at line 185 of file celestronprotocol.c.

◆ SetSlewRate()

int SetSlewRate ( )

Definition at line 746 of file celestronprotocol.c.

◆ SlewToCoords()

int SlewToCoords ( double  newRA,
double  newDec 
)

Definition at line 542 of file celestronprotocol.c.

◆ StartSlew()

int StartSlew ( int  direction)

Definition at line 208 of file celestronprotocol.c.

◆ StopNSEW()

void StopNSEW ( )

Definition at line 754 of file celestronprotocol.c.

◆ StopSlew()

int StopSlew ( int  direction)

Definition at line 259 of file celestronprotocol.c.

◆ SyncLocalTime()

int SyncLocalTime ( )

Definition at line 823 of file celestronprotocol.c.

◆ SyncLST()

int SyncLST ( double  newTime)

Definition at line 814 of file celestronprotocol.c.

◆ SyncToCoords()

int SyncToCoords ( double  newRA,
double  newDec 
)

Definition at line 417 of file celestronprotocol.c.

◆ updateLocation()

int updateLocation ( double  lng,
double  lat 
)

Definition at line 455 of file celestronprotocol.c.

◆ updateTime()

int updateTime ( struct ln_date *  utc,
double  utc_offset 
)

Definition at line 497 of file celestronprotocol.c.