Instrument Neutral Distributed Interface INDI  1.9.5
Macros | Typedefs | Functions
celestronprotocol.c File Reference
#include "celestronprotocol.h"
#include <termios.h>

Go to the source code of this file.

Macros

#define NULL_PTR(x)   (x *)0
 

Typedefs

typedef fd_set telfds
 

Functions

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

Macro Definition Documentation

◆ NULL_PTR

#define NULL_PTR (   x)    (x *)0

Definition at line 33 of file celestronprotocol.c.

Typedef Documentation

◆ telfds

typedef fd_set telfds

Definition at line 96 of file celestronprotocol.c.

Function Documentation

◆ CheckConnectTel()

int CheckConnectTel ( void  )

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 ( void  )

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 ( void  )

Definition at line 332 of file celestronprotocol.c.

◆ GetRA()

double GetRA ( void  )

Definition at line 318 of file celestronprotocol.c.

◆ GetRAandDec()

void GetRAandDec ( void  )

Definition at line 356 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 ( void  )

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 ( void  )

Definition at line 754 of file celestronprotocol.c.

◆ StopSlew()

int StopSlew ( int  direction)

Definition at line 259 of file celestronprotocol.c.

◆ SyncLocalTime()

int SyncLocalTime ( void  )

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.