TwiceAsNice  2019-02-18
Macros | Functions
celestronprotocol.h File Reference
#include <libnova/julian_day.h>
Include dependency graph for celestronprotocol.h:
This graph shows which files directly or indirectly include 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 */

◆ BLINK1

#define BLINK1   1 /* blink rate 1 */

◆ BLINK2

#define BLINK2   2 /* blink rate 2 */

◆ BLINK3

#define BLINK3   4 /* blink rate 3 */

◆ BRIGHTER

#define BRIGHTER   16 /* increase */

◆ CENTER

#define CENTER   2

◆ DIMMER

#define DIMMER   8 /* decrease */

◆ EAST

#define EAST   2

◆ FANOFF

#define FANOFF   0 /* cooling fan off */

◆ FANON

#define FANON   1 /* cooling fan on */

◆ FIND

#define FIND   1

◆ FOCUSFAST

#define FOCUSFAST   2 /* full voltage */

◆ FOCUSIN

#define FOCUSIN   4 /* negative voltage output */

◆ FOCUSOUT

#define FOCUSOUT   8 /* positive voltage output */

◆ FOCUSSLOW

#define FOCUSSLOW   1 /* half voltage */

◆ FOCUSSTOP

#define FOCUSSTOP   0 /* no output */

◆ GUIDE

#define GUIDE   3

◆ HIGHER

#define HIGHER   0.

◆ LOWER

#define LOWER   90.

◆ MAXSLEWRATE

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

◆ NORTH

#define NORTH   0

◆ REVERSE_NS

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

◆ ROTATOROFF

#define ROTATOROFF   0 /* image rotator off */

◆ ROTATORON

#define ROTATORON   1 /* image rotator on */

◆ SLEW

#define SLEW   0

◆ SLEWRATE2

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

◆ SLEWRATE3

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

◆ SLEWRATE4

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

◆ SLEWRATE8

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

◆ SOUTH

#define SOUTH   3

◆ WEST

#define WEST   1

Function Documentation

◆ CheckConnectTel()

int CheckConnectTel ( )

◆ CheckCoords()

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

◆ ConnectTel()

int ConnectTel ( char *  port)

◆ Derotator()

void Derotator ( int  rotate)

◆ DisconnectTel()

void DisconnectTel ( )

◆ Fan()

void Fan ( int  fan)

◆ Focus()

void Focus ( int  focus)

◆ GetDec()

double GetDec ( )

◆ GetRA()

double GetRA ( )

◆ isScopeSlewing()

int isScopeSlewing ( )

◆ Reticle()

void Reticle ( int  reticle)

◆ SetLimits()

void SetLimits ( double  limitLower,
double  limitHigher 
)

◆ SetRate()

void SetRate ( int  newRate)

◆ SetSlewRate()

int SetSlewRate ( )

◆ SlewToCoords()

int SlewToCoords ( double  newRA,
double  newDec 
)

◆ StartSlew()

int StartSlew ( int  direction)

◆ StopNSEW()

void StopNSEW ( )

◆ StopSlew()

int StopSlew ( int  direction)

◆ SyncLocalTime()

int SyncLocalTime ( )

◆ SyncLST()

int SyncLST ( double  newTime)

◆ SyncToCoords()

int SyncToCoords ( double  newRA,
double  newDec 
)

◆ updateLocation()

int updateLocation ( double  lng,
double  lat 
)

◆ updateTime()

int updateTime ( struct ln_date *  utc,
double  utc_offset 
)