ifw-fcf 7.1.4
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Variables
motorConfig.hpp File Reference
#include <string>
#include <unordered_map>
#include <yaml-cpp/yaml.h>
#include <ifw/core/utils/bat/logger.hpp>
#include <ifw/fcf/devmgr/common/dataContext.hpp>
#include <ifw/fcf/devmgr/devices/motorBaseConfig.hpp>
#include <ifw/fcf/devmgr/devices/motorRpcErrors.hpp>
#include <ifw/fcf/devmgr/devices/motorHwErrors.hpp>

Go to the source code of this file.

Classes

struct  ifw::fcf::devmgr::motor::InitAction
 
class  ifw::fcf::devmgr::motor::MotorConfig
 Motor Configuration class. More...
 

Namespaces

namespace  ifw
 
namespace  ifw::fcf
 ActionsEnable class source file.
 
namespace  ifw::fcf::devmgr
 actuatorLcsIf class header file.
 
namespace  ifw::fcf::devmgr::motor
 Motor class source file.
 

Enumerations

enum class  ifw::fcf::devmgr::motor::Signal : short {
  ifw::fcf::devmgr::motor::LSTOP = 0 , ifw::fcf::devmgr::motor::LHW = 1 , ifw::fcf::devmgr::motor::REF = 2 , ifw::fcf::devmgr::motor::INDEX = 3 ,
  ifw::fcf::devmgr::motor::UHW = 4 , ifw::fcf::devmgr::motor::USTOP = 5
}
 
enum  {
  ifw::fcf::devmgr::motor::INIT_ACTION_END = 0 , ifw::fcf::devmgr::motor::INIT_ACTION_FIND_INDEX = 1 , ifw::fcf::devmgr::motor::INIT_ACTION_FIND_REF_LE = 2 , ifw::fcf::devmgr::motor::INIT_ACTION_FIND_REF_UE = 3 ,
  ifw::fcf::devmgr::motor::INIT_ACTION_FIND_LHW = 4 , ifw::fcf::devmgr::motor::INIT_ACTION_FIND_UHW = 5 , ifw::fcf::devmgr::motor::INIT_ACTION_DELAY = 6 , ifw::fcf::devmgr::motor::INIT_ACTION_MOVE_ABS = 7 ,
  ifw::fcf::devmgr::motor::INIT_ACTION_MOVE_REL = 8 , ifw::fcf::devmgr::motor::INIT_ACTION_CALIB_ABS = 9 , ifw::fcf::devmgr::motor::INIT_ACTION_CALIB_REL = 10 , ifw::fcf::devmgr::motor::INIT_ACTION_CALIB_SWITCH = 11
}
 

Variables

constexpr auto ifw::fcf::devmgr::motor::LOGGER_NAME = "motor"
 
constexpr auto ifw::fcf::devmgr::motor::CI_BRAKE = "brake"
 
constexpr auto ifw::fcf::devmgr::motor::CI_BACKLASH = "backlash"
 
constexpr auto ifw::fcf::devmgr::motor::CI_AXIS_TYPE = "axis_type"
 
constexpr auto ifw::fcf::devmgr::motor::CI_CHECK_INPOS = "check_inpos"
 
constexpr auto ifw::fcf::devmgr::motor::CI_LOCK = "lock"
 
constexpr auto ifw::fcf::devmgr::motor::CI_LOCK_POS = "lock_pos"
 
constexpr auto ifw::fcf::devmgr::motor::CI_LOCK_TOLERANCE = "lock_tolerance"
 
constexpr auto ifw::fcf::devmgr::motor::CI_DISABLE = "disable"
 
constexpr auto ifw::fcf::devmgr::motor::CI_ACTIVE_LOW_BRAKE = "low_brake"
 
constexpr auto ifw::fcf::devmgr::motor::CI_ACTIVE_LOW_INPOS = "low_inpos"
 
constexpr auto ifw::fcf::devmgr::motor::CI_ACTIVE_LOW_STOP = "active_low_lstop"
 
constexpr auto ifw::fcf::devmgr::motor::CI_ACTIVE_LOW_LHW = "active_low_lhw"
 
constexpr auto ifw::fcf::devmgr::motor::CI_ACTIVE_LOW_REF = "active_low_ref"
 
constexpr auto ifw::fcf::devmgr::motor::CI_ACTIVE_LOW_INDEX = "active_low_index"
 
constexpr auto ifw::fcf::devmgr::motor::CI_ACTIVE_LOW_UHW = "active_low_uhw"
 
constexpr auto ifw::fcf::devmgr::motor::CI_ACTIVE_LOW_USTOP = "active_low_ustop"
 
constexpr auto ifw::fcf::devmgr::motor::CI_EXEC_PRE_INIT = "exec_pre_init"
 
constexpr auto ifw::fcf::devmgr::motor::CI_EXEC_POST_INIT = "exec_post_init"
 
constexpr auto ifw::fcf::devmgr::motor::CI_EXEC_PRE_MOVE = "exec_pre_move"
 
constexpr auto ifw::fcf::devmgr::motor::CI_EXEC_POST_MOVE = "exec_post_move"
 
constexpr auto ifw::fcf::devmgr::motor::CI_INITIALISATION = "initialisation"
 
constexpr auto ifw::fcf::devmgr::motor::CI_INIT_SEQUENCE = "sequence"
 
constexpr auto ifw::fcf::devmgr::motor::CI_INIT_ACTION = "step"
 
constexpr auto ifw::fcf::devmgr::motor::CI_INIT_VALUE_1 = "value1"
 
constexpr auto ifw::fcf::devmgr::motor::CI_INIT_VALUE_2 = "value2"
 
constexpr int ifw::fcf::devmgr::motor::CI_AXIS_TYPE_LINEAR = 1
 
constexpr int ifw::fcf::devmgr::motor::CI_AXIS_TYPE_CIRCULAR = 2
 
constexpr int ifw::fcf::devmgr::motor::CI_AXIS_TYPE_CIRCULAR_OPT = 3
 
constexpr auto ifw::fcf::devmgr::motor::CI_AXIS_TYPE_LINEAR_STR = "LINEAR"
 
constexpr auto ifw::fcf::devmgr::motor::CI_AXIS_TYPE_CIRCULAR_STR = "CIRCULAR"
 
constexpr auto ifw::fcf::devmgr::motor::CI_AXIS_TYPE_CIRCULAR_OPT_STR = "CIRCULAR_OPT"
 
constexpr int ifw::fcf::devmgr::motor::CI_AXIS_MODE_INPOS = 0
 
constexpr int ifw::fcf::devmgr::motor::CI_AXIS_MODE_INVEL = 1
 
constexpr auto ifw::fcf::devmgr::motor::CI_AXIS_MODE_INPOS_STR = "InPosition"
 
constexpr auto ifw::fcf::devmgr::motor::CI_AXIS_MODE_INVEL_STR = "InVelocity"
 
const std::unordered_map< int, std::string > ifw::fcf::devmgr::motor::AXIS_MODE_MAP
 
constexpr int ifw::fcf::devmgr::motor::CI_MAX_INIT_STEPS = 10
 
constexpr auto ifw::fcf::devmgr::motor::CI_INIT_ACTION_END = "END"
 
constexpr auto ifw::fcf::devmgr::motor::CI_INIT_ACTION_FIND_INDEX = "FIND_INDEX"
 
constexpr auto ifw::fcf::devmgr::motor::CI_INIT_ACTION_FIND_REF_LE = "FIND_REF_LE"
 
constexpr auto ifw::fcf::devmgr::motor::CI_INIT_ACTION_FIND_REF_UE = "FIND_REF_UE"
 
constexpr auto ifw::fcf::devmgr::motor::CI_INIT_ACTION_FIND_LHW = "FIND_LHW"
 
constexpr auto ifw::fcf::devmgr::motor::CI_INIT_ACTION_FIND_UHW = "FIND_UHW"
 
constexpr auto ifw::fcf::devmgr::motor::CI_INIT_ACTION_DELAY = "DELAY"
 
constexpr auto ifw::fcf::devmgr::motor::CI_INIT_ACTION_MOVE_ABS = "MOVE_ABS"
 
constexpr auto ifw::fcf::devmgr::motor::CI_INIT_ACTION_MOVE_REL = "MOVE_REL"
 
constexpr auto ifw::fcf::devmgr::motor::CI_INIT_ACTION_CALIB_ABS = "CALIB_ABS"
 
constexpr auto ifw::fcf::devmgr::motor::CI_INIT_ACTION_CALIB_REL = "CALIB_REL"
 
constexpr auto ifw::fcf::devmgr::motor::CI_INIT_ACTION_CALIB_SWITCH = "CALIB_SWITCH"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_SCALE_FACTOR = "scale_factor"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_BACKLASH_STEP = "backlash_step"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_MODE = "mode"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_INIT_STEP = "init_step"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_INIT_ACTION = "init_action"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_AXIS_READY = "axis_ready"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_AXIS_ENABLE = "axis_enable"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_AXIS_INPOS = "axis_inposition"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_AXIS_LOCK = "axis_lock"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_AXIS_BRAKE = "axis_brake"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_AXIS_STOP_NEG = "axis_stop_pos"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_AXIS_STOP_POS = "axis_stop_neg"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_AXIS_INFO_DATA_1 = "axis_info_data1"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_AXIS_INFO_DATA_2 = "axis_info_data2"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_SIGNAL_LSTOP = "signal_lstop"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_SIGNAL_LHW = "signal_lhw"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_SIGNAL_REF = "signal_ref"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_SIGNAL_INDEX = "signal_index"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_SIGNAL_UHW = "signal_uhw"
 
constexpr auto ifw::fcf::devmgr::motor::CI_STAT_SIGNAL_USTOP = "signal_ustop"
 
constexpr auto ifw::fcf::devmgr::motor::FITS_PARAM_BRAKE = "BRAKE"
 
constexpr auto ifw::fcf::devmgr::motor::FITS_PARAM_LOCK = "LOCK"
 
const std::unordered_map< std::string, int > ifw::fcf::devmgr::motor::AXIS_TYPE_MAP
 
const std::unordered_map< std::string, int > ifw::fcf::devmgr::motor::INIT_ACTIONS_MAP
 
const std::unordered_map< int, std::string > ifw::fcf::devmgr::motor::INIT_ACTIONS2_MAP