Instrument Neutral Distributed Interface INDI  1.9.5
Classes | Functions | Variables
sestosenso2.cpp File Reference
#include "sestosenso2.h"
#include "indicom.h"
#include <cmath>
#include <cstring>
#include <memory>
#include <algorithm>
#include <assert.h>
#include <termios.h>
#include <unistd.h>
#include <connectionplugins/connectionserial.h>
#include <sys/ioctl.h>

Go to the source code of this file.

Classes

struct  MotorRates
 
struct  MotorCurrents
 

Functions

void remove_chars_inplace (std::string &str, char ch)
 

Variables

const char * MOTOR_PRESET_NAMES [] = { "light", "medium", "slow" }
 
constexpr char MOTOR_SAVE_PRESET_CMD []
 
constexpr char MOTOR_RATES_CMD []
 
constexpr char MOTOR_CURRENTS_CMD []
 

Function Documentation

◆ remove_chars_inplace()

void remove_chars_inplace ( std::string &  str,
char  ch 
)
inline

Definition at line 1421 of file sestosenso2.cpp.

Variable Documentation

◆ MOTOR_CURRENTS_CMD

constexpr char MOTOR_CURRENTS_CMD[]
constexpr
Initial value:
=
"{\"req\":{\"set\":{\"MOT1\":{"
"\"FnRUN_CURR_ACC\":%u,"
"\"FnRUN_CURR_SPD\":%u,"
"\"FnRUN_CURR_DEC\":%u,"
"\"FnRUN_CURR_HOLD\":%u"
"}}}}"

Definition at line 1702 of file sestosenso2.cpp.

◆ MOTOR_PRESET_NAMES

const char* MOTOR_PRESET_NAMES[] = { "light", "medium", "slow" }

Definition at line 57 of file sestosenso2.cpp.

◆ MOTOR_RATES_CMD

constexpr char MOTOR_RATES_CMD[]
constexpr
Initial value:
=
"{\"req\":{\"set\":{\"MOT1\":{"
"\"FnRUN_ACC\":%u,"
"\"FnRUN_SPD\":%u,"
"\"FnRUN_DEC\":%u"
"}}}}"

Definition at line 1686 of file sestosenso2.cpp.

◆ MOTOR_SAVE_PRESET_CMD

constexpr char MOTOR_SAVE_PRESET_CMD[]
constexpr
Initial value:
=
"{\"req\":{\"set\":{\"RUNPRESET_%u\":{"
"\"RP_NAME\":\"User%u\","
"\"M1ACC\":%u,\"M1DEC\":%u,\"M1SPD\":%u,"
"\"M1CACC\":%u,\"M1CDEC\":%u,\"M1CSPD\":%u,\"M1HOLD\":%u"
"}}}}"

Definition at line 1620 of file sestosenso2.cpp.