Skip to content

Commit

Permalink
Merge pull request #77 from nasa-jpl/davkim-loop-rate-roundup
Browse files Browse the repository at this point in the history
Round up for actuator loop period
  • Loading branch information
davidinkyu-kim authored Feb 28, 2023
2 parents 90e97eb + 169337a commit 76165d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsd/actuator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ bool fastcat::Actuator::ConfigFromYaml(YAML::Node node)

jsd_slave_config_.egd.drive_cmd_mode = JSD_EGD_DRIVE_CMD_MODE_CS;
jsd_slave_config_.egd.max_motor_speed = EuToCnts(max_speed_eu_per_sec_);
jsd_slave_config_.egd.loop_period_ms = loop_period_ * 1000.0;
jsd_slave_config_.egd.loop_period_ms = round(loop_period_ * 1000.0); //elmo's interpolation time period should be slower than actual command loop
jsd_slave_config_.egd.torque_slope = torque_slope_amps_per_sec_;
jsd_slave_config_.egd.max_profile_accel = EuToCnts(max_accel_eu_per_sec2_);
jsd_slave_config_.egd.max_profile_decel = EuToCnts(max_accel_eu_per_sec2_);
Expand Down

0 comments on commit 76165d8

Please sign in to comment.