ifw-fcf 7.1.4
Loading...
Searching...
No Matches
motorRpcErrors.hpp
Go to the documentation of this file.
1
8#ifndef DEVMGR_DEVICE_LAMP_RPC_ERRORS_H
9#define DEVMGR_DEVICE_LAMP_RPC_ERRORS_H
10
11#include <unordered_map>
12
13
15
16 enum {
17 RPC_SUCCESS = 0,
18 RPC_ERR_NOT_OP = -1,
28 RPC_ERR_UNSAFE = -11
29 };
30
31 const std::unordered_map<short, std::string> RPC_ERRORS = {
32 {RPC_ERR_NOT_OP, "Cannot control motor. Not in OP state"},
33 {RPC_ERR_NOT_OP_READY, "Call failed. Not in READY."},
34 {RPC_ERR_NOT_OP_NOTREADY, "Call failed. Not in NOTREADY or FAILURE."},
35 {RPC_ERR_MOTOR_LOCAL, "RPC calls are not allowed in Local mode."},
36 {RPC_ERR_MOTOR_LOWER_LIMIT, "Move rejected. Target position beyond lower SW limit."},
37 {RPC_ERR_MOTOR_UPPER_LIMIT, "Move rejected. Target position beyond upper SW limit."},
38 {RPC_ERR_INIT_WHILE_MOVING, "Cannot INIT moving motor. Motor stopped. Retry."},
39 {RPC_ERR_VEL_ZERO, "Set velocity cannot be zero."},
40 {RPC_ERR_VEL_NEG, "Set velocity not allowed (<=0)."},
41 {RPC_ERR_VEL_MAX, "Set velocity not allowed (>Vel_max)."},
42 {RPC_ERR_UNSAFE, "Unsafe to move the motor."}
43
44 };
45
46}
47#endif // DEVMGR_DEVICE_LAMP_RPC_ERRORS_H
Motor class source file.
Definition motor.hpp:17
const std::unordered_map< short, std::string > RPC_ERRORS
Definition motorBaseRpcErrors.hpp:26
@ RPC_ERR_MOTOR_LOCAL
Definition motorBaseRpcErrors.hpp:21
@ RPC_ERR_MOTOR_LOWER_LIMIT
Definition motorBaseRpcErrors.hpp:22
@ RPC_ERR_UNSAFE
Definition motorRpcErrors.hpp:28
@ RPC_ERR_VEL_MAX
Definition motorRpcErrors.hpp:27
@ RPC_ERR_VEL_ZERO
Definition motorRpcErrors.hpp:25
@ RPC_ERR_MOTOR_UPPER_LIMIT
Definition motorBaseRpcErrors.hpp:23
@ RPC_ERR_NOT_OP_NOTREADY
Definition motorBaseRpcErrors.hpp:20
@ RPC_ERR_NOT_OP
Definition motorBaseRpcErrors.hpp:18
@ RPC_ERR_VEL_NEG
Definition motorRpcErrors.hpp:26
@ RPC_SUCCESS
Definition motorBaseRpcErrors.hpp:17
@ RPC_ERR_INIT_WHILE_MOVING
Definition motorRpcErrors.hpp:24
@ RPC_ERR_NOT_OP_READY
Definition motorBaseRpcErrors.hpp:19