TwiceAsNice  2019-02-18
Macros | Functions
robofocus.cpp File Reference
#include "robofocus.h"
#include "indicom.h"
#include <memory>
#include <cstring>
#include <termios.h>
Include dependency graph for robofocus.cpp:

Macros

#define RF_MAX_CMD   9
 
#define RF_TIMEOUT   3
 
#define BACKLASH_READOUT   99999
 
#define MAXTRAVEL_READOUT   99999
 
#define currentSpeed   SpeedN[0].value
 
#define currentPosition   FocusAbsPosN[0].value
 
#define currentTemperature   TemperatureN[0].value
 
#define currentBacklash   SetBacklashN[0].value
 
#define currentDuty   SettingsN[0].value
 
#define currentDelay   SettingsN[1].value
 
#define currentTicks   SettingsN[2].value
 
#define currentRelativeMovement   FocusRelPosN[0].value
 
#define currentAbsoluteMovement   FocusAbsPosN[0].value
 
#define currentSetBacklash   SetBacklashN[0].value
 
#define currentMinPosition   MinMaxPositionN[0].value
 
#define currentMaxPosition   MinMaxPositionN[1].value
 
#define currentMaxTravel   MaxTravelN[0].value
 
#define SETTINGS_TAB   "Settings"
 

Functions

std::unique_ptr< RoboFocusroboFocus (new RoboFocus())
 
void ISGetProperties (const char *dev)
 Get Device Properties. More...
 
void ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n)
 Update the value of an existing switch vector property. More...
 
void ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n)
 Update the value of an existing text vector property. More...
 
void ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n)
 
void ISNewBLOB (const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n)
 Update data of an existing blob vector property. More...
 
void ISSnoopDevice (XMLEle *root)
 Function defined by Drivers that is called when another Driver it is snooping (by having previously called IDSnoopDevice()) sent any INDI message. More...
 

Macro Definition Documentation

◆ BACKLASH_READOUT

#define BACKLASH_READOUT   99999

◆ currentAbsoluteMovement

#define currentAbsoluteMovement   FocusAbsPosN[0].value

◆ currentBacklash

#define currentBacklash   SetBacklashN[0].value

◆ currentDelay

#define currentDelay   SettingsN[1].value

◆ currentDuty

#define currentDuty   SettingsN[0].value

◆ currentMaxPosition

#define currentMaxPosition   MinMaxPositionN[1].value

◆ currentMaxTravel

#define currentMaxTravel   MaxTravelN[0].value

◆ currentMinPosition

#define currentMinPosition   MinMaxPositionN[0].value

◆ currentPosition

#define currentPosition   FocusAbsPosN[0].value

◆ currentRelativeMovement

#define currentRelativeMovement   FocusRelPosN[0].value

◆ currentSetBacklash

#define currentSetBacklash   SetBacklashN[0].value

◆ currentSpeed

#define currentSpeed   SpeedN[0].value

◆ currentTemperature

#define currentTemperature   TemperatureN[0].value

◆ currentTicks

#define currentTicks   SettingsN[2].value

◆ MAXTRAVEL_READOUT

#define MAXTRAVEL_READOUT   99999

◆ RF_MAX_CMD

#define RF_MAX_CMD   9

◆ RF_TIMEOUT

#define RF_TIMEOUT   3

◆ SETTINGS_TAB

#define SETTINGS_TAB   "Settings"

Function Documentation

◆ ISNewNumber()

void ISNewNumber ( const char *  dev,
const char *  name,
double  values[],
char *  names[],
int  n 
)

◆ roboFocus()

std::unique_ptr<RoboFocus> roboFocus ( new   RoboFocus())