Instrument Neutral Distributed Interface INDI  1.9.5
Public Member Functions | Public Attributes | List of all members
CommandSet Class Reference

#include <sestosenso2.h>

Public Member Functions

 CommandSet (int Port, const char *deviceName)
 
bool stop ()
 
bool getSerialNumber (char *res)
 
bool getFirmwareVersion (char *res)
 
bool abort ()
 
bool go (uint32_t targetTicks, char *res)
 
bool goHome (char *res)
 
bool fastMoveOut (char *res)
 
bool fastMoveIn (char *res)
 
bool getMaxPosition (char *res)
 
bool getHallSensor (char *res)
 
bool storeAsMaxPosition (char *res)
 
bool goOutToFindMaxPos ()
 
bool storeAsMinPosition ()
 
bool initCalibration ()
 
bool getAbsolutePosition (char *res)
 
bool getCurrentSpeed (char *res)
 
bool applyMotorPreset (const char *name)
 
bool applyMotorUserPreset (uint32_t index)
 
bool saveMotorUserPreset (uint32_t index, struct MotorRates &mr, struct MotorCurrents &mc)
 
bool getMotorTemp (char *res)
 
bool getExternalTemp (char *res)
 
bool getVoltageIn (char *res)
 
bool getMotorSettings (struct MotorRates &ms, struct MotorCurrents &mc, bool &motorHoldActive)
 
bool setMotorRates (struct MotorRates &ms)
 
bool setMotorCurrents (struct MotorCurrents &mc)
 
bool setMotorHold (bool hold)
 
const char * getDeviceName () const
 

Public Attributes

int PortFD
 
std::string deviceName
 

Detailed Description

Definition at line 26 of file sestosenso2.h.

Constructor & Destructor Documentation

◆ CommandSet()

CommandSet::CommandSet ( int  Port,
const char *  deviceName 
)
inline

Definition at line 30 of file sestosenso2.h.

Member Function Documentation

◆ abort()

bool CommandSet::abort ( )

Definition at line 1488 of file sestosenso2.cpp.

◆ applyMotorPreset()

bool CommandSet::applyMotorPreset ( const char *  name)

Definition at line 1560 of file sestosenso2.cpp.

◆ applyMotorUserPreset()

bool CommandSet::applyMotorUserPreset ( uint32_t  index)

Definition at line 1576 of file sestosenso2.cpp.

◆ fastMoveIn()

bool CommandSet::fastMoveIn ( char *  res)

Definition at line 1515 of file sestosenso2.cpp.

◆ fastMoveOut()

bool CommandSet::fastMoveOut ( char *  res)

Definition at line 1510 of file sestosenso2.cpp.

◆ getAbsolutePosition()

bool CommandSet::getAbsolutePosition ( char *  res)

Definition at line 1550 of file sestosenso2.cpp.

◆ getCurrentSpeed()

bool CommandSet::getCurrentSpeed ( char *  res)

Definition at line 1555 of file sestosenso2.cpp.

◆ getDeviceName()

const char* CommandSet::getDeviceName ( ) const
inline

Definition at line 64 of file sestosenso2.h.

◆ getExternalTemp()

bool CommandSet::getExternalTemp ( char *  res)

Definition at line 1652 of file sestosenso2.cpp.

◆ getFirmwareVersion()

bool CommandSet::getFirmwareVersion ( char *  res)

Definition at line 1483 of file sestosenso2.cpp.

◆ getHallSensor()

bool CommandSet::getHallSensor ( char *  res)

Definition at line 1525 of file sestosenso2.cpp.

◆ getMaxPosition()

bool CommandSet::getMaxPosition ( char *  res)

Definition at line 1520 of file sestosenso2.cpp.

◆ getMotorSettings()

bool CommandSet::getMotorSettings ( struct MotorRates ms,
struct MotorCurrents mc,
bool &  motorHoldActive 
)

Definition at line 1662 of file sestosenso2.cpp.

◆ getMotorTemp()

bool CommandSet::getMotorTemp ( char *  res)

Definition at line 1647 of file sestosenso2.cpp.

◆ getSerialNumber()

bool CommandSet::getSerialNumber ( char *  res)

Definition at line 1478 of file sestosenso2.cpp.

◆ getVoltageIn()

bool CommandSet::getVoltageIn ( char *  res)

Definition at line 1657 of file sestosenso2.cpp.

◆ go()

bool CommandSet::go ( uint32_t  targetTicks,
char *  res 
)

Definition at line 1493 of file sestosenso2.cpp.

◆ goHome()

bool CommandSet::goHome ( char *  res)

Definition at line 1505 of file sestosenso2.cpp.

◆ goOutToFindMaxPos()

bool CommandSet::goOutToFindMaxPos ( )

Definition at line 1535 of file sestosenso2.cpp.

◆ initCalibration()

bool CommandSet::initCalibration ( )

Definition at line 1545 of file sestosenso2.cpp.

◆ saveMotorUserPreset()

bool CommandSet::saveMotorUserPreset ( uint32_t  index,
struct MotorRates mr,
struct MotorCurrents mc 
)

Definition at line 1627 of file sestosenso2.cpp.

◆ setMotorCurrents()

bool CommandSet::setMotorCurrents ( struct MotorCurrents mc)

Definition at line 1710 of file sestosenso2.cpp.

◆ setMotorHold()

bool CommandSet::setMotorHold ( bool  hold)

Definition at line 1719 of file sestosenso2.cpp.

◆ setMotorRates()

bool CommandSet::setMotorRates ( struct MotorRates ms)

Definition at line 1693 of file sestosenso2.cpp.

◆ stop()

bool CommandSet::stop ( )

Definition at line 1500 of file sestosenso2.cpp.

◆ storeAsMaxPosition()

bool CommandSet::storeAsMaxPosition ( char *  res)

Definition at line 1530 of file sestosenso2.cpp.

◆ storeAsMinPosition()

bool CommandSet::storeAsMinPosition ( )

Definition at line 1540 of file sestosenso2.cpp.

Member Data Documentation

◆ deviceName

std::string CommandSet::deviceName

Definition at line 62 of file sestosenso2.h.

◆ PortFD

int CommandSet::PortFD

Definition at line 35 of file sestosenso2.h.


The documentation for this class was generated from the following files: