ifw-fcf  5.0.0-pre2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Enumerations | Functions | Variables
fcf::devmgr::smaract Namespace Reference

Classes

class  Smaract
 The Smaract class. More...
 
struct  SmaractControllerData
 The MotorControllerData struct. More...
 
class  SmaractLcsIf
 Motor Local Control System (LCS) Interface (IF) class. More...
 

Enumerations

enum  { HW_SUCCESS = 0 , HW_ERR_HW_NOT_OP = 1 , HW_ERR_LOCAL = 2 , HW_ERR_INIT_ABORTED = 3 }
 
enum  {
  RPC_ERR_CHANNEL = -7 , RPC_ERR_VEL_ZERO = -8 , RPC_ERR_VEL_NEG = -9 , RPC_ERR_VEL_MAX = -10 ,
  RPC_ERR_CHANNEL_NOT_OP = -11 , RPC_ERR_CTRL_ERROR = -12 , RPC_ERR_MOVING_ERROR = -13 , RPC_ERR_COMM_ERROR = -14
}
 

Functions

 REGISTER_DEVICE (Smaract)
 

Variables

constexpr auto LOGGER_NAME = "smaract"
 
constexpr auto CI_SCALE_FACTOR = "scale_factor"
 
const std::unordered_map< short, std::string > hw_errors
 
const std::unordered_map< short, std::string > rpc_errors
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
HW_SUCCESS 
HW_ERR_HW_NOT_OP 
HW_ERR_LOCAL 
HW_ERR_INIT_ABORTED 

◆ anonymous enum

anonymous enum
Enumerator
RPC_ERR_CHANNEL 
RPC_ERR_VEL_ZERO 
RPC_ERR_VEL_NEG 
RPC_ERR_VEL_MAX 
RPC_ERR_CHANNEL_NOT_OP 
RPC_ERR_CTRL_ERROR 
RPC_ERR_MOVING_ERROR 
RPC_ERR_COMM_ERROR 

Function Documentation

◆ REGISTER_DEVICE()

fcf::devmgr::smaract::REGISTER_DEVICE ( Smaract  )

Variable Documentation

◆ CI_SCALE_FACTOR

constexpr auto fcf::devmgr::smaract::CI_SCALE_FACTOR = "scale_factor"
constexpr

◆ hw_errors

const std::unordered_map<short, std::string> fcf::devmgr::smaract::hw_errors
Initial value:
= {
{HW_ERR_HW_NOT_OP, "TwinCAT not OP or CouplerState not mapped."},
{HW_ERR_LOCAL, "control not allowed. Motor in Local mode."},
{HW_ERR_INIT_ABORTED, "INIT command aborted."},
}
@ HW_ERR_LOCAL
Definition: smaractHwErrors.hpp:21
@ HW_ERR_HW_NOT_OP
Definition: smaractHwErrors.hpp:20
@ HW_ERR_INIT_ABORTED
Definition: smaractHwErrors.hpp:22

◆ LOGGER_NAME

constexpr auto fcf::devmgr::smaract::LOGGER_NAME = "smaract"
constexpr

◆ rpc_errors

const std::unordered_map<short, std::string> fcf::devmgr::smaract::rpc_errors
Initial value:
= {
{RPC_ERR_CHANNEL, "Channel not in range [0..17]."},
{RPC_ERR_VEL_ZERO, "Target Velocity cannot be zero."},
{RPC_ERR_VEL_NEG, "Target Velocity cannot be negative."},
{RPC_ERR_VEL_MAX, "Target Velocity higher than Maximum."},
{RPC_ERR_CHANNEL_NOT_OP, "Channel not OPERATIONAL. REFerence first."},
{RPC_ERR_CTRL_ERROR, "control error."},
{RPC_ERR_MOVING_ERROR, "Moving error."},
{RPC_ERR_COMM_ERROR, "Controller communication error."}
}
@ RPC_ERR_VEL_MAX
Definition: smaractRpcErrors.hpp:22
@ RPC_ERR_CHANNEL_NOT_OP
Definition: smaractRpcErrors.hpp:23
@ RPC_ERR_MOVING_ERROR
Definition: smaractRpcErrors.hpp:25
@ RPC_ERR_VEL_ZERO
Definition: smaractRpcErrors.hpp:20
@ RPC_ERR_COMM_ERROR
Definition: smaractRpcErrors.hpp:26
@ RPC_ERR_CTRL_ERROR
Definition: smaractRpcErrors.hpp:24
@ RPC_ERR_VEL_NEG
Definition: smaractRpcErrors.hpp:21
@ RPC_ERR_CHANNEL
Definition: smaractRpcErrors.hpp:19