ifw-fcf 6.0.0
Loading...
Searching...
No Matches
smaractRpcErrors.hpp
Go to the documentation of this file.
1
10#ifndef DEVMGR_DEVICE_SMARACT_RPC_ERRORS_H
11#define DEVMGR_DEVICE_SMARACT_RPC_ERRORS_H
12
13// System headers
14#include <unordered_map>
15
16namespace fcf::devmgr::smaract {
17
18 enum {
27 };
28
29 const std::unordered_map<short, std::string> rpc_errors = {
30 {RPC_ERR_CHANNEL, "Channel not in range [0..17]."},
31 {RPC_ERR_VEL_ZERO, "Target Velocity cannot be zero."},
32 {RPC_ERR_VEL_NEG, "Target Velocity cannot be negative."},
33 {RPC_ERR_VEL_MAX, "Target Velocity higher than Maximum."},
34 {RPC_ERR_CHANNEL_NOT_OP, "Channel not OPERATIONAL. REFerence first."},
35 {RPC_ERR_CTRL_ERROR, "control error."},
36 {RPC_ERR_MOVING_ERROR, "Moving error."},
37 {RPC_ERR_COMM_ERROR, "Controller communication error."}
38 };
39
40}
41#endif // DEVMGR_DEVICE_SMARACT_RPC_ERRORS_H
Definition: smaract.hpp:19
@ 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
const std::unordered_map< short, std::string > rpc_errors
Definition: smaractRpcErrors.hpp:29