Skip to content

Commit 76165d8

Browse files
Merge pull request #77 from nasa-jpl/davkim-loop-rate-roundup
Round up for actuator loop period
2 parents 90e97eb + 169337a commit 76165d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsd/actuator.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ bool fastcat::Actuator::ConfigFromYaml(YAML::Node node)
196196

197197
jsd_slave_config_.egd.drive_cmd_mode = JSD_EGD_DRIVE_CMD_MODE_CS;
198198
jsd_slave_config_.egd.max_motor_speed = EuToCnts(max_speed_eu_per_sec_);
199-
jsd_slave_config_.egd.loop_period_ms = loop_period_ * 1000.0;
199+
jsd_slave_config_.egd.loop_period_ms = round(loop_period_ * 1000.0); //elmo's interpolation time period should be slower than actual command loop
200200
jsd_slave_config_.egd.torque_slope = torque_slope_amps_per_sec_;
201201
jsd_slave_config_.egd.max_profile_accel = EuToCnts(max_accel_eu_per_sec2_);
202202
jsd_slave_config_.egd.max_profile_decel = EuToCnts(max_accel_eu_per_sec2_);

0 commit comments

Comments
 (0)