fastcat 0.13.15
C++ EtherCAT Device Command & Control Library
Loading...
Searching...
No Matches
platinum_actuator_offline.h
Go to the documentation of this file.
1#ifndef FASTCAT_PLATINUM_ACTUATOR_OFFLINE_H_
2#define FASTCAT_PLATINUM_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/platinum_actuator.h"
10
11namespace fastcat
12{
14{
15 public:
17 bool ConfigFromYaml(const YAML::Node& node) override;
18
19 private:
20 bool HandleNewProfPosCmdImpl(const DeviceCmd& cmd) override;
21 bool HandleNewProfVelCmdImpl(const DeviceCmd& cmd) override;
22 bool HandleNewProfTorqueCmdImpl(const DeviceCmd& cmd) override;
23
24 FaultType ProcessProfPos() override;
25 FaultType ProcessProfVel() override;
26 FaultType ProcessProfTorque() override;
27 FaultType ProcessProfPosDisengaging() override;
28 FaultType ProcessProfVelDisengaging() override;
29 FaultType ProcessProfTorqueDisengaging() override;
30
31 void ElmoSetConfig() override;
32 void ElmoProcess() override;
33 void ElmoFault() override;
34 void ElmoReset() override;
35 void ElmoRead() override;
36 void ElmoClearErrors() override;
37 void ElmoSetPeakCurrent(double current) override;
38 void ElmoSetUnitMode(int32_t mode, uint16_t app_id) override;
39 void ElmoCSP(const jsd_elmo_motion_command_csp_t& jsd_csp_cmd) override;
40 void ElmoCSV(const jsd_elmo_motion_command_csv_t& jsd_csv_cmd) override;
41 void ElmoCST(const jsd_elmo_motion_command_cst_t& jsd_cst_cmd) override;
42 void ElmoSetGainSchedulingMode(jsd_elmo_gain_scheduling_mode_t mode,
43 uint16_t app_id) override;
44 void ElmoSetGainSchedulingIndex(uint16_t index) override;
45 void ElmoHalt() override;
46
47 double motor_on_start_time_ = 0.0;
48 uint8_t last_motor_on_state_ = 0;
49};
50
51} // namespace fastcat
52
53#endif
Definition platinum_actuator_offline.h:14
bool ConfigFromYaml(const YAML::Node &node) override
Definition platinum_actuator_offline.cc:20
PlatinumActuatorOffline()
Definition platinum_actuator_offline.cc:13
Definition platinum_actuator.h:16
Definition device_base.h:18