X2 Standard  Version 1.28
Loading...
Searching...
No Matches
openloopmoveinterface.h
1#ifndef _OpenLoopMoveInterface_H
2#define _OpenLoopMoveInterface_H
3
4#ifdef THESKYX_FOLDER_TREE
5#include "imagingsystem/hardware/mountbridge/implementor/mountdriverinterface/mountdriverinterface.h"//For MoveDir
6#else//TheSkyX X2 Plug In Build
7#include "../mountdriverinterface.h"//For MoveDir
8#endif
9
10//This might not be common - move to underneath MountBridge if specific to mounts
11
12#define OpenLoopMoveInterface_Name "com.bisque.TheSkyX.OpenLoopMoveInterface/1.0"
13
23{
24public:
25
26 virtual ~OpenLoopMoveInterface(){}
27
28public:
30 virtual int startOpenLoopMove(const MountDriverInterface::MoveDir& Dir, const int& nRateIndex) = 0;
32 virtual int endOpenLoopMove(void) = 0;
33
35 virtual bool allowDiagonalMoves() { return false;}
36
37 //OpenLoopMove specifics
38
40 virtual int rateCountOpenLoopMove(void) const = 0;
42 virtual int rateNameFromIndexOpenLoopMove(const int& nZeroBasedIndex, char* pszOut, const int& nOutMaxSize)=0;
44 virtual int rateIndexOpenLoopMove(void)=0;
45
46};
47
48#endif
MoveDir
Definition mountdriverinterface.h:51
The OpenLoopMoveInterface allows a mount to move at a given rate for a open-ended amount of time.
Definition openloopmoveinterface.h:23
virtual bool allowDiagonalMoves()
Definition openloopmoveinterface.h:35
virtual int rateIndexOpenLoopMove(void)=0
virtual int startOpenLoopMove(const MountDriverInterface::MoveDir &Dir, const int &nRateIndex)=0
virtual int rateNameFromIndexOpenLoopMove(const int &nZeroBasedIndex, char *pszOut, const int &nOutMaxSize)=0
virtual int rateCountOpenLoopMove(void) const =0
virtual int endOpenLoopMove(void)=0
X2 Examples
(C) 2026 Software Bisque, Inc. All rights reserved.