Instrument Neutral Distributed Interface INDI 2.2.5
lx200_OnStep.h
Go to the documentation of this file.
1/*
2 LX200 OnStep
3 based on LX200 Classic azwing ([email protected])
4 Contributors:
5 James Lancaster https://github.com/james-lan
6 Ray Wells https://github.com/blueshawk
7 Jamie Flinn https://github.com/jamiecflinn
8
9 Copyright (C) 2003-2026 Jasem Mutlaq ([email protected])-2021 (Contributors, above)
10
11 This library is free software; you can redistribute it and/or
12 modify it under the terms of the GNU Lesser General Public
13 License as published by the Free Software Foundation; either
14 version 2.1 of the License, or (at your option) any later version.
15
16 This library is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
20
21 You should have received a copy of the GNU Lesser General Public
22 License along with this library; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24
25 ===========================================
26
27 Version 1.32: Custom track mode with the OnStepX tracking rate offsets (:SXTR#, :SXTD#).
28 Version 1.26: Fix issues due to migration to new INDI properties.
29 Version 1.25: Refactor driver to use INDI new properties.
30 Version 1.24: During manual slew, only send back RA & DE.
31 Version not yet updated/No INDI release:
32 Version 1.22
33 - fixed #:AW#" and ":MP#" commands by using getCommandSingleCharResponse instead of sendOnStepCommandBlind
34 Version 1.21
35 - fixed Onstep returning '9:9' when 9 star alignment is achieved thanks to Howard Dutton
36 Version 1.20
37 - fixed wrong messages due to different return with OnStepX
38 - fixed Focuser Temperature not shown on Ekos
39 - fixed Weather settings (P/T/Hr) when no sensor present
40 - minor typos
41 Version 1.19
42 - fixed typo on debug information saying error instead of nbchar causing confusion
43 - fixed Autoflip Off update
44 - fixed Elevation Limits update (was not read from OnStep) and format set to integer and gage for setup
45 - fixed minutes passed meridian not showing actual values
46 - fixed missing slewrates defineProperty and deleteProperty causing redefinitions of overrides
47 - todo focuser stops working after some time ??? could not yet reproduce
48 - fixed poll and update slew rates
49 - todo poll and update maximum slew speed SmartWebServer=>Settings
50 Version 1.18
51 - implemented Focuser T° compensation in FOCUSER TAB
52 - Minor fixes
53 Version 1.17
54 - fixed setMaxElevationLimit / setMinElevationLimit
55 Version 1.16
56 - fixed uninitialized UTC structure thanks to Norikyu
57 Version 1.15
58 - Fixed setUTCOffset after change in lx200driver to comply with OnStep format :SG[sHH]#
59 Version 1.14
60 - Modified range for Minutes Pas Meridian East and West to -180 .. +180
61 - Modified debug messages Minutes Pas Meridian (Was B"acklash ...)
62
63 Version 1.13
64 - Timeouts and misc errors due to new behavior of SWS (SmartWebServer)
65 - - Timeouts still at 100ms for USB connections, if on a TCP/network connection timeout reverts to 2 sec.
66 - Improvements to Focuser and Rotator polling
67 - Focuser doesn't show up if not detected (Regression fixed)
68
69 Past Versions:
70
71 Version 1.12: (INDI 1.9.3)
72 - New timeout functions in INDI which significantly reduce startup times waiting for detection to fail. (Min time before was 1 second, current timeout for those is now set to 100 ms (100000 us which works well even with an Arduino Mega (Ramps) setup)
73 - Cleanup and completely control TrackState. (Should eliminate various issues.)
74 - Behind the scenes: More consistent command declarations (Should eliminate a type of error that's happened in the past when changing commands.)
75 - Don't report capability for PierSide and PEC unless supported (This will cause a call to updateProperties so a bunch of messages will be repeated.)
76 - From the last, move where the SlewRate values are defined to updateProperties, vs initProperties so that the extra calls to updateProperties don't mangle it.
77 - TMC driver reports are now human readable.
78 - Detects OnStep or OnStepX version (doesn't do much with it.)
79
80
81 Version 1.11: (INDI 1.9.2)
82 - Fixed one issue with tracking (Jamie Flinn/jamiecflinn)
83 Version 1.10: (finalized: INDI 1.9.1)
84 - Weather support for setting temperature/humidity/pressure, values will be overridden in OnStep by any sensor values.
85 - Ability to swap primary focuser.
86 - High precision on location, and not overriding GPS even when marked for Mount > KStars.
87 - Added Rotator & De-Rotator Support
88 - TMC_SPI status reported (RAW) on the Status Tab. (ST = Standstill, Ox = open load A/B, Gx = grounded A/B, OT = Overtemp Shutdown, PW = Overtemp Prewarning)
89 - Manage OnStep Auxiliary Feature Names in Output Tab
90
91 Version 1.9:
92 - Weather support for Reading temperature/humidity/pressure (Values are Read-Only)
93 - Bugfix: Slew speed
94
95 Version 1.8:
96 - Bugfixes for FORK mounted scopes
97
98 Version 1.7:
99 - Added support for Reporting Guide rate (to PHD2 among others)
100 - Updated Error codes to match up with Android/SHC (Unknown reserved for unknown, so Unspecified = Unknown on other platforms)
101 - Added descriptions to SlewRate to match, slider kept which matches OnStep values
102 - Support for up to 9 stars for alignment
103 - Changed align so the last step isn't the (Optional) Write to EEPROM
104 - Added support for polar adjustments, without having to redo the entire model. (:MP# command)
105 - Support for Full Compensation/Refraction only, and 1/2 Axis tracking
106 - Cleanups
107
108 Version 1.6: Additional Functions
109 - James Lan fixed Meredian Flip and Home Pause buttons
110 - Cleaned Comments from previon versions
111 - Updated lastError Codes
112 - azwing typo minutes ' > second ''for Alignment Error
113
114 Version 1.5: Cleaning and Align Code Tuning
115 - James Lan Align Code
116 - Cleaning out debug messages
117 - Fix some TrackState inconsistencies with Ekos
118 - removing old Align Code
119 - fixing reversed Alt/Azm coorection values
120
121 Version 1.4: Tuning
122 - James Lan implementation of High Precision Tracking
123 - James lan Focuser Code
124 - James lan PEC
125 - James Lan Alignment
126 - Azwing set all com variable length to RB_MAX_LEN otherwise crash due to overflow
127 - Azwing set local variable size to RB_MAX_LEN otherwise erased by overflow preventing Align and other stuf to work
128 - James Lan Align Tab implementation
129 - Azwing Removed Alignment in main tab
130 - Azwing minor typo fixes
131 - Azwing reworked TrackState especially for parking/unparking
132
133 Version 1.3: Complete rework of interface and functionalities
134 - Telescope Status using :GU#
135 - Parking Management
136 - Star Alignment
137 - Tracking Frequency
138 - Focuser rework
139
140 Version 1.2: Initial issue
141
142*/
143
144#pragma once
145
146#include "lx200generic.h"
147#include "lx200driver.h"
148#include "indicom.h"
149#include "indifocuserinterface.h"
150#include "indiweatherinterface.h"
151#include "indirotatorinterface.h"
153#include "indipropertytext.h"
154#include "indipropertyswitch.h"
155#include "indipropertynumber.h"
156
157#include <chrono>
158#include <cstring>
159#include <unistd.h>
160#include <termios.h>
161#include <stdlib.h>
162
163#define RB_MAX_LEN 64
164#define CMD_MAX_LEN 32
165
166#define PORTS_COUNT 10
167#define STARTING_PORT 0
168
170
172enum RateCompensation {RC_NONE, RC_REFR_RA, RC_REFR_BOTH, RC_FULL_RA, RC_FULL_BOTH}; //To allow for using one variable instead of two in the future
173
175
177
179{
180 public:
181 LX200_OnStep();
183
184 virtual const char *getDefaultName() override;
185 virtual bool initProperties() override;
186 virtual void ISGetProperties(const char *dev) override;
187 virtual bool updateProperties() override;
188 virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override;
189 virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override;
190 virtual bool Handshake() override;
191
192 protected:
193 virtual void getBasicData() override;
194 virtual bool Park() override;
195 virtual bool UnPark() override;
196 virtual bool SetCurrentPark() override;
197 virtual bool SetDefaultPark() override;
198 virtual bool SetTrackEnabled(bool enabled) override;
199 virtual bool SetTrackMode(uint8_t mode) override;
200 virtual bool updateLocation(double latitude, double longitude, double elevation) override;
201 virtual bool setLocalDate(uint8_t days, uint8_t months, uint16_t years) override;
202 virtual bool ReadScopeStatus() override;
203 virtual int setSiteLongitude(int fd, double Long);
204 virtual int setSiteLatitude(int fd, double Long);
205 virtual bool SetTrackRate(double raRate, double deRate) override;
206 virtual void slewError(int slewCode) override;
207 virtual bool Sync(double ra, double dec) override;
208
209 virtual bool MoveNS(INDI_DIR_NS dir, TelescopeMotionCommand command) override;
210 virtual bool MoveWE(INDI_DIR_WE dir, TelescopeMotionCommand command) override;
211
212 virtual bool saveConfigItems(FILE *fp) override;
213 virtual void Init_Outputs();
214
215 //Mount information
217 /* 0 = EQ mount (Presumed default for most things.)
218 * 1 = Fork
219 * 2 = Fork Alt
220 * 3 = Alt Azm
221 */
222
223 virtual bool sendScopeTime() override;
224 virtual bool sendScopeLocation() override;
225 virtual bool setUTCOffset(double offset) override; //azwing fix after change in lx200driver.cpp
226
227 // Goto
228 virtual bool Goto(double ra, double dec) override;
229
230 //FocuserInterface
231
232 IPState MoveFocuser(FocusDirection dir, int speed, uint16_t duration) override;
233 IPState MoveAbsFocuser (uint32_t targetTicks) override;
234 IPState MoveRelFocuser (FocusDirection dir, uint32_t ticks) override;
235 bool AbortFocuser () override;
236
237 //End FocuserInterface
238
239 //RotatorInterface
240
241 IPState MoveRotator(double angle) override;
242 IPState HomeRotator() override;
243 bool AbortRotator() override;
244 bool SetRotatorBacklash (int32_t steps) override;
245 bool SetRotatorBacklashEnabled(bool enabled) override;
246
247 // Homing
248 virtual IPState ExecuteHomeAction(TelescopeHomeAction action) override;
249
250 //End RotatorInterface
251
252 //PECInterface
253 //axis 0=RA, 1=DEC, others?
254 IPState StopPECPlayback (int axis);
255 IPState StartPECPlayback (int axis);
256 IPState ClearPECBuffer (int axis);
257 IPState StartPECRecord (int axis);
258 IPState SavePECBuffer (int axis);
259 IPState PECStatus (int axis);
260 IPState ReadPECBuffer (int axis);
261 IPState WritePECBuffer (int axis);
262 bool ISPECRecorded (int axis);
263 bool OSPECEnabled = false;
264 bool OSPECviaGU = false; //Older versions use :QZ# for PEC status, new can use the standard :GU#/:Gu#
265 //End PECInterface
266
267
268 //NewGeometricAlignment
269 IPState AlignStartGeometric(int stars);
270
277
281 virtual bool UpdateAlignStatus();
282 virtual bool UpdateAlignErr();
283 //End NewGeometricAlignment
284 bool OSAlignCompleted = false;
285
286 //Outputs
288 IPState OSDisableOutput(int output);
289 bool OSGetOutputState(int output);
290
291 // Reset slew rate labels
292 void initSlewRates();
293
294 bool sendOnStepCommand(const char *cmd);
295 bool sendOnStepCommandBlind(const char *cmd);
296 int flushIO(int fd);
297 int getCommandSingleCharResponse(int fd, char *data, const char *cmd); //Reimplemented from getCommandString
298 int getCommandSingleCharErrorOrLongResponse(int fd, char *data, const char *cmd); //Reimplemented from getCommandString
299 int getCommandDoubleResponse(int fd, double *value, char *data,
300 const char *cmd); //Reimplemented from getCommandString Will return a double, and raw value.
301 int getCommandIntResponse(int fd, int *value, char *data, const char *cmd);
302 int setMinElevationLimit(int fd, int min);
303 int OSUpdateFocuser(); //Return = 0 good, -1 = Communication error
304 int OSUpdateRotator(); //Return = 0 good, -1 = Communication error
305
307
311
316
318
320
321 long int OSTimeoutSeconds = 0;
322 long int OSTimeoutMicroSeconds = 100000;
323
324 // OnStep Status controls
326
327 bool TMCDrivers = true; //Set to false if it doesn't detect TMC_SPI reporting. (Small delay on connection/first update)
328 bool OSHighPrecision = false;
329
330 // Focuser controls
331 // Focuser 1
332 bool OSFocuser1 = false;
334
335 // Focus T° Compensation
340 // End Focus T° Compensation
341
344
345 // Focuser 2
346 //ISwitchVectorProperty OSFocus2SelSP;
347 //ISwitch OSFocus2SelS[2];
348 bool OSFocuser2 = false;
352
353 //Rotator - Some handled by RotatorInterface, but that's mostly for rotation only, absolute, and... very limited.
354 bool OSRotator1 = false; //Change to false after detection code
356
358
359 int IsTracking = 0;
360 uint32_t m_RememberPollingPeriod {1000};
361
362 // Reticle +/- Buttons
364
365 // Align Buttons
371
372 // ISwitchVectorProperty SetHomeSP;
373 // ISwitch SetHomeS[2];
374
377
384 INDI::PropertyNumber OSPECRWValuesNP {2}; //Current Index and User Index
385
393
394 // Note: OSOutput1SP and OSOutput2SP are deprecated in favor of OutputPorts_NP
395
397 bool OSHasOutputs = true;
398
400
403
404
407
410 uint8_t PECStatusGU = 0;
411 uint8_t ParkStatusGU = 0;
412
413 // Weather support
414 // NOTE: Much is handled by WeatherInterface, these controls are mainly for setting values which are not detected
415 // As of right now, if there is a sensor the values will be overwritten on the next update
417 true; //This can fail on some processors and take the timeout before an update, so if it fails, don't check again.
418
422 //Not sure why this would be used, but will feed to it from site settings
424
425 //This is updated via other commands, as such I'm going to ignore it like some others do.
426 virtual IPState updateWeather() override
427 {
428 return IPS_OK;
429 }
430
435 virtual void SyncParkStatus(bool isparked) override;
436
442 virtual void SetParked(bool isparked) override;
443
448 // #define DEBUG_TRACKSTATE
449 void PrintTrackState();
450
451 // A status poll without a :GU# answer is skipped, up to this many in a row. Then the poll fails as before,
452 // so a lost connection is still reported.
453 static constexpr int MAX_MISSED_STATUS_REPLIES = 3;
455 // A park that OnStep reports neither as parked ('P') nor as failed ('F') within this time ends with an error.
457 std::chrono::steady_clock::time_point m_ParkStartTime;
458
459 private:
460 int currentCatalog;
461 int currentSubCatalog;
462
463 // OnStepX tracking rate offsets in arcsec per sidereal second, applied on top of sidereal tracking
464 bool setTrackRateOffsets(double raOffset, double decOffset);
465};
Provides interface to implement weather reporting and safety monitoring functionality.
bool AbortRotator() override
AbortRotator Abort all motion.
char OldOSStat[RB_MAX_LEN]
IPState ClearPECBuffer(int axis)
virtual bool Goto(double ra, double dec) override
Move the scope to the supplied RA and DEC coordinates.
INDI::PropertyNumber OSSetTemperatureNP
IPState PECStatus(int axis)
virtual void Init_Outputs()
virtual bool MoveNS(INDI_DIR_NS dir, TelescopeMotionCommand command) override
Start or Stop the telescope motion in the direction dir.
int getCommandSingleCharResponse(int fd, char *data, const char *cmd)
IPState MoveFocuser(FocusDirection dir, int speed, uint16_t duration) override
MoveFocuser the focuser in a particular direction with a specific speed for a finite duration.
INDI::PropertyNumber OSPECRWValuesNP
int getCommandDoubleResponse(int fd, double *value, char *data, const char *cmd)
INDI::PropertySwitch TFCCompensationSP
uint8_t PECStatusGU
virtual IPState ExecuteHomeAction(TelescopeHomeAction action) override
Execute a homing action.
INDI::PropertyNumber OutputPorts_NP
int getCommandIntResponse(int fd, int *value, char *data, const char *cmd)
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
OnStepVersion OnStepMountVersion
virtual bool setLocalDate(uint8_t days, uint8_t months, uint16_t years) override
IPState AlignDone()
INDI::PropertyNumber MaxSlewRateNP
INDI::PropertySwitch SolarSP
IPState OSDisableOutput(int output)
int m_MissedStatusReplies
INDI::PropertySwitch HomePauseSP
INDI::PropertySwitch DeepSkyCatalogSP
INDI::PropertyNumber GuideRateNP
virtual bool setUTCOffset(double offset) override
INDI::PropertyNumber TFCDeadbandNP
INDI::PropertyNumber ElevationLimitNP
bool ISPECRecorded(int axis)
INDI::PropertyText VersionTP
INDI::PropertySwitch OSRotatorDerotateSP
IPState OSEnableOutput(int output)
INDI::PropertyNumber ObjectNoNP
INDI::PropertySwitch OSPECStatusSP
IPState AlignStartGeometric(int stars)
IPState StartPECPlayback(int axis)
bool SetRotatorBacklash(int32_t steps) override
SetRotatorBacklash Set the Rotatorer backlash compensation value.
uint32_t m_RememberPollingPeriod
virtual bool UnPark() override
Unpark the telescope if already parked.
IPState StopPECPlayback(int axis)
IPState SavePECBuffer(int axis)
INDI::PropertySwitch OSNAlignWriteSP
bool OSAlignCompleted
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
INDI::PropertyNumber minutesPastMeridianNP
INDI::PropertyNumber OSPECCurrentIndexNP
virtual bool MoveWE(INDI_DIR_WE dir, TelescopeMotionCommand command) override
Move the telescope in the direction dir.
virtual bool Sync(double ra, double dec) override
Set the telescope current RA and DEC coordinates to the supplied RA and DEC coordinates.
INDI::PropertyText OnstepStatTP
virtual void getBasicData() override
virtual bool SetDefaultPark() override
SetDefaultPark Set default coordinates/encoders value as the desired parking position.
IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
bool sendOnStepCommand(const char *cmd)
INDI::PropertySwitch OSFocus2RateSP
int flushIO(int fd)
INDI::PropertySwitch OSNAlignSP
virtual int setSiteLongitude(int fd, double Long)
long int OSTimeoutMicroSeconds
uint8_t ParkStatusGU
IPState MoveAbsFocuser(uint32_t targetTicks) override
MoveFocuser the focuser to an absolute position.
IPState AlignAddStar()
AlignStartGeometric starts the OnStep Multistar align process.
INDI::PropertyNumber TFCCoefficientNP
virtual bool SetTrackEnabled(bool enabled) override
SetTrackEnabled Engages or disengages mount tracking. If there are no tracking modes available,...
int m_ParkTimeoutSeconds
IPState AlignWrite()
INDI::PropertySwitch OSFocus1InitializeSP
MountType OSMountType
INDI::PropertyNumber OSPECUserIndexNP
virtual bool initProperties() override
Called to initialize basic properties required all the time.
char OSPier[RB_MAX_LEN]
INDI::PropertySwitch TrackAxisSP
bool sendOnStepCommandBlind(const char *cmd)
IPState StartPECRecord(int axis)
bool OSSupports_bitfield_Gu
virtual int setSiteLatitude(int fd, double Long)
long int OSTimeoutSeconds
virtual void SyncParkStatus(bool isparked) override
SyncParkStatus Update the state and switches for parking.
virtual bool SetTrackMode(uint8_t mode) override
SetTrackMode Set active tracking mode. Do not change track state.
virtual bool sendScopeLocation() override
INDI::PropertyNumber BacklashNP
char OSNAlignStat[RB_MAX_LEN]
int setMinElevationLimit(int fd, int min)
IPState ReadPECBuffer(int axis)
IPState WritePECBuffer(int axis)
INDI::PropertyText OSNAlignErrTP
char OldOSPier[RB_MAX_LEN]
IPState HomeRotator() override
HomeRotator Go to home position.
INDI::PropertyNumber OSSetHumidityNP
virtual bool Park() override
Park the telescope to its home position.
static constexpr int MAX_MISSED_STATUS_REPLIES
virtual void slewError(int slewCode) override
INDI::PropertyNumber OSSetAltitudeNP
bool SetRotatorBacklashEnabled(bool enabled) override
SetRotatorBacklashEnabled Enables or disables the Rotator backlash compensation.
INDI::PropertyText ObjectInfoTP
INDI::PropertySwitch ReticSP
char OSStat[RB_MAX_LEN]
INDI::PropertySwitch StarCatalogSP
int getCommandSingleCharErrorOrLongResponse(int fd, char *data, const char *cmd)
virtual bool UpdateAlignErr()
INDI::PropertySwitch OSPECRecordSP
virtual bool SetTrackRate(double raRate, double deRate) override
SetTrackRate Set custom tracking rates.
INDI::PropertyNumber FocusTemperatureNP
INDI::PropertyNumber OSFocus2TargNP
std::chrono::steady_clock::time_point m_ParkStartTime
INDI::PropertySwitch OSPECReadSP
INDI::PropertySwitch OSFocus2MotionSP
virtual bool sendScopeTime() override
bool OSGetOutputState(int output)
virtual bool UpdateAlignStatus()
INDI::PropertySwitch OSFocusSelectSP
IPState MoveRotator(double angle) override
MoveRotator Go to specific angle.
void PrintTrackState()
PrintTrackState will print to the debug log the status of TrackState if DEBUG_TRACKSTATE is defined o...
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
INDI::PropertyText OSNAlignTP
virtual const char * getDefaultName() override
INDI::PropertySwitch OSPECIndexSP
virtual void ISGetProperties(const char *dev) override
define the driver's properties to the client. Usually, only a minimum set of properties are defined t...
INDI::PropertySwitch FrequencyAdjustSP
virtual void SetParked(bool isparked) override
SetParked Change the mount parking status. The data park file (stored in ~/.indi/ParkData....
INDI::PropertySwitch OSNAlignPolarRealignSP
virtual IPState updateWeather() override
updateWeather Update weather conditions from device or service. The function should not change the st...
INDI::PropertySwitch OSNAlignStarsSP
INDI::PropertySwitch PreferredPierSideSP
INDI::PropertySwitch OSRotatorRateSP
virtual bool Handshake() override
perform handshake with device to check communication
bool OSSeparate_Pulse_Guide_Rate
INDI::PropertyNumber OSSetPressureNP
INDI::PropertySwitch TrackCompSP
virtual bool updateLocation(double latitude, double longitude, double elevation) override
Update telescope location settings.
virtual bool updateProperties() override
Called when connected state changes, to add/remove properties.
virtual bool ReadScopeStatus() override
Read telescope status.
bool AbortFocuser() override
AbortFocuser all focus motion.
virtual bool SetCurrentPark() override
SetCurrentPark Set current coordinates/encoders value as the desired parking position.
INDI::PropertySwitch AutoFlipSP
double ra
double dec
#define min(a, b)
ISState
Switch state.
Definition indiapi.h:148
IPState
Property state.
Definition indiapi.h:158
@ IPS_OK
Definition indiapi.h:160
INDI_DIR_WE
INDI_DIR_NS
Implementations for common driver routines.
*brief user defined string literal for JSON values *sa std::size_t n
int fd
MountType
@ MOUNTTYPE_GEM
@ MOUNTTYPE_ALTAZ
@ MOUNTTYPE_FORK
@ MOUNTTYPE_FORK_ALT
RateCompensation
@ RC_REFR_BOTH
@ RC_FULL_BOTH
@ RC_NONE
@ RC_FULL_RA
@ RC_REFR_RA
#define RB_MAX_LEN
OnStepVersion
@ OSV_OnStepV4
@ OSV_OnStepV3
@ OSV_OnStepV5
@ OSV_UNKNOWN
@ OSV_OnStepV1or2
@ OSV_OnStepX
ResponseErrors
@ RES_ERR_FORMAT
Errors
@ ERR_GOTO_ERR_ABOVE_OVERHEAD
@ ERR_GOTO_ERR_PARK
@ ERR_MERIDIAN
@ ERR_GOTO_ERR_OUTSIDE_LIMITS
@ ERR_GOTO_ERR_BELOW_HORIZON
@ ERR_LIMIT_SENSE
@ ERR_DEC
@ ERR_NONE
@ ERR_GOTO_ERR_GOTO
@ ERR_UNDER_POLE
@ ERR_ALT_MAX
@ ERR_GOTO_ERR_IN_MOTION
@ ERR_GOTO_ERR_UNSPECIFIED
@ ERR_SYNC
@ ERR_ALT_MIN
@ ERR_GOTO_ERR_STANDBY
@ ERR_AZM
@ ERR_UNSPECIFIED
@ ERR_PARK
@ ERR_GOTO_ERR_NONE
@ ERR_GOTO_ERR_HARDWARE_FAULT
@ ERR_MOTOR_FAULT
@ ERR_GOTO_SYNC
#define PORTS_COUNT
uint8_t cmd[4]
Definition pwc-ioctl.h:2