Skip to content

Commit

Permalink
Update the dynamometer tool for newer firmwares
Browse files Browse the repository at this point in the history
  • Loading branch information
jpieper committed Jan 31, 2023
1 parent 0d76d71 commit 3578e72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion utils/dynamometer_drive.cc
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class ServoStatsReader {
// Here we verify that the final and total timer are always valid.
if (result.final_timer == 0 ||
result.total_timer == 0 ||
result.final_timer > 3900 ||
result.final_timer > 3910 ||
result.total_timer < 5000) {
throw mjlib::base::system_error::einval(
fmt::format("Invalid timer final={} total={}",
Expand Down
3 changes: 0 additions & 3 deletions utils/moteus_subset.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ struct ServoStats {

PidPosition pid_position;

std::optional<int64_t> control_position;

uint32_t final_timer = 0;
uint32_t total_timer = 0;

Expand All @@ -85,7 +83,6 @@ struct ServoStats {
a->Visit(MJ_NVP(velocity));

a->Visit(MJ_NVP(pid_position));
a->Visit(MJ_NVP(control_position));

a->Visit(MJ_NVP(final_timer));
a->Visit(MJ_NVP(total_timer));
Expand Down

0 comments on commit 3578e72

Please sign in to comment.