ifw-fcf 7.1.4
Loading...
Searching...
No Matches
drotRpcErrors.hpp
Go to the documentation of this file.
1
8#ifndef FCF_DEVMGR_DEVICE_DROT_RPC_ERRORS_H
9#define FCF_DEVMGR_DEVICE_DROT_RPC_ERRORS_H
10
11#include <unordered_map>
12
13
14namespace ifw::fcf {
15 namespace devmgr {
16 namespace drot {
17
18 enum {
27 };
28
29 const std::unordered_map<short, std::string> RPC_ERRORS = {
30 {RPC_ERR_NOT_OP, "Cannot disable Drot. Not in OP state"},
31 {RPC_ERR_NOT_OP_READY, "Cannot enable Drot. Not in NOT_OP_READY."},
32 {RPC_ERR_NOT_OP_NOTREADY, "Cannot init Drot. Not in NOT_OP_NOTREADY or FAILURE."},
33 {RPC_ERR_MOTOR_LOCAL, "RPC calls are not allowed in Local mode."},
34 {RPC_ERR_MOTOR_LOWER_LIMIT, "Move rejected. Target position beyond lower SW limit."},
35 {RPC_ERR_MOTOR_UPPER_LIMIT, "Move rejected. Target position beyond upper SW limit."},
36 {RPC_ERR_NOT_TRACKING, "Offset rejected. Device is not tracking."}
37 };
38
39 }
40 }
41}
42#endif // FCF_DEVMGR_DEVICE_DROT_RPC_ERRORS_H
@ RPC_ERR_NOT_OP
Definition drotRpcErrors.hpp:20
@ RPC_ERR_MOTOR_LOCAL
Definition drotRpcErrors.hpp:23
@ RPC_ERR_NOT_OP_READY
Definition drotRpcErrors.hpp:21
@ RPC_ERR_NOT_TRACKING
Definition drotRpcErrors.hpp:26
@ RPC_SUCCESS
Definition drotRpcErrors.hpp:19
@ RPC_ERR_MOTOR_LOWER_LIMIT
Definition drotRpcErrors.hpp:24
@ RPC_ERR_NOT_OP_NOTREADY
Definition drotRpcErrors.hpp:22
@ RPC_ERR_MOTOR_UPPER_LIMIT
Definition drotRpcErrors.hpp:25
const std::unordered_map< short, std::string > RPC_ERRORS
Definition drotRpcErrors.hpp:29
ActionsEnable class source file.
Definition actionMgr.cpp:28