|
Instrument Neutral Distributed Interface INDI 2.2.5
|
#include <ioptronv3driver.h>
Public Member Functions | |
| Driver (const char *deviceName) | |
| ~Driver ()=default | |
| bool | sendCommand (const char *command, int count=1, char *response=nullptr, int minimumCount=-1, uint8_t timeout=IOP_TIMEOUT, uint8_t debugLog=INDI::Logger::DBG_DEBUG) |
| bool | sendCommandOk (const char *command) |
| bool | checkConnection (int fd) |
| bool | getStatus (IOPInfo *info) |
| bool | getFirmwareInfo (FirmwareInfo *info) |
| bool | getCoords (double *ra, double *de, IOP_PIER_STATE *pierState, IOP_CW_STATE *cwState) |
| bool | getUTCDateTime (double *JD, int *utcOffsetMinutes, bool *dayLightSaving) |
| bool | startMotion (IOP_DIRECTION dir) |
| bool | stopMotion (IOP_DIRECTION dir) |
| bool | setSlewRate (IOP_SLEW_RATE rate) |
| bool | setCustomRATrackRate (double rate) |
| bool | setTrackMode (IOP_TRACK_RATE rate) |
| bool | setTrackEnabled (bool enabled) |
| bool | setPECEnabled (bool enabled) |
| bool | setPETEnabled (bool enabled) |
| bool | getPETEnabled (bool enabled) |
| bool | abort () |
| bool | slewNormal () |
| bool | slewCWUp () |
| bool | sync () |
| bool | setRA (double ra) |
| bool | setDE (double de) |
| bool | findHome () |
| bool | gotoHome () |
| bool | setCurrentHome () |
| bool | park () |
| bool | unpark () |
| bool | setParkAz (double az) |
| bool | setParkAlt (double alt) |
| bool | setGuideRate (double RARate, double DERate) |
| bool | getGuideRate (double *RARate, double *DERate) |
| bool | startGuide (IOP_DIRECTION dir, uint32_t ms) |
| bool | setMeridianBehavior (IOP_MB_STATE action, uint8_t degrees) |
| bool | getMeridianBehavior (IOP_MB_STATE &action, uint8_t °rees) |
| bool | setLongitude (double longitude) |
| bool | setLatitude (double latitude) |
| bool | setUTCDateTime (double JD) |
| bool | setUTCOffset (int offsetMinutes) |
| bool | setDaylightSaving (bool enabled) |
| void | setDebug (bool enable) |
| void | setSimulation (bool enable) |
| void | setSimGPSstatus (IOP_GPS_STATUS value) |
| void | setSimSytemStatus (IOP_SYSTEM_STATUS value) |
| void | setSimTrackRate (IOP_TRACK_RATE value) |
| void | setSimSlewRate (IOP_SLEW_RATE value) |
| void | setSimTimeSource (IOP_TIME_SOURCE value) |
| void | setSimHemisphere (IOP_HEMISPHERE value) |
| void | setSimRA (double ra) |
| void | setSimDE (double de) |
| void | setSimLongLat (double longitude, double latitude) |
| void | setSimGuideRate (double raRate, double deRate) |
Static Public Attributes | |
| static const std::map< std::string, std::string > | models |
| static const uint16_t | IOP_SLEW_RATES [] = {1, 2, 8, 16, 64, 128, 256, 512, 1024} |
Protected Member Functions | |
| bool | getMainFirmware (std::string &mainFirmware, std::string &controllerFirmware) |
| bool | getRADEFirmware (std::string &RAFirmware, std::string &DEFirmware) |
| bool | getModel (std::string &model) |
Protected Attributes | ||
| struct { | ||
| double ra | ||
| double de | ||
| double ra_guide_rate | ||
| double de_guide_rate | ||
| double JD | ||
| int utc_offset_minutes | ||
| bool day_light_saving | ||
| uint8_t mb_limit | ||
| IOP_PIER_STATE pier_state | ||
| IOP_CW_STATE cw_state | ||
| IOP_MB_STATE mb_state | ||
| IOPInfo simInfo | ||
| } | simData | |
Definition at line 81 of file ioptronv3driver.h.
|
explicit |
Definition at line 98 of file ioptronv3driver.cpp.
|
default |
| bool IOPv3::Driver::abort | ( | ) |
Definition at line 625 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::checkConnection | ( | int | fd | ) |
Definition at line 174 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::findHome | ( | ) |
Definition at line 426 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::getCoords | ( | double * | ra, |
| double * | de, | ||
| IOP_PIER_STATE * | pierState, | ||
| IOP_CW_STATE * | cwState | ||
| ) |
Get RA/DEC
Definition at line 747 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::getFirmwareInfo | ( | FirmwareInfo * | info | ) |
Get All firmware information in addition to mount model
Definition at line 323 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::getGuideRate | ( | double * | RARate, |
| double * | DERate | ||
| ) |
Definition at line 535 of file ioptronv3driver.cpp.
|
protected |
Get mainboard and controller firmware only
Definition at line 351 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::getMeridianBehavior | ( | IOP_MB_STATE & | action, |
| uint8_t & | degrees | ||
| ) |
Definition at line 829 of file ioptronv3driver.cpp.
|
protected |
Get Mount model
Definition at line 334 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::getPETEnabled | ( | bool | enabled | ) |
Definition at line 453 of file ioptronv3driver.cpp.
|
protected |
Get RA and DEC firmware info
Definition at line 370 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::getStatus | ( | IOPInfo * | info | ) |
Get iEQ current status info
Definition at line 281 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::getUTCDateTime | ( | double * | JD, |
| int * | utcOffsetMinutes, | ||
| bool * | dayLightSaving | ||
| ) |
Get UTC JD plus utc offset and whether daylight savings is active or not
Definition at line 788 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::gotoHome | ( | ) |
Definition at line 431 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::park | ( | ) |
Definition at line 588 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::sendCommand | ( | const char * | command, |
| int | count = 1, |
||
| char * | response = nullptr, |
||
| int | minimumCount = -1, |
||
| uint8_t | timeout = IOP_TIMEOUT, |
||
| uint8_t | debugLog = INDI::Logger::DBG_DEBUG |
||
| ) |
Definition at line 110 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::sendCommandOk | ( | const char * | command | ) |
Definition at line 100 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setCurrentHome | ( | ) |
Definition at line 436 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setCustomRATrackRate | ( | double | rate | ) |
Definition at line 513 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setDaylightSaving | ( | bool | enabled | ) |
Definition at line 737 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setDE | ( | double | de | ) |
Definition at line 677 of file ioptronv3driver.cpp.
| void IOPv3::Driver::setDebug | ( | bool | enable | ) |
Definition at line 201 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setGuideRate | ( | double | RARate, |
| double | DERate | ||
| ) |
Definition at line 524 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setLatitude | ( | double | latitude | ) |
Definition at line 703 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setLongitude | ( | double | longitude | ) |
Definition at line 691 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setMeridianBehavior | ( | IOP_MB_STATE | action, |
| uint8_t | degrees | ||
| ) |
Definition at line 852 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setParkAlt | ( | double | alt | ) |
Definition at line 613 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setParkAz | ( | double | az | ) |
Definition at line 601 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setPECEnabled | ( | bool | enabled | ) |
Definition at line 442 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setPETEnabled | ( | bool | enabled | ) |
Definition at line 448 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setRA | ( | double | ra | ) |
Definition at line 663 of file ioptronv3driver.cpp.
| void IOPv3::Driver::setSimDE | ( | double | de | ) |
Definition at line 264 of file ioptronv3driver.cpp.
| void IOPv3::Driver::setSimGPSstatus | ( | IOP_GPS_STATUS | value | ) |
Definition at line 229 of file ioptronv3driver.cpp.
| void IOPv3::Driver::setSimGuideRate | ( | double | raRate, |
| double | deRate | ||
| ) |
Definition at line 269 of file ioptronv3driver.cpp.
| void IOPv3::Driver::setSimHemisphere | ( | IOP_HEMISPHERE | value | ) |
Definition at line 254 of file ioptronv3driver.cpp.
| void IOPv3::Driver::setSimLongLat | ( | double | longitude, |
| double | latitude | ||
| ) |
Definition at line 275 of file ioptronv3driver.cpp.
| void IOPv3::Driver::setSimRA | ( | double | ra | ) |
Definition at line 259 of file ioptronv3driver.cpp.
| void IOPv3::Driver::setSimSlewRate | ( | IOP_SLEW_RATE | value | ) |
Definition at line 244 of file ioptronv3driver.cpp.
| void IOPv3::Driver::setSimSytemStatus | ( | IOP_SYSTEM_STATUS | value | ) |
Definition at line 234 of file ioptronv3driver.cpp.
| void IOPv3::Driver::setSimTimeSource | ( | IOP_TIME_SOURCE | value | ) |
Definition at line 249 of file ioptronv3driver.cpp.
| void IOPv3::Driver::setSimTrackRate | ( | IOP_TRACK_RATE | value | ) |
Definition at line 239 of file ioptronv3driver.cpp.
| void IOPv3::Driver::setSimulation | ( | bool | enable | ) |
Definition at line 206 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setSlewRate | ( | IOP_SLEW_RATE | rate | ) |
Definition at line 482 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setTrackEnabled | ( | bool | enabled | ) |
Definition at line 654 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setTrackMode | ( | IOP_TRACK_RATE | rate | ) |
Definition at line 492 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setUTCDateTime | ( | double | JD | ) |
Definition at line 715 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::setUTCOffset | ( | int | offsetMinutes | ) |
Definition at line 727 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::slewCWUp | ( | ) |
Definition at line 641 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::slewNormal | ( | ) |
Definition at line 633 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::startGuide | ( | IOP_DIRECTION | dir, |
| uint32_t | ms | ||
| ) |
Definition at line 555 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::startMotion | ( | IOP_DIRECTION | dir | ) |
Definition at line 389 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::stopMotion | ( | IOP_DIRECTION | dir | ) |
Definition at line 410 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::sync | ( | ) |
Definition at line 649 of file ioptronv3driver.cpp.
| bool IOPv3::Driver::unpark | ( | ) |
Definition at line 593 of file ioptronv3driver.cpp.
| IOP_CW_STATE IOPv3::Driver::cw_state |
Definition at line 219 of file ioptronv3driver.h.
| bool IOPv3::Driver::day_light_saving |
Definition at line 216 of file ioptronv3driver.h.
| double IOPv3::Driver::de |
Definition at line 211 of file ioptronv3driver.h.
| double IOPv3::Driver::de_guide_rate |
Definition at line 213 of file ioptronv3driver.h.
|
static |
Definition at line 92 of file ioptronv3driver.h.
| double IOPv3::Driver::JD |
Definition at line 214 of file ioptronv3driver.h.
| uint8_t IOPv3::Driver::mb_limit |
Definition at line 217 of file ioptronv3driver.h.
| IOP_MB_STATE IOPv3::Driver::mb_state |
Definition at line 220 of file ioptronv3driver.h.
|
static |
Definition at line 89 of file ioptronv3driver.h.
| IOP_PIER_STATE IOPv3::Driver::pier_state |
Definition at line 218 of file ioptronv3driver.h.
| double IOPv3::Driver::ra |
Definition at line 210 of file ioptronv3driver.h.
| double IOPv3::Driver::ra_guide_rate |
Definition at line 212 of file ioptronv3driver.h.
| struct { ... } IOPv3::Driver::simData |
| IOPInfo IOPv3::Driver::simInfo |
Definition at line 222 of file ioptronv3driver.h.
| int IOPv3::Driver::utc_offset_minutes |
Definition at line 215 of file ioptronv3driver.h.