fastcat 0.13.15
C++ EtherCAT Device Command & Control Library
Loading...
Searching...
No Matches
ati_fts.h
Go to the documentation of this file.
1#ifndef FASTCAT_ATI_FTS_H_
2#define FASTCAT_ATI_FTS_H_
3
4// Include related header (for cc files)
5
6// Include c then c++ libraries
7
8// Include external then project includes
9#include "fastcat/jsd/jsd_device_base.h"
10#include "jsd/jsd_ati_fts_pub.h"
11
12namespace fastcat
13{
14class AtiFts : public JsdDeviceBase
15{
16 public:
17 AtiFts();
18 bool ConfigFromYaml(const YAML::Node& node) override;
19 bool Read() override;
20 FaultType Process() override;
21 bool Write(DeviceCmd& cmd) override;
22
23 protected:
24 bool ConfigFromYamlCommon(const YAML::Node& node);
25
26 private:
27 jsd_slave_config_t jsd_slave_config_{0};
28 bool ati_error_ = false;
29 uint32_t ati_status_code_ = 0;
30
31 double bias_[6] = {0};
32
33 bool enable_fts_guard_fault_ = true;
34 double max_force_[3] = {0, 0, 0};
35 double max_torque_[3] = {0, 0, 0};
36};
37
38} // namespace fastcat
39
40#endif
Definition ati_fts.h:15
bool ConfigFromYamlCommon(const YAML::Node &node)
Definition ati_fts.cc:18
bool Write(DeviceCmd &cmd) override
Definition ati_fts.cc:143
FaultType Process() override
Definition ati_fts.cc:104
bool ConfigFromYaml(const YAML::Node &node) override
Definition ati_fts.cc:70
AtiFts()
Definition ati_fts.cc:10
bool Read() override
Definition ati_fts.cc:77
Definition jsd_device_base.h:16
Definition device_base.h:18