Instrument Neutral Distributed Interface INDI  1.9.5
Enumerations | Functions
Pulsar2Commands Namespace Reference

Enumerations

enum  PECorrection { PECorrectionOff = 0, PECorrectionOn = 1 }
 
enum  RCorrection { RCorrectionOff = 0, RCorrectionOn = 1 }
 
enum  TrackingRateInd {
  RateSidereal = 0, RateLunar = 1, RateSolar = 2, RateUser1 = 3,
  RateUser2 = 4, RateUser3 = 5, RateStill = 6, RateNone = 99
}
 
enum  MountType { German = 0, Fork = 1, AltAz = 2, NumMountTypes }
 
enum  OTASideOfPier { EastOfPier = 0, WestOfPier = 1, InvalidSideOfPier }
 
enum  PoleCrossing { PoleCrossingOff = 0, PoleCrossingOn = 1 }
 
enum  Rotation { RotationZero = 0, RotationOne = 1 }
 
enum  SlewMode {
  SlewMax = 0, SlewFind, SlewCenter, SlewGuide,
  NumSlewRates
}
 
enum  Direction {
  North = 0, East, South, West,
  NumDirections
}
 

Functions

const char * getDeviceName ()
 
bool getVersion (const int fd, char response[])
 
bool getPECorrection (const int fd, PECorrection *PECra, PECorrection *PECdec)
 
bool getRCorrection (const int fd, RCorrection *Rra, RCorrection *Rdec)
 
TrackingRateInd getTrackingRateInd (const int fd)
 
MountType getMountType (const int fd)
 
int getSpeedInd (const int fd, const char *cmd)
 
int getGuideSpeedInd (const int fd)
 
int getCenterSpeedInd (const int fd)
 
int getFindSpeedInd (const int fd)
 
int getSlewSpeedInd (const int fd)
 
int getGoToSpeedInd (const int fd)
 
bool getSwapTubeDelay (const int fd, int *delay_value)
 
bool getPoleCrossingDirection (const int fd, int *direction)
 
bool getRamp (const int fd, int *ra_ramp, int *dec_ramp)
 
bool setRamp (const int fd, int ra_ramp, int dec_ramp)
 
bool getReduction (const int fd, int *red_ra, int *red_dec)
 
bool setReduction (const int fd, int red_ra, int red_dec)
 
bool getMaingear (const int fd, int *mg_ra, int *mg_dec)
 
bool setMaingear (const int fd, int mg_ra, int mg_dec)
 
bool getBacklash (const int fd, int *bl_min, int *bl_sec)
 
bool setBacklash (const int fd, int bl_min, int bl_sec)
 
bool getHomePosition (const int fd, double *hp_alt, double *hp_az)
 
bool setHomePosition (const int fd, double hp_alt, double hp_az)
 
bool getUserRate (const int fd, int usr_ind, double *ur_ra, double *ur_dec)
 
bool getUserRate1 (const int fd, double *u1_ra, double *u1_dec)
 
bool getUserRate2 (const int fd, double *u2_ra, double *u2_dec)
 
bool getUserRate3 (const int fd, double *u3_ra, double *u3_dec)
 
bool setUserRate (const int fd, int usr_ind, double ur_ra, double ur_dec)
 
bool setUserRate1 (const int fd, double ur_ra, double ur_dec)
 
bool setUserRate2 (const int fd, double ur_ra, double ur_dec)
 
bool setUserRate3 (const int fd, double ur_ra, double ur_dec)
 
int getCurrentValue (const int fd, const char *cmd)
 
int getTrackingCurrent (const int fd)
 
int getStopCurrent (const int fd)
 
int getGoToCurrent (const int fd)
 
bool setMountType (const int fd, Pulsar2Commands::MountType mtype)
 
bool setCurrentValue (const int fd, const char *partialCmd, const int mA, const int maxmA)
 
bool setTrackingCurrent (const int fd, const int mA)
 
bool setStopCurrent (const int fd, const int mA)
 
bool setGoToCurrent (const int fd, const int mA)
 
bool setSpeedInd (const int fd, const char *partialCmd, const int speedInd, const int maxInd)
 
bool setGuideSpeedInd (const int fd, const int speedInd)
 
bool setCenterSpeedInd (const int fd, const int speedInd)
 
bool setFindSpeedInd (const int fd, const int speedInd)
 
bool setSlewSpeedInd (const int fd, const int speedInd)
 
bool setGoToSpeedInd (const int fd, const int speedInd)
 
bool getSideOfPier (const int fd, OTASideOfPier *ota_side_of_pier)
 
bool getPoleCrossing (const int fd, PoleCrossing *pole_crossing)
 
bool getRotation (const int fd, Rotation *rot_ra, Rotation *rot_dec)
 
bool getSexa (const int fd, const char *cmd, double *value)
 
bool getObjectRADec (const int fd, double *ra, double *dec)
 
bool getSiteLatitudeLongitude (const int fd, double *lat, double *lon)
 
bool getUTCDate (const int fd, int *m, int *d, int *y)
 
bool getUTCTime (const int fd, int *h, int *m, int *s)
 
bool setDegreesMinutes (const int fd, const char *partialCmd, const double value)
 
bool setSite (const int fd, const double longitude, const double latitude)
 
bool setSlewMode (const int fd, const SlewMode slewMode)
 
bool moveTo (const int fd, const Direction direction)
 
bool haltMovement (const int fd, const Direction direction)
 
bool startSlew (const int fd)
 
bool abortSlew (const int fd)
 
bool pulseGuide (const int fd, const Direction direction, uint32_t ms)
 
bool setTime (const int fd, const int h, const int m, const int s)
 
bool setDate (const int fd, const int dd, const int mm, const int yy)
 
bool ensureLongFormat (const int fd)
 
bool setObjectRA (const int fd, const double ra)
 
bool setObjectDEC (const int fd, const double dec)
 
bool setObjectRADec (const int fd, const double ra, const double dec)
 
bool park (const int fd)
 
bool unpark (const int fd)
 
bool sync (const int fd)
 
bool setSideOfPier (const int fd, const OTASideOfPier ota_side_of_pier)
 
bool setTrackingRateInd (const int fd, const TrackingRateInd tri)
 
bool setPECorrection (const int fd, const PECorrection pec_ra, const PECorrection pec_dec)
 
bool setPoleCrossing (const int fd, const PoleCrossing pole_crossing)
 
bool setRCorrection (const int fd, const RCorrection rc_ra, const RCorrection rc_dec)
 
bool setRotation (const int fd, const Rotation rot_ra, const Rotation rot_dec)
 
bool isHomeSet (const int fd)
 
bool isParked (const int fd)
 
bool isParking (const int fd)
 

Enumeration Type Documentation

◆ Direction

Enumerator
North 
East 
South 
West 
NumDirections 

Definition at line 428 of file lx200pulsar2.cpp.

◆ MountType

Enumerator
German 
Fork 
AltAz 
NumMountTypes 

Definition at line 392 of file lx200pulsar2.cpp.

◆ OTASideOfPier

Enumerator
EastOfPier 
WestOfPier 
InvalidSideOfPier 

Definition at line 400 of file lx200pulsar2.cpp.

◆ PECorrection

Enumerator
PECorrectionOff 
PECorrectionOn 

Definition at line 368 of file lx200pulsar2.cpp.

◆ PoleCrossing

Enumerator
PoleCrossingOff 
PoleCrossingOn 

Definition at line 407 of file lx200pulsar2.cpp.

◆ RCorrection

Enumerator
RCorrectionOff 
RCorrectionOn 

Definition at line 374 of file lx200pulsar2.cpp.

◆ Rotation

Enumerator
RotationZero 
RotationOne 

Definition at line 413 of file lx200pulsar2.cpp.

◆ SlewMode

Enumerator
SlewMax 
SlewFind 
SlewCenter 
SlewGuide 
NumSlewRates 

Definition at line 419 of file lx200pulsar2.cpp.

◆ TrackingRateInd

Enumerator
RateSidereal 
RateLunar 
RateSolar 
RateUser1 
RateUser2 
RateUser3 
RateStill 
RateNone 

Definition at line 380 of file lx200pulsar2.cpp.

Function Documentation

◆ abortSlew()

bool Pulsar2Commands::abortSlew ( const int  fd)

Definition at line 1031 of file lx200pulsar2.cpp.

◆ ensureLongFormat()

bool Pulsar2Commands::ensureLongFormat ( const int  fd)

Definition at line 1084 of file lx200pulsar2.cpp.

◆ getBacklash()

bool Pulsar2Commands::getBacklash ( const int  fd,
int *  bl_min,
int *  bl_sec 
)

Definition at line 641 of file lx200pulsar2.cpp.

◆ getCenterSpeedInd()

int Pulsar2Commands::getCenterSpeedInd ( const int  fd)

Definition at line 543 of file lx200pulsar2.cpp.

◆ getCurrentValue()

int Pulsar2Commands::getCurrentValue ( const int  fd,
const char *  cmd 
)

Definition at line 754 of file lx200pulsar2.cpp.

◆ getDeviceName()

const char* Pulsar2Commands::getDeviceName ( )

Definition at line 455 of file lx200pulsar2.cpp.

◆ getFindSpeedInd()

int Pulsar2Commands::getFindSpeedInd ( const int  fd)

Definition at line 548 of file lx200pulsar2.cpp.

◆ getGoToCurrent()

int Pulsar2Commands::getGoToCurrent ( const int  fd)

Definition at line 776 of file lx200pulsar2.cpp.

◆ getGoToSpeedInd()

int Pulsar2Commands::getGoToSpeedInd ( const int  fd)

Definition at line 558 of file lx200pulsar2.cpp.

◆ getGuideSpeedInd()

int Pulsar2Commands::getGuideSpeedInd ( const int  fd)

Definition at line 538 of file lx200pulsar2.cpp.

◆ getHomePosition()

bool Pulsar2Commands::getHomePosition ( const int  fd,
double *  hp_alt,
double *  hp_az 
)

Definition at line 662 of file lx200pulsar2.cpp.

◆ getMaingear()

bool Pulsar2Commands::getMaingear ( const int  fd,
int *  mg_ra,
int *  mg_dec 
)

Definition at line 620 of file lx200pulsar2.cpp.

◆ getMountType()

MountType Pulsar2Commands::getMountType ( const int  fd)

Definition at line 505 of file lx200pulsar2.cpp.

◆ getObjectRADec()

bool Pulsar2Commands::getObjectRADec ( const int  fd,
double *  ra,
double *  dec 
)

Definition at line 896 of file lx200pulsar2.cpp.

◆ getPECorrection()

bool Pulsar2Commands::getPECorrection ( const int  fd,
PECorrection PECra,
PECorrection PECdec 
)

Definition at line 467 of file lx200pulsar2.cpp.

◆ getPoleCrossing()

bool Pulsar2Commands::getPoleCrossing ( const int  fd,
PoleCrossing pole_crossing 
)

Definition at line 862 of file lx200pulsar2.cpp.

◆ getPoleCrossingDirection()

bool Pulsar2Commands::getPoleCrossingDirection ( const int  fd,
int *  direction 
)

Definition at line 570 of file lx200pulsar2.cpp.

◆ getRamp()

bool Pulsar2Commands::getRamp ( const int  fd,
int *  ra_ramp,
int *  dec_ramp 
)

Definition at line 577 of file lx200pulsar2.cpp.

◆ getRCorrection()

bool Pulsar2Commands::getRCorrection ( const int  fd,
RCorrection Rra,
RCorrection Rdec 
)

Definition at line 478 of file lx200pulsar2.cpp.

◆ getReduction()

bool Pulsar2Commands::getReduction ( const int  fd,
int *  red_ra,
int *  red_dec 
)

Definition at line 598 of file lx200pulsar2.cpp.

◆ getRotation()

bool Pulsar2Commands::getRotation ( const int  fd,
Rotation rot_ra,
Rotation rot_dec 
)

Definition at line 868 of file lx200pulsar2.cpp.

◆ getSexa()

bool Pulsar2Commands::getSexa ( const int  fd,
const char *  cmd,
double *  value 
)

Definition at line 880 of file lx200pulsar2.cpp.

◆ getSideOfPier()

bool Pulsar2Commands::getSideOfPier ( const int  fd,
OTASideOfPier ota_side_of_pier 
)

Definition at line 852 of file lx200pulsar2.cpp.

◆ getSiteLatitudeLongitude()

bool Pulsar2Commands::getSiteLatitudeLongitude ( const int  fd,
double *  lat,
double *  lon 
)

Definition at line 933 of file lx200pulsar2.cpp.

◆ getSlewSpeedInd()

int Pulsar2Commands::getSlewSpeedInd ( const int  fd)

Definition at line 553 of file lx200pulsar2.cpp.

◆ getSpeedInd()

int Pulsar2Commands::getSpeedInd ( const int  fd,
const char *  cmd 
)

Definition at line 526 of file lx200pulsar2.cpp.

◆ getStopCurrent()

int Pulsar2Commands::getStopCurrent ( const int  fd)

Definition at line 771 of file lx200pulsar2.cpp.

◆ getSwapTubeDelay()

bool Pulsar2Commands::getSwapTubeDelay ( const int  fd,
int *  delay_value 
)

Definition at line 564 of file lx200pulsar2.cpp.

◆ getTrackingCurrent()

int Pulsar2Commands::getTrackingCurrent ( const int  fd)

Definition at line 766 of file lx200pulsar2.cpp.

◆ getTrackingRateInd()

TrackingRateInd Pulsar2Commands::getTrackingRateInd ( const int  fd)

Definition at line 489 of file lx200pulsar2.cpp.

◆ getUserRate()

bool Pulsar2Commands::getUserRate ( const int  fd,
int  usr_ind,
double *  ur_ra,
double *  ur_dec 
)

Definition at line 688 of file lx200pulsar2.cpp.

◆ getUserRate1()

bool Pulsar2Commands::getUserRate1 ( const int  fd,
double *  u1_ra,
double *  u1_dec 
)

Definition at line 706 of file lx200pulsar2.cpp.

◆ getUserRate2()

bool Pulsar2Commands::getUserRate2 ( const int  fd,
double *  u2_ra,
double *  u2_dec 
)

Definition at line 711 of file lx200pulsar2.cpp.

◆ getUserRate3()

bool Pulsar2Commands::getUserRate3 ( const int  fd,
double *  u3_ra,
double *  u3_dec 
)

Definition at line 716 of file lx200pulsar2.cpp.

◆ getUTCDate()

bool Pulsar2Commands::getUTCDate ( const int  fd,
int *  m,
int *  d,
int *  y 
)

Definition at line 955 of file lx200pulsar2.cpp.

◆ getUTCTime()

bool Pulsar2Commands::getUTCTime ( const int  fd,
int *  h,
int *  m,
int *  s 
)

Definition at line 973 of file lx200pulsar2.cpp.

◆ getVersion()

bool Pulsar2Commands::getVersion ( const int  fd,
char  response[] 
)

Definition at line 462 of file lx200pulsar2.cpp.

◆ haltMovement()

bool Pulsar2Commands::haltMovement ( const int  fd,
const Direction  direction 
)

Definition at line 1016 of file lx200pulsar2.cpp.

◆ isHomeSet()

bool Pulsar2Commands::isHomeSet ( const int  fd)

Definition at line 1212 of file lx200pulsar2.cpp.

◆ isParked()

bool Pulsar2Commands::isParked ( const int  fd)

Definition at line 1219 of file lx200pulsar2.cpp.

◆ isParking()

bool Pulsar2Commands::isParking ( const int  fd)

Definition at line 1226 of file lx200pulsar2.cpp.

◆ moveTo()

bool Pulsar2Commands::moveTo ( const int  fd,
const Direction  direction 
)

Definition at line 1010 of file lx200pulsar2.cpp.

◆ park()

bool Pulsar2Commands::park ( const int  fd)

Definition at line 1126 of file lx200pulsar2.cpp.

◆ pulseGuide()

bool Pulsar2Commands::pulseGuide ( const int  fd,
const Direction  direction,
uint32_t  ms 
)

Definition at line 1037 of file lx200pulsar2.cpp.

◆ setBacklash()

bool Pulsar2Commands::setBacklash ( const int  fd,
int  bl_min,
int  bl_sec 
)

Definition at line 652 of file lx200pulsar2.cpp.

◆ setCenterSpeedInd()

bool Pulsar2Commands::setCenterSpeedInd ( const int  fd,
const int  speedInd 
)

Definition at line 827 of file lx200pulsar2.cpp.

◆ setCurrentValue()

bool Pulsar2Commands::setCurrentValue ( const int  fd,
const char *  partialCmd,
const int  mA,
const int  maxmA 
)

Definition at line 789 of file lx200pulsar2.cpp.

◆ setDate()

bool Pulsar2Commands::setDate ( const int  fd,
const int  dd,
const int  mm,
const int  yy 
)

Definition at line 1074 of file lx200pulsar2.cpp.

◆ setDegreesMinutes()

bool Pulsar2Commands::setDegreesMinutes ( const int  fd,
const char *  partialCmd,
const double  value 
)

Definition at line 988 of file lx200pulsar2.cpp.

◆ setFindSpeedInd()

bool Pulsar2Commands::setFindSpeedInd ( const int  fd,
const int  speedInd 
)

Definition at line 833 of file lx200pulsar2.cpp.

◆ setGoToCurrent()

bool Pulsar2Commands::setGoToCurrent ( const int  fd,
const int  mA 
)

Definition at line 808 of file lx200pulsar2.cpp.

◆ setGoToSpeedInd()

bool Pulsar2Commands::setGoToSpeedInd ( const int  fd,
const int  speedInd 
)

Definition at line 845 of file lx200pulsar2.cpp.

◆ setGuideSpeedInd()

bool Pulsar2Commands::setGuideSpeedInd ( const int  fd,
const int  speedInd 
)

Definition at line 822 of file lx200pulsar2.cpp.

◆ setHomePosition()

bool Pulsar2Commands::setHomePosition ( const int  fd,
double  hp_alt,
double  hp_az 
)

Definition at line 673 of file lx200pulsar2.cpp.

◆ setMaingear()

bool Pulsar2Commands::setMaingear ( const int  fd,
int  mg_ra,
int  mg_dec 
)

Definition at line 631 of file lx200pulsar2.cpp.

◆ setMountType()

bool Pulsar2Commands::setMountType ( const int  fd,
Pulsar2Commands::MountType  mtype 
)

Definition at line 781 of file lx200pulsar2.cpp.

◆ setObjectDEC()

bool Pulsar2Commands::setObjectDEC ( const int  fd,
const double  dec 
)

Definition at line 1109 of file lx200pulsar2.cpp.

◆ setObjectRA()

bool Pulsar2Commands::setObjectRA ( const int  fd,
const double  ra 
)

Definition at line 1099 of file lx200pulsar2.cpp.

◆ setObjectRADec()

bool Pulsar2Commands::setObjectRADec ( const int  fd,
const double  ra,
const double  dec 
)

Definition at line 1120 of file lx200pulsar2.cpp.

◆ setPECorrection()

bool Pulsar2Commands::setPECorrection ( const int  fd,
const PECorrection  pec_ra,
const PECorrection  pec_dec 
)

Definition at line 1172 of file lx200pulsar2.cpp.

◆ setPoleCrossing()

bool Pulsar2Commands::setPoleCrossing ( const int  fd,
const PoleCrossing  pole_crossing 
)

Definition at line 1181 of file lx200pulsar2.cpp.

◆ setRamp()

bool Pulsar2Commands::setRamp ( const int  fd,
int  ra_ramp,
int  dec_ramp 
)

Definition at line 588 of file lx200pulsar2.cpp.

◆ setRCorrection()

bool Pulsar2Commands::setRCorrection ( const int  fd,
const RCorrection  rc_ra,
const RCorrection  rc_dec 
)

Definition at line 1189 of file lx200pulsar2.cpp.

◆ setReduction()

bool Pulsar2Commands::setReduction ( const int  fd,
int  red_ra,
int  red_dec 
)

Definition at line 609 of file lx200pulsar2.cpp.

◆ setRotation()

bool Pulsar2Commands::setRotation ( const int  fd,
const Rotation  rot_ra,
const Rotation  rot_dec 
)

Definition at line 1199 of file lx200pulsar2.cpp.

◆ setSideOfPier()

bool Pulsar2Commands::setSideOfPier ( const int  fd,
const OTASideOfPier  ota_side_of_pier 
)

Definition at line 1154 of file lx200pulsar2.cpp.

◆ setSite()

bool Pulsar2Commands::setSite ( const int  fd,
const double  longitude,
const double  latitude 
)

Definition at line 999 of file lx200pulsar2.cpp.

◆ setSlewMode()

bool Pulsar2Commands::setSlewMode ( const int  fd,
const SlewMode  slewMode 
)

Definition at line 1004 of file lx200pulsar2.cpp.

◆ setSlewSpeedInd()

bool Pulsar2Commands::setSlewSpeedInd ( const int  fd,
const int  speedInd 
)

Definition at line 839 of file lx200pulsar2.cpp.

◆ setSpeedInd()

bool Pulsar2Commands::setSpeedInd ( const int  fd,
const char *  partialCmd,
const int  speedInd,
const int  maxInd 
)

Definition at line 813 of file lx200pulsar2.cpp.

◆ setStopCurrent()

bool Pulsar2Commands::setStopCurrent ( const int  fd,
const int  mA 
)

Definition at line 803 of file lx200pulsar2.cpp.

◆ setTime()

bool Pulsar2Commands::setTime ( const int  fd,
const int  h,
const int  m,
const int  s 
)

Definition at line 1066 of file lx200pulsar2.cpp.

◆ setTrackingCurrent()

bool Pulsar2Commands::setTrackingCurrent ( const int  fd,
const int  mA 
)

Definition at line 798 of file lx200pulsar2.cpp.

◆ setTrackingRateInd()

bool Pulsar2Commands::setTrackingRateInd ( const int  fd,
const TrackingRateInd  tri 
)

Definition at line 1162 of file lx200pulsar2.cpp.

◆ setUserRate()

bool Pulsar2Commands::setUserRate ( const int  fd,
int  usr_ind,
double  ur_ra,
double  ur_dec 
)

Definition at line 723 of file lx200pulsar2.cpp.

◆ setUserRate1()

bool Pulsar2Commands::setUserRate1 ( const int  fd,
double  ur_ra,
double  ur_dec 
)

Definition at line 737 of file lx200pulsar2.cpp.

◆ setUserRate2()

bool Pulsar2Commands::setUserRate2 ( const int  fd,
double  ur_ra,
double  ur_dec 
)

Definition at line 742 of file lx200pulsar2.cpp.

◆ setUserRate3()

bool Pulsar2Commands::setUserRate3 ( const int  fd,
double  ur_ra,
double  ur_dec 
)

Definition at line 747 of file lx200pulsar2.cpp.

◆ startSlew()

bool Pulsar2Commands::startSlew ( const int  fd)

Definition at line 1023 of file lx200pulsar2.cpp.

◆ sync()

bool Pulsar2Commands::sync ( const int  fd)

Definition at line 1147 of file lx200pulsar2.cpp.

◆ unpark()

bool Pulsar2Commands::unpark ( const int  fd)

Definition at line 1133 of file lx200pulsar2.cpp.