fastcat 0.13.15
C++ EtherCAT Device Command & Control Library
Loading...
Searching...
No Matches
gold_actuator_offline.h
Go to the documentation of this file.
1#ifndef FASTCAT_GOLD_ACTUATOR_OFFLINE_H_
2#define FASTCAT_GOLD_ACTUATOR_OFFLINE_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/gold_actuator.h"
10
11namespace fastcat
12{
14{
15 public:
17 bool ConfigFromYaml(const YAML::Node& node) override;
18
19 private:
20 void ElmoSetConfig() override;
21 void ElmoProcess() override;
22 void ElmoFault() override;
23 void ElmoReset() override;
24 void ElmoRead() override;
25 void ElmoClearErrors() override;
26 void ElmoSetPeakCurrent(double current) override;
27 void ElmoSetDigitalOutput(uint8_t digital_output_index,
28 uint8_t output_level) override;
29 void ElmoSetUnitMode(int32_t mode, uint16_t app_id) override;
30 void ElmoCSP(const jsd_elmo_motion_command_csp_t& jsd_csp_cmd) override;
31 void ElmoCSV(const jsd_elmo_motion_command_csv_t& jsd_csv_cmd) override;
32 void ElmoCST(const jsd_elmo_motion_command_cst_t& jsd_cst_cmd) override;
33 void ElmoSetGainSchedulingMode(jsd_elmo_gain_scheduling_mode_t mode,
34 uint16_t app_id) override;
35 void ElmoSetGainSchedulingIndex(uint16_t index) override;
36 void ElmoHalt() override;
37
38 double motor_on_start_time_ = 0.0;
39 uint8_t last_motor_on_state_ = 0;
40};
41
42} // namespace fastcat
43
44#endif
Definition gold_actuator_offline.h:14
GoldActuatorOffline()
Definition gold_actuator_offline.cc:13
bool ConfigFromYaml(const YAML::Node &node) override
Definition gold_actuator_offline.cc:19
Definition gold_actuator.h:15
Definition device_base.h:18