Skip to content

Commit

Permalink
Make the high-rate debug port output the onboard encoder value once a…
Browse files Browse the repository at this point in the history
…gain
  • Loading branch information
jpieper committed Jul 5, 2022
1 parent 1129437 commit 74dae1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fw/bldc_servo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2050,7 +2050,7 @@ class BldcServo::Impl {
};

if (config_.emit_debug & (1 << 0)) {
write_scalar(static_cast<uint16_t>(position_.position));
write_scalar(static_cast<uint16_t>(aux1_port_->status()->spi.value * 4));
}

if (config_.emit_debug & (1 << 2)) {
Expand Down

0 comments on commit 74dae1b

Please sign in to comment.