Skip to content

Commit 10b0d03

Browse files
Merge branch 'master' into davkim-add-el6001
2 parents ff69b5e + cc3e2ae commit 10b0d03

27 files changed

+2097
-756
lines changed

src/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ add_custom_target(fcgen
5757
${CMAKE_BINARY_DIR}/fastcat/autogen/fastcat_devices/commander.cc
5858
)
5959

60+
# Build a library regardless of BUILD_TESTS flag
6061
add_library(fastcat STATIC
6162
trap.c
6263
device_base.cc
@@ -69,6 +70,8 @@ add_library(fastcat STATIC
6970

7071
jsd/actuator.cc
7172
jsd/actuator_fsm_helpers.cc
73+
jsd/egd_actuator.cc
74+
jsd/epd_actuator.cc
7275
jsd/egd.cc
7376
jsd/el3208.cc
7477
jsd/el3602.cc
@@ -84,7 +87,7 @@ add_library(fastcat STATIC
8487
jsd/jed0200.cc
8588
jsd/ati_fts.cc
8689

87-
jsd/actuator_offline.cc
90+
jsd/egd_actuator_offline.cc
8891
jsd/egd_offline.cc
8992
jsd/el2124_offline.cc
9093
jsd/el4102_offline.cc
@@ -94,6 +97,7 @@ add_library(fastcat STATIC
9497
jsd/el3104_offline.cc
9598
jsd/el3202_offline.cc
9699
jsd/el3318_offline.cc
100+
jsd/epd_actuator_offline.cc
97101
jsd/ild1900_offline.cc
98102
jsd/jed0101_offline.cc
99103
jsd/jed0200_offline.cc

src/device_base.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// Include external then project includes
77
#include "jsd/jsd_print.h"
88

9+
fastcat::DeviceBase::~DeviceBase() {}
10+
911
void fastcat::DeviceBase::RegisterCmdQueue(
1012
std::shared_ptr<std::queue<DeviceCmd>> cmd_queue)
1113
{

src/device_base.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ namespace fastcat
1818
class DeviceBase
1919
{
2020
public:
21+
virtual ~DeviceBase();
2122
// Pure virtual methods
2223
virtual bool ConfigFromYaml(YAML::Node node) = 0;
2324
virtual bool Read() = 0;

src/fcgen/fastcat_types.yaml

Lines changed: 71 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ states:
7676
- name: tared_tz
7777
type: double
7878

79-
- name: actuator
79+
- name: egd_actuator
8080
fields:
8181
- name: actual_position
8282
type: double
@@ -94,10 +94,10 @@ states:
9494
type: double
9595
- name: cmd_max_current
9696
type: double
97-
- name: egd_state_machine_state
97+
- name: elmo_state_machine_state
9898
type: uint32_t
99-
comment: "From jsd_egd_state_machine_state_t"
100-
- name: egd_mode_of_operation
99+
comment: "From jsd_elmo_state_machine_state_t"
100+
- name: elmo_mode_of_operation
101101
type: uint32_t
102102
comment: "From jsd_egd_mode_of_operation_t"
103103
- name: sto_engaged
@@ -121,13 +121,77 @@ states:
121121
type: double
122122
- name: drive_temperature
123123
type: uint32_t
124-
- name: egd_actual_position
124+
- name: elmo_actual_position
125+
type: int32_t
126+
- name: elmo_cmd_position
127+
type: int32_t
128+
- name: actuator_state_machine_state
129+
type: uint32_t
130+
- name: power
131+
type: double
132+
133+
- name: epd_actuator
134+
fields:
135+
- name: actual_position
136+
type: double
137+
- name: actual_velocity
138+
type: double
139+
- name: actual_current
140+
type: double
141+
- name: faulted
142+
type: bool
143+
- name: cmd_position
144+
type: double
145+
- name: cmd_velocity
146+
type: double
147+
- name: cmd_current
148+
type: double
149+
- name: cmd_prof_velocity
150+
type: double
151+
comment: "Commanded velocity in Position Profiled mode."
152+
- name: cmd_prof_end_velocity
153+
type: double
154+
comment: "Commanded end velocity in Position Profiled mode."
155+
- name: cmd_prof_accel
156+
type: double
157+
comment: "Commanded acceleration/deceleration in Position and Velocity Profiled modes."
158+
- name: cmd_max_current
159+
type: double
160+
- name: elmo_state_machine_state
161+
type: uint32_t
162+
comment: "From jsd_elmo_state_machine_state_t"
163+
- name: elmo_mode_of_operation
164+
type: uint32_t
165+
comment: "From jsd_epd_mode_of_operation_t"
166+
- name: sto_engaged
167+
type: uint8_t
168+
- name: hall_state
169+
type: uint8_t
170+
- name: target_reached
171+
type: uint8_t
172+
- name: setpoint_ack_rise
173+
type: bool
174+
- name: motor_on
175+
type: uint8_t
176+
- name: servo_enabled
177+
type: uint8_t
178+
- name: jsd_fault_code
179+
type: uint32_t
180+
comment: "From jsd_epd_fault_code_t"
181+
- name: fastcat_fault_code
182+
type: uint32_t
183+
- name: emcy_error_code
184+
type: uint16_t
185+
- name: bus_voltage
186+
type: double
187+
- name: drive_temperature
188+
type: double
189+
- name: elmo_actual_position
125190
type: int32_t
126-
- name: egd_cmd_position
191+
- name: elmo_cmd_position
127192
type: int32_t
128193
- name: actuator_state_machine_state
129194
type: uint32_t
130-
comment: "From jsd_egd_State_machine_state_t"
131195
- name: power
132196
type: double
133197

0 commit comments

Comments
 (0)