TwiceAsNice  2019-02-18
Macros | Functions | Variables
ieqprodriver.cpp File Reference
#include "ieqprodriver.h"
#include "indicom.h"
#include "indilogger.h"
#include <libnova/julian_day.h>
#include <cmath>
#include <cstring>
#include <termios.h>
#include <unistd.h>
Include dependency graph for ieqprodriver.cpp:

Macros

#define IEQPRO_TIMEOUT   5 /* FD timeout in seconds */
 

Functions

void set_ieqpro_debug (bool enable)
 
void set_ieqpro_simulation (bool enable)
 
void set_ieqpro_device (const char *name)
 
void set_sim_gps_status (IEQ_GPS_STATUS value)
 
void set_sim_system_status (IEQ_SYSTEM_STATUS value)
 
void set_sim_track_rate (IEQ_TRACK_RATE value)
 
void set_sim_slew_rate (IEQ_SLEW_RATE value)
 
void set_sim_time_source (IEQ_TIME_SOURCE value)
 
void set_sim_hemisphere (IEQ_HEMISPHERE value)
 
void set_sim_ra (double ra)
 
void set_sim_dec (double dec)
 
void set_sim_guide_rate (double rate)
 
bool check_ieqpro_connection (int fd)
 
bool get_ieqpro_status (int fd, IEQInfo *info)
 Get iEQ current status info. More...
 
bool get_ieqpro_firmware (int fd, FirmwareInfo *info)
 Get All firmware informatin in addition to mount model. More...
 
bool get_ieqpro_model (int fd, FirmwareInfo *info)
 Get Mount model. More...
 
bool get_ieqpro_main_firmware (int fd, FirmwareInfo *info)
 Get mainboard and controller firmware only. More...
 
bool get_ieqpro_radec_firmware (int fd, FirmwareInfo *info)
 Get RA and DEC firmware info. More...
 
bool start_ieqpro_motion (int fd, IEQ_DIRECTION dir)
 
bool stop_ieqpro_motion (int fd, IEQ_DIRECTION dir)
 
bool find_ieqpro_home (int fd)
 
bool goto_ieqpro_home (int fd)
 
bool set_ieqpro_current_home (int fd)
 
bool set_ieqpro_slew_rate (int fd, IEQ_SLEW_RATE rate)
 
bool set_ieqpro_track_mode (int fd, IEQ_TRACK_RATE rate)
 
bool set_ieqpro_custom_ra_track_rate (int fd, double rate)
 
bool set_ieqpro_custom_de_track_rate (int fd, double rate)
 
bool set_ieqpro_guide_rate (int fd, double rate)
 
bool get_ieqpro_guide_rate (int fd, double *rate)
 
bool start_ieqpro_guide (int fd, IEQ_DIRECTION dir, int ms)
 
bool park_ieqpro (int fd)
 
bool unpark_ieqpro (int fd)
 
bool abort_ieqpro (int fd)
 
bool slew_ieqpro (int fd)
 
bool sync_ieqpro (int fd)
 
bool set_ieqpro_track_enabled (int fd, bool enabled)
 
bool set_ieqpro_ra (int fd, double ra)
 
bool set_ieqpro_dec (int fd, double dec)
 
bool set_ieqpro_longitude (int fd, double longitude)
 
bool set_ieqpro_latitude (int fd, double latitude)
 
bool get_ieqpro_longitude (int fd, double *longitude)
 
bool get_ieqpro_latitude (int fd, double *latitude)
 
bool set_ieqpro_local_date (int fd, int yy, int mm, int dd)
 
bool set_ieqpro_local_time (int fd, int hh, int mm, int ss)
 
bool set_ieqpro_daylight_saving (int fd, bool enabled)
 
bool set_ieqpro_utc_offset (int fd, double offset)
 
bool get_ieqpro_coords (int fd, double *ra, double *dec)
 Get RA/DEC. More...
 
bool get_ieqpro_utc_date_time (int fd, double *utc_hours, int *yy, int *mm, int *dd, int *hh, int *minute, int *ss)
 Get UTC/Date/Time. More...
 

Variables

static bool ieqpro_debug = false
 
static bool ieqpro_simulation = false
 
static char ieqpro_device [MAXINDIDEVICE] = "iEQ"
 
static IEQInfo simInfo
 
struct {
   double   ra
 
   double   dec
 
   double   guide_rate
 
simData
 

Macro Definition Documentation

◆ IEQPRO_TIMEOUT

#define IEQPRO_TIMEOUT   5 /* FD timeout in seconds */

Function Documentation

◆ abort_ieqpro()

bool abort_ieqpro ( int  fd)

◆ check_ieqpro_connection()

bool check_ieqpro_connection ( int  fd)

◆ find_ieqpro_home()

bool find_ieqpro_home ( int  fd)

◆ get_ieqpro_coords()

bool get_ieqpro_coords ( int  fd,
double *  ra,
double *  dec 
)

Get RA/DEC.

◆ get_ieqpro_firmware()

bool get_ieqpro_firmware ( int  fd,
FirmwareInfo info 
)

Get All firmware informatin in addition to mount model.

◆ get_ieqpro_guide_rate()

bool get_ieqpro_guide_rate ( int  fd,
double *  rate 
)

◆ get_ieqpro_latitude()

bool get_ieqpro_latitude ( int  fd,
double *  latitude 
)

◆ get_ieqpro_longitude()

bool get_ieqpro_longitude ( int  fd,
double *  longitude 
)

◆ get_ieqpro_main_firmware()

bool get_ieqpro_main_firmware ( int  fd,
FirmwareInfo info 
)

Get mainboard and controller firmware only.

◆ get_ieqpro_model()

bool get_ieqpro_model ( int  fd,
FirmwareInfo info 
)

Get Mount model.

◆ get_ieqpro_radec_firmware()

bool get_ieqpro_radec_firmware ( int  fd,
FirmwareInfo info 
)

Get RA and DEC firmware info.

◆ get_ieqpro_status()

bool get_ieqpro_status ( int  fd,
IEQInfo info 
)

Get iEQ current status info.

◆ get_ieqpro_utc_date_time()

bool get_ieqpro_utc_date_time ( int  fd,
double *  utc_hours,
int *  yy,
int *  mm,
int *  dd,
int *  hh,
int *  minute,
int *  ss 
)

Get UTC/Date/Time.

◆ goto_ieqpro_home()

bool goto_ieqpro_home ( int  fd)

◆ park_ieqpro()

bool park_ieqpro ( int  fd)

◆ set_ieqpro_current_home()

bool set_ieqpro_current_home ( int  fd)

◆ set_ieqpro_custom_de_track_rate()

bool set_ieqpro_custom_de_track_rate ( int  fd,
double  rate 
)

◆ set_ieqpro_custom_ra_track_rate()

bool set_ieqpro_custom_ra_track_rate ( int  fd,
double  rate 
)

◆ set_ieqpro_daylight_saving()

bool set_ieqpro_daylight_saving ( int  fd,
bool  enabled 
)

◆ set_ieqpro_debug()

void set_ieqpro_debug ( bool  enable)

◆ set_ieqpro_dec()

bool set_ieqpro_dec ( int  fd,
double  dec 
)

◆ set_ieqpro_device()

void set_ieqpro_device ( const char *  name)

◆ set_ieqpro_guide_rate()

bool set_ieqpro_guide_rate ( int  fd,
double  rate 
)

◆ set_ieqpro_latitude()

bool set_ieqpro_latitude ( int  fd,
double  latitude 
)

◆ set_ieqpro_local_date()

bool set_ieqpro_local_date ( int  fd,
int  yy,
int  mm,
int  dd 
)

◆ set_ieqpro_local_time()

bool set_ieqpro_local_time ( int  fd,
int  hh,
int  mm,
int  ss 
)

◆ set_ieqpro_longitude()

bool set_ieqpro_longitude ( int  fd,
double  longitude 
)

◆ set_ieqpro_ra()

bool set_ieqpro_ra ( int  fd,
double  ra 
)

◆ set_ieqpro_simulation()

void set_ieqpro_simulation ( bool  enable)

◆ set_ieqpro_slew_rate()

bool set_ieqpro_slew_rate ( int  fd,
IEQ_SLEW_RATE  rate 
)

◆ set_ieqpro_track_enabled()

bool set_ieqpro_track_enabled ( int  fd,
bool  enabled 
)

◆ set_ieqpro_track_mode()

bool set_ieqpro_track_mode ( int  fd,
IEQ_TRACK_RATE  rate 
)

◆ set_ieqpro_utc_offset()

bool set_ieqpro_utc_offset ( int  fd,
double  offset 
)

◆ set_sim_dec()

void set_sim_dec ( double  dec)

◆ set_sim_gps_status()

void set_sim_gps_status ( IEQ_GPS_STATUS  value)

◆ set_sim_guide_rate()

void set_sim_guide_rate ( double  rate)

◆ set_sim_hemisphere()

void set_sim_hemisphere ( IEQ_HEMISPHERE  value)

◆ set_sim_ra()

void set_sim_ra ( double  ra)

◆ set_sim_slew_rate()

void set_sim_slew_rate ( IEQ_SLEW_RATE  value)

◆ set_sim_system_status()

void set_sim_system_status ( IEQ_SYSTEM_STATUS  value)

◆ set_sim_time_source()

void set_sim_time_source ( IEQ_TIME_SOURCE  value)

◆ set_sim_track_rate()

void set_sim_track_rate ( IEQ_TRACK_RATE  value)

◆ slew_ieqpro()

bool slew_ieqpro ( int  fd)

◆ start_ieqpro_guide()

bool start_ieqpro_guide ( int  fd,
IEQ_DIRECTION  dir,
int  ms 
)

◆ start_ieqpro_motion()

bool start_ieqpro_motion ( int  fd,
IEQ_DIRECTION  dir 
)

◆ stop_ieqpro_motion()

bool stop_ieqpro_motion ( int  fd,
IEQ_DIRECTION  dir 
)

◆ sync_ieqpro()

bool sync_ieqpro ( int  fd)

◆ unpark_ieqpro()

bool unpark_ieqpro ( int  fd)

Variable Documentation

◆ dec

double dec

◆ guide_rate

double guide_rate

◆ ieqpro_debug

bool ieqpro_debug = false
static

◆ ieqpro_device

char ieqpro_device[MAXINDIDEVICE] = "iEQ"
static

◆ ieqpro_simulation

bool ieqpro_simulation = false
static

◆ ra

double ra

◆ simData

struct { ... } simData

◆ simInfo

IEQInfo simInfo
static