Instrument Neutral Distributed Interface INDI  1.9.2
Macros | Functions | Variables
ieqprolegacydriver.cpp File Reference
#include "ieqprolegacydriver.h"
#include "indicom.h"
#include "indilogger.h"
#include <libnova/julian_day.h>
#include <cmath>
#include <map>
#include <cstring>
#include <termios.h>
#include <unistd.h>

Go to the source code of this file.

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 ra, double de)
 
bool check_ieqpro_connection (int fd)
 
bool get_ieqpro_status (int fd, IEQInfo *info)
 
bool get_ieqpro_firmware (int fd, FirmwareInfo *info)
 
bool get_ieqpro_model (int fd, FirmwareInfo *info)
 
bool get_ieqpro_main_firmware (int fd, FirmwareInfo *info)
 
bool get_ieqpro_radec_firmware (int fd, FirmwareInfo *info)
 
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 raRate, double deRate)
 
bool get_ieqpro_guide_rate (int fd, double *raRate, double *deRate)
 
bool start_ieqpro_guide (int fd, IEQ_DIRECTION dir, uint32_t 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)
 
bool get_ieqpro_utc_date_time (int fd, double *utc_hours, int *yy, int *mm, int *dd, int *hh, int *minute, int *ss)
 

Variables

struct {
   double   ra
 
   double   dec
 
   double   ra_guide_rate
 
   double   de_guide_rate
 
simData
 

Macro Definition Documentation

◆ IEQPRO_TIMEOUT

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

Definition at line 34 of file ieqprolegacydriver.cpp.

Function Documentation

◆ abort_ieqpro()

bool abort_ieqpro ( int  fd)

Definition at line 1193 of file ieqprolegacydriver.cpp.

◆ check_ieqpro_connection()

bool check_ieqpro_connection ( int  fd)

Definition at line 115 of file ieqprolegacydriver.cpp.

◆ find_ieqpro_home()

bool find_ieqpro_home ( int  fd)

Definition at line 556 of file ieqprolegacydriver.cpp.

◆ get_ieqpro_coords()

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

Get RA/DEC

Definition at line 1958 of file ieqprolegacydriver.cpp.

◆ get_ieqpro_firmware()

bool get_ieqpro_firmware ( int  fd,
FirmwareInfo info 
)

Get All firmware informatin in addition to mount model

Definition at line 229 of file ieqprolegacydriver.cpp.

◆ get_ieqpro_guide_rate()

bool get_ieqpro_guide_rate ( int  fd,
double *  raRate,
double *  deRate 
)

Definition at line 983 of file ieqprolegacydriver.cpp.

◆ get_ieqpro_latitude()

bool get_ieqpro_latitude ( int  fd,
double *  latitude 
)

Definition at line 1688 of file ieqprolegacydriver.cpp.

◆ get_ieqpro_longitude()

bool get_ieqpro_longitude ( int  fd,
double *  longitude 
)

Definition at line 1629 of file ieqprolegacydriver.cpp.

◆ get_ieqpro_main_firmware()

bool get_ieqpro_main_firmware ( int  fd,
FirmwareInfo info 
)

Get mainboard and controller firmware only

Definition at line 327 of file ieqprolegacydriver.cpp.

◆ get_ieqpro_model()

bool get_ieqpro_model ( int  fd,
FirmwareInfo info 
)

Get Mount model

Definition at line 248 of file ieqprolegacydriver.cpp.

◆ get_ieqpro_radec_firmware()

bool get_ieqpro_radec_firmware ( int  fd,
FirmwareInfo info 
)

Get RA and DEC firmware info

Definition at line 387 of file ieqprolegacydriver.cpp.

◆ get_ieqpro_status()

bool get_ieqpro_status ( int  fd,
IEQInfo info 
)

Get iEQ current status info

Definition at line 169 of file ieqprolegacydriver.cpp.

◆ 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

Definition at line 2032 of file ieqprolegacydriver.cpp.

◆ goto_ieqpro_home()

bool goto_ieqpro_home ( int  fd)

Definition at line 604 of file ieqprolegacydriver.cpp.

◆ park_ieqpro()

bool park_ieqpro ( int  fd)

Definition at line 1086 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_current_home()

bool set_ieqpro_current_home ( int  fd)

Definition at line 652 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_custom_de_track_rate()

bool set_ieqpro_custom_de_track_rate ( int  fd,
double  rate 
)

Definition at line 875 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_custom_ra_track_rate()

bool set_ieqpro_custom_ra_track_rate ( int  fd,
double  rate 
)

Definition at line 819 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_daylight_saving()

bool set_ieqpro_daylight_saving ( int  fd,
bool  enabled 
)

Definition at line 1847 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_debug()

void set_ieqpro_debug ( bool  enable)

Definition at line 49 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_dec()

bool set_ieqpro_dec ( int  fd,
double  dec 
)

Definition at line 1455 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_device()

void set_ieqpro_device ( const char *  name)

Definition at line 64 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_guide_rate()

bool set_ieqpro_guide_rate ( int  fd,
double  raRate,
double  deRate 
)

Definition at line 931 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_latitude()

bool set_ieqpro_latitude ( int  fd,
double  latitude 
)

Definition at line 1572 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_local_date()

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

Definition at line 1747 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_local_time()

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

Definition at line 1797 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_longitude()

bool set_ieqpro_longitude ( int  fd,
double  longitude 
)

Definition at line 1515 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_ra()

bool set_ieqpro_ra ( int  fd,
double  ra 
)

Definition at line 1401 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_simulation()

void set_ieqpro_simulation ( bool  enable)

Definition at line 54 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_slew_rate()

bool set_ieqpro_slew_rate ( int  fd,
IEQ_SLEW_RATE  rate 
)

Definition at line 700 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_track_enabled()

bool set_ieqpro_track_enabled ( int  fd,
bool  enabled 
)

Definition at line 1350 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_track_mode()

bool set_ieqpro_track_mode ( int  fd,
IEQ_TRACK_RATE  rate 
)

Definition at line 751 of file ieqprolegacydriver.cpp.

◆ set_ieqpro_utc_offset()

bool set_ieqpro_utc_offset ( int  fd,
double  offset 
)

Definition at line 1900 of file ieqprolegacydriver.cpp.

◆ set_sim_dec()

void set_sim_dec ( double  dec)

Definition at line 104 of file ieqprolegacydriver.cpp.

◆ set_sim_gps_status()

void set_sim_gps_status ( IEQ_GPS_STATUS  value)

Definition at line 69 of file ieqprolegacydriver.cpp.

◆ set_sim_guide_rate()

void set_sim_guide_rate ( double  ra,
double  de 
)

Definition at line 109 of file ieqprolegacydriver.cpp.

◆ set_sim_hemisphere()

void set_sim_hemisphere ( IEQ_HEMISPHERE  value)

Definition at line 94 of file ieqprolegacydriver.cpp.

◆ set_sim_ra()

void set_sim_ra ( double  ra)

Definition at line 99 of file ieqprolegacydriver.cpp.

◆ set_sim_slew_rate()

void set_sim_slew_rate ( IEQ_SLEW_RATE  value)

Definition at line 84 of file ieqprolegacydriver.cpp.

◆ set_sim_system_status()

void set_sim_system_status ( IEQ_SYSTEM_STATUS  value)

Definition at line 74 of file ieqprolegacydriver.cpp.

◆ set_sim_time_source()

void set_sim_time_source ( IEQ_TIME_SOURCE  value)

Definition at line 89 of file ieqprolegacydriver.cpp.

◆ set_sim_track_rate()

void set_sim_track_rate ( IEQ_TRACK_RATE  value)

Definition at line 79 of file ieqprolegacydriver.cpp.

◆ slew_ieqpro()

bool slew_ieqpro ( int  fd)

Definition at line 1243 of file ieqprolegacydriver.cpp.

◆ start_ieqpro_guide()

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

Definition at line 1036 of file ieqprolegacydriver.cpp.

◆ start_ieqpro_motion()

bool start_ieqpro_motion ( int  fd,
IEQ_DIRECTION  dir 
)

Definition at line 447 of file ieqprolegacydriver.cpp.

◆ stop_ieqpro_motion()

bool stop_ieqpro_motion ( int  fd,
IEQ_DIRECTION  dir 
)

Definition at line 495 of file ieqprolegacydriver.cpp.

◆ sync_ieqpro()

bool sync_ieqpro ( int  fd)

Definition at line 1302 of file ieqprolegacydriver.cpp.

◆ unpark_ieqpro()

bool unpark_ieqpro ( int  fd)

Definition at line 1144 of file ieqprolegacydriver.cpp.

Variable Documentation

◆ de_guide_rate

double de_guide_rate

Definition at line 46 of file ieqprolegacydriver.cpp.

◆ dec

double dec
Examples
simplescope.cpp.

Definition at line 44 of file ieqprolegacydriver.cpp.

◆ ra

double ra
Examples
simplescope.cpp.

Definition at line 43 of file ieqprolegacydriver.cpp.

◆ ra_guide_rate

double ra_guide_rate

Definition at line 45 of file ieqprolegacydriver.cpp.

◆ simData

struct { ... } simData