X2 Standard  Version 1.28
Loading...
Searching...
No Matches
OpenLoopMoveInterface Class Referenceabstract

The OpenLoopMoveInterface allows a mount to move at a given rate for a open-ended amount of time. More...

#include <openloopmoveinterface.h>

Inheritance diagram for OpenLoopMoveInterface:
X2Mount

Public Member Functions

virtual int startOpenLoopMove (const MountDriverInterface::MoveDir &Dir, const int &nRateIndex)=0
virtual int endOpenLoopMove (void)=0
virtual bool allowDiagonalMoves ()
virtual int rateCountOpenLoopMove (void) const =0
virtual int rateNameFromIndexOpenLoopMove (const int &nZeroBasedIndex, char *pszOut, const int &nOutMaxSize)=0
virtual int rateIndexOpenLoopMove (void)=0

Detailed Description

The OpenLoopMoveInterface allows a mount to move at a given rate for a open-ended amount of time.

This interface is typically used by TheSkyX to allow a user-interface button to move the mount, where the mount moves while the button is down, and the mount stops moving when the button is released.

Member Function Documentation

◆ allowDiagonalMoves()

virtual bool OpenLoopMoveInterface::allowDiagonalMoves ( )
inlinevirtual

Return true if the mount can be commanded to move in more than one perpendicular axis at the same time, otherwise return false.

Reimplemented in X2Mount.

◆ endOpenLoopMove()

virtual int OpenLoopMoveInterface::endOpenLoopMove ( void )
pure virtual

End the open-loop move. This function is always called for every corresponding startOpenLoopMove(), allowing software implementations of the move.

Implemented in X2Mount.

◆ rateCountOpenLoopMove()

virtual int OpenLoopMoveInterface::rateCountOpenLoopMove ( void ) const
pure virtual

Return the number (count) of available moves.

Implemented in X2Mount.

◆ rateIndexOpenLoopMove()

virtual int OpenLoopMoveInterface::rateIndexOpenLoopMove ( void )
pure virtual

Return the current index of move selection.

Implemented in X2Mount.

◆ rateNameFromIndexOpenLoopMove()

virtual int OpenLoopMoveInterface::rateNameFromIndexOpenLoopMove ( const int & nZeroBasedIndex,
char * pszOut,
const int & nOutMaxSize )
pure virtual

Return a string along with the amount or size of the corresponding move.

Implemented in X2Mount.

◆ startOpenLoopMove()

virtual int OpenLoopMoveInterface::startOpenLoopMove ( const MountDriverInterface::MoveDir & Dir,
const int & nRateIndex )
pure virtual

Start the open-loop move.

Implemented in X2Mount.


The documentation for this class was generated from the following file:
X2 Examples
(C) 2026 Software Bisque, Inc. All rights reserved.