#include <skywatcher.h>
|
enum | SkywatcherCommand {
Initialize = 'F',
InquireMotorBoardVersion = 'e',
InquireGridPerRevolution = 'a',
InquireTimerInterruptFreq = 'b',
InquireHighSpeedRatio = 'g',
InquirePECPeriod = 's',
InstantAxisStop = 'L',
NotInstantAxisStop = 'K',
SetAxisPositionCmd = 'E',
GetAxisPosition = 'j',
GetAxisStatus = 'f',
SetSwitch = 'O',
SetMotionMode = 'G',
SetGotoTargetIncrement = 'H',
SetBreakPointIncrement = 'M',
SetGotoTarget = 'S',
SetBreakStep = 'U',
SetStepPeriod = 'I',
StartMotion = 'J',
GetStepPeriod = 'D',
ActivateMotor = 'B',
SetST4GuideRateCmd = 'P',
GetHomePosition = 'd',
SetFeatureCmd = 'W',
GetFeatureCmd = 'q',
InquireAuxEncoder = 'd',
NUMBER_OF_SkywatcherCommand
} |
|
enum | SkywatcherAxis { Axis1 = 0,
Axis2 = 1,
NUMBER_OF_SKYWATCHERAXIS
} |
|
enum | SkywatcherDirection { BACKWARD = 0,
FORWARD = 1
} |
|
enum | SkywatcherSlewMode { SLEW = 0,
GOTO = 1
} |
|
enum | SkywatcherSpeedMode { LOWSPEED = 0,
HIGHSPEED = 1
} |
|
enum | SkywatcherGetFeatureCmd { GET_INDEXER_CMD = 0x00,
GET_FEATURES_CMD = 0x01
} |
|
enum | SkywatcherSetFeatureCmd {
START_PPEC_TRAINING_CMD = 0x00,
STOP_PPEC_TRAINING_CMD = 0x01,
TURN_PPEC_ON_CMD = 0x02,
TURN_PPEC_OFF_CMD = 0X03,
ENCODER_ON_CMD = 0x04,
ENCODER_OFF_CMD = 0x05,
DISABLE_FULL_CURRENT_LOW_SPEED_CMD = 0x0006,
ENABLE_FULL_CURRENT_LOW_SPEED_CMD = 0x0106,
RESET_HOME_INDEXER_CMD = 0x08
} |
|
enum | SkywatcherError { NO_ERROR,
ER_1,
ER_2,
ER_3
} |
|
typedef struct Skywatcher::SkyWatcherFeatures | SkyWatcherFeatures |
|
typedef struct Skywatcher::SkywatcherAxisStatus | SkywatcherAxisStatus |
|
|
void | CheckMotorStatus (SkywatcherAxis axis) |
|
void | ReadMotorStatus (SkywatcherAxis axis) |
|
void | SetMotion (SkywatcherAxis axis, SkywatcherAxisStatus newstatus) |
|
void | SetSpeed (SkywatcherAxis axis, unsigned long period) |
|
void | SetTarget (SkywatcherAxis axis, unsigned long increment) |
|
void | SetTargetBreaks (SkywatcherAxis axis, unsigned long increment) |
|
void | SetAbsTarget (SkywatcherAxis axis, unsigned long target) |
|
void | SetAbsTargetBreaks (SkywatcherAxis axis, unsigned long breakstep) |
|
void | StartMotor (SkywatcherAxis axis) |
|
void | StopMotor (SkywatcherAxis axis) |
|
void | InstantStopMotor (SkywatcherAxis axis) |
|
void | StopWaitMotor (SkywatcherAxis axis) |
|
void | SetFeature (SkywatcherAxis axis, unsigned long command) |
|
void | GetFeature (SkywatcherAxis axis, unsigned long command) |
|
void | TurnEncoder (SkywatcherAxis axis, bool on) |
|
unsigned long | ReadEncoder (SkywatcherAxis axis) |
|
void | ResetIndexer (SkywatcherAxis axis) |
|
void | GetIndexer (SkywatcherAxis axis) |
|
void | SetST4GuideRate (SkywatcherAxis axis, unsigned char r) |
|
void | SetAxisPosition (SkywatcherAxis axis, unsigned long step) |
|
void | TurnPPECTraining (SkywatcherAxis axis, bool on) |
|
void | TurnPPEC (SkywatcherAxis axis, bool on) |
|
void | GetPPECStatus (SkywatcherAxis axis, bool *intraining, bool *inppec) |
|
bool | read_eqmod () |
|
bool | dispatch_command (SkywatcherCommand cmd, SkywatcherAxis axis, char *arg) |
|
unsigned long | Revu24str2long (char *) |
|
unsigned long | Highstr2long (char *) |
|
void | long2Revu24str (unsigned long, char *) |
|
double | get_min_rate () |
|
double | get_max_rate () |
|
bool | isDebug () |
|
◆ SkywatcherAxisStatus
◆ SkyWatcherFeatures
◆ SkywatcherAxis
Enumerator |
---|
Axis1 | |
Axis2 | |
NUMBER_OF_SKYWATCHERAXIS | |
◆ SkywatcherCommand
Enumerator |
---|
Initialize | |
InquireMotorBoardVersion | |
InquireGridPerRevolution | |
InquireTimerInterruptFreq | |
InquireHighSpeedRatio | |
InquirePECPeriod | |
InstantAxisStop | |
NotInstantAxisStop | |
SetAxisPositionCmd | |
GetAxisPosition | |
GetAxisStatus | |
SetSwitch | |
SetMotionMode | |
SetGotoTargetIncrement | |
SetBreakPointIncrement | |
SetGotoTarget | |
SetBreakStep | |
SetStepPeriod | |
StartMotion | |
GetStepPeriod | |
ActivateMotor | |
SetST4GuideRateCmd | |
GetHomePosition | |
SetFeatureCmd | |
GetFeatureCmd | |
InquireAuxEncoder | |
NUMBER_OF_SkywatcherCommand | |
◆ SkywatcherDirection
Enumerator |
---|
BACKWARD | |
FORWARD | |
◆ SkywatcherError
Enumerator |
---|
NO_ERROR | |
ER_1 | |
ER_2 | |
ER_3 | |
◆ SkywatcherGetFeatureCmd
Enumerator |
---|
GET_INDEXER_CMD | |
GET_FEATURES_CMD | |
◆ SkywatcherSetFeatureCmd
Enumerator |
---|
START_PPEC_TRAINING_CMD | |
STOP_PPEC_TRAINING_CMD | |
TURN_PPEC_ON_CMD | |
TURN_PPEC_OFF_CMD | |
ENCODER_ON_CMD | |
ENCODER_OFF_CMD | |
DISABLE_FULL_CURRENT_LOW_SPEED_CMD | |
ENABLE_FULL_CURRENT_LOW_SPEED_CMD | |
RESET_HOME_INDEXER_CMD | |
◆ SkywatcherSlewMode
◆ SkywatcherSpeedMode
Enumerator |
---|
LOWSPEED | |
HIGHSPEED | |
◆ Skywatcher()
Skywatcher::Skywatcher |
( |
EQMod * |
t | ) |
|
◆ ~Skywatcher()
Skywatcher::~Skywatcher |
( |
void |
| ) |
|
◆ AbsSlewTo()
void Skywatcher::AbsSlewTo |
( |
unsigned long |
raencoder, |
|
|
unsigned long |
deencoder, |
|
|
bool |
raup, |
|
|
bool |
deup |
|
) |
| |
◆ CheckMotorStatus()
◆ Disconnect()
bool Skywatcher::Disconnect |
( |
| ) |
|
◆ dispatch_command()
◆ get_max_rate()
double Skywatcher::get_max_rate |
( |
| ) |
|
|
private |
◆ get_min_rate()
double Skywatcher::get_min_rate |
( |
| ) |
|
|
private |
◆ GetDEAuxEncoder()
unsigned long Skywatcher::GetDEAuxEncoder |
( |
| ) |
|
◆ GetDEEncoder()
unsigned long Skywatcher::GetDEEncoder |
( |
| ) |
|
◆ GetDEEncoderHome()
unsigned long Skywatcher::GetDEEncoderHome |
( |
| ) |
|
◆ GetDEEncoderTotal()
unsigned long Skywatcher::GetDEEncoderTotal |
( |
| ) |
|
◆ GetDEEncoderZero()
unsigned long Skywatcher::GetDEEncoderZero |
( |
| ) |
|
◆ GetDEIndexer()
void Skywatcher::GetDEIndexer |
( |
| ) |
|
◆ GetDEMotorStatus()
◆ GetDEPeriod()
unsigned long Skywatcher::GetDEPeriod |
( |
| ) |
|
◆ GetDEPPECStatus()
void Skywatcher::GetDEPPECStatus |
( |
bool * |
intraining, |
|
|
bool * |
inppec |
|
) |
| |
◆ getDeviceName()
const char * Skywatcher::getDeviceName |
( |
| ) |
|
◆ GetFeature()
◆ GetIndexer()
◆ GetlastreadDEIndexer()
unsigned long Skywatcher::GetlastreadDEIndexer |
( |
| ) |
|
◆ GetlastreadRAIndexer()
unsigned long Skywatcher::GetlastreadRAIndexer |
( |
| ) |
|
◆ GetPPECStatus()
◆ GetRAAuxEncoder()
unsigned long Skywatcher::GetRAAuxEncoder |
( |
| ) |
|
◆ GetRAEncoder()
unsigned long Skywatcher::GetRAEncoder |
( |
| ) |
|
◆ GetRAEncoderHome()
unsigned long Skywatcher::GetRAEncoderHome |
( |
| ) |
|
◆ GetRAEncoderTotal()
unsigned long Skywatcher::GetRAEncoderTotal |
( |
| ) |
|
◆ GetRAEncoderZero()
unsigned long Skywatcher::GetRAEncoderZero |
( |
| ) |
|
◆ GetRAIndexer()
void Skywatcher::GetRAIndexer |
( |
| ) |
|
◆ GetRAMotorStatus()
◆ GetRAPeriod()
unsigned long Skywatcher::GetRAPeriod |
( |
| ) |
|
◆ GetRAPPECStatus()
void Skywatcher::GetRAPPECStatus |
( |
bool * |
intraining, |
|
|
bool * |
inppec |
|
) |
| |
◆ Handshake()
bool Skywatcher::Handshake |
( |
| ) |
|
◆ HasAuxEncoders()
bool Skywatcher::HasAuxEncoders |
( |
| ) |
|
◆ HasHomeIndexers()
bool Skywatcher::HasHomeIndexers |
( |
| ) |
|
◆ HasPPEC()
bool Skywatcher::HasPPEC |
( |
| ) |
|
◆ Highstr2long()
unsigned long Skywatcher::Highstr2long |
( |
char * |
s | ) |
|
|
private |
◆ Init()
void Skywatcher::Init |
( |
| ) |
|
◆ InquireBoardVersion()
◆ InquireDEEncoderInfo()
◆ InquireFeatures()
void Skywatcher::InquireFeatures |
( |
| ) |
|
◆ InquireRAEncoderInfo()
◆ InstantStopMotor()
◆ isDebug()
bool Skywatcher::isDebug |
( |
| ) |
|
|
private |
◆ IsDERunning()
bool Skywatcher::IsDERunning |
( |
| ) |
|
◆ IsRARunning()
bool Skywatcher::IsRARunning |
( |
| ) |
|
◆ isSimulation()
bool Skywatcher::isSimulation |
( |
| ) |
|
◆ long2Revu24str()
void Skywatcher::long2Revu24str |
( |
unsigned long |
n, |
|
|
char * |
str |
|
) |
| |
|
private |
◆ read_eqmod()
bool Skywatcher::read_eqmod |
( |
| ) |
|
|
private |
◆ ReadEncoder()
◆ ReadMotorStatus()
◆ ResetDEIndexer()
void Skywatcher::ResetDEIndexer |
( |
| ) |
|
◆ ResetIndexer()
◆ ResetMotions()
void Skywatcher::ResetMotions |
( |
| ) |
|
◆ ResetRAIndexer()
void Skywatcher::ResetRAIndexer |
( |
| ) |
|
◆ Revu24str2long()
unsigned long Skywatcher::Revu24str2long |
( |
char * |
s | ) |
|
|
private |
◆ SetAbsTarget()
◆ SetAbsTargetBreaks()
◆ SetAxisPosition()
◆ SetBacklashDE()
void Skywatcher::SetBacklashDE |
( |
unsigned long |
backlash | ) |
|
◆ SetBacklashRA()
void Skywatcher::SetBacklashRA |
( |
unsigned long |
backlash | ) |
|
◆ SetBacklashUseDE()
void Skywatcher::SetBacklashUseDE |
( |
bool |
usebacklash | ) |
|
◆ SetBacklashUseRA()
void Skywatcher::SetBacklashUseRA |
( |
bool |
usebacklash | ) |
|
◆ SetDEAxisPosition()
void Skywatcher::SetDEAxisPosition |
( |
unsigned long |
step | ) |
|
◆ setDebug()
void Skywatcher::setDebug |
( |
bool |
enable | ) |
|
◆ SetDERate()
void Skywatcher::SetDERate |
( |
double |
rate | ) |
|
◆ SetFeature()
◆ SetMotion()
◆ setPortFD()
void Skywatcher::setPortFD |
( |
int |
value | ) |
|
◆ SetRAAxisPosition()
void Skywatcher::SetRAAxisPosition |
( |
unsigned long |
step | ) |
|
◆ SetRARate()
void Skywatcher::SetRARate |
( |
double |
rate | ) |
|
◆ setSimulation()
void Skywatcher::setSimulation |
( |
bool |
enable | ) |
|
◆ SetSpeed()
◆ SetST4DEGuideRate()
void Skywatcher::SetST4DEGuideRate |
( |
unsigned char |
r | ) |
|
◆ SetST4GuideRate()
void Skywatcher::SetST4GuideRate |
( |
SkywatcherAxis |
axis, |
|
|
unsigned char |
r |
|
) |
| |
|
private |
◆ SetST4RAGuideRate()
void Skywatcher::SetST4RAGuideRate |
( |
unsigned char |
r | ) |
|
◆ SetTarget()
◆ SetTargetBreaks()
◆ SlewDE()
void Skywatcher::SlewDE |
( |
double |
rate | ) |
|
◆ SlewRA()
void Skywatcher::SlewRA |
( |
double |
rate | ) |
|
◆ SlewTo()
void Skywatcher::SlewTo |
( |
long |
deltaraencoder, |
|
|
long |
deltadeencoder |
|
) |
| |
◆ StartDETracking()
void Skywatcher::StartDETracking |
( |
double |
trackspeed | ) |
|
◆ StartMotor()
◆ StartRATracking()
void Skywatcher::StartRATracking |
( |
double |
trackspeed | ) |
|
◆ StopDE()
void Skywatcher::StopDE |
( |
| ) |
|
◆ StopMotor()
◆ StopRA()
void Skywatcher::StopRA |
( |
| ) |
|
◆ StopWaitMotor()
◆ TurnDEEncoder()
void Skywatcher::TurnDEEncoder |
( |
bool |
on | ) |
|
◆ TurnDEPPEC()
void Skywatcher::TurnDEPPEC |
( |
bool |
on | ) |
|
◆ TurnDEPPECTraining()
void Skywatcher::TurnDEPPECTraining |
( |
bool |
on | ) |
|
◆ TurnEncoder()
◆ TurnPPEC()
◆ TurnPPECTraining()
◆ TurnRAEncoder()
void Skywatcher::TurnRAEncoder |
( |
bool |
on | ) |
|
◆ TurnRAPPEC()
void Skywatcher::TurnRAPPEC |
( |
bool |
on | ) |
|
◆ TurnRAPPECTraining()
void Skywatcher::TurnRAPPECTraining |
( |
bool |
on | ) |
|
◆ AxisCmd
char Skywatcher::AxisCmd[2] {'1', '2'} |
|
private |
◆ AxisFeatures
◆ Backlash
◆ backlashperiod
◆ command
◆ debug
◆ debugnextread
bool Skywatcher::debugnextread |
|
private |
◆ DEHighspeedRatio
unsigned long Skywatcher::DEHighspeedRatio |
|
private |
◆ DEInitialized
bool Skywatcher::DEInitialized |
|
private |
◆ DEPeriod
unsigned long Skywatcher::DEPeriod |
|
private |
◆ DERunning
bool Skywatcher::DERunning |
|
private |
◆ DEStatus
◆ DEStep
unsigned long Skywatcher::DEStep |
|
private |
◆ DEStepHome
unsigned long Skywatcher::DEStepHome |
|
private |
◆ DEStepInit
unsigned long Skywatcher::DEStepInit |
|
private |
◆ DESteps360
unsigned long Skywatcher::DESteps360 |
|
private |
◆ DEStepsWorm
unsigned long Skywatcher::DEStepsWorm |
|
private |
◆ EQMOD_MAX_RETRY
◆ EQMOD_TIMEOUT
◆ lastreadIndexer
◆ lastreadmotorposition
◆ lastreadmotorstatus
◆ LastRunningStatus
◆ MAX_RATE
constexpr double Skywatcher::MAX_RATE = 800.0 |
|
staticprivate |
◆ MCVersion
unsigned long Skywatcher::MCVersion |
|
private |
◆ MIN_RATE
constexpr double Skywatcher::MIN_RATE = 0.05 |
|
staticprivate |
◆ minperiods
unsigned long Skywatcher::minperiods[2] |
|
private |
◆ MountCode
unsigned long Skywatcher::MountCode |
|
private |
◆ NewStatus
◆ PortFD
int Skywatcher::PortFD = -1 |
|
private |
◆ RAHighspeedRatio
unsigned long Skywatcher::RAHighspeedRatio |
|
private |
◆ RAInitialized
bool Skywatcher::RAInitialized |
|
private |
◆ RAPeriod
unsigned long Skywatcher::RAPeriod |
|
private |
◆ RARunning
bool Skywatcher::RARunning |
|
private |
◆ RAStatus
◆ RAStep
unsigned long Skywatcher::RAStep |
|
private |
◆ RAStepHome
unsigned long Skywatcher::RAStepHome |
|
private |
◆ RAStepInit
unsigned long Skywatcher::RAStepInit |
|
private |
◆ RASteps360
unsigned long Skywatcher::RASteps360 |
|
private |
◆ RAStepsWorm
unsigned long Skywatcher::RAStepsWorm |
|
private |
◆ reconnect
bool Skywatcher::reconnect |
|
private |
◆ response
◆ simulation
bool Skywatcher::simulation |
◆ SkywatcherLeadingChar
const char Skywatcher::SkywatcherLeadingChar = ':' |
|
staticprivate |
◆ SkywatcherTrailingChar
const char Skywatcher::SkywatcherTrailingChar = 0x0d |
|
staticprivate |
◆ Target
◆ TargetBreaks
◆ telescope
EQMod* Skywatcher::telescope |
|
private |
◆ UseBacklash
◆ wasinitialized
bool Skywatcher::wasinitialized |
|
private |
The documentation for this class was generated from the following files:
- ln/3rdparty/src/indilib/indi-1.7.4/3rdparty/indi-eqmod/skywatcher.h
- ln/3rdparty/src/indilib/indi-1.7.4/3rdparty/indi-eqmod/skywatcher.cpp