Skip to content

Commit

Permalink
brushed motor isn't hooked up to diag
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthecoder committed Oct 24, 2024
1 parent 6fea861 commit a063f59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class BrushedMotorHardware : public BrushedMotorHardwareIface {
auto check_limit_switch() -> bool final { return limit.debounce_state(); }
auto check_estop_in() -> bool final { return estop.debounce_state(); }
auto check_sync_in() -> bool final { return sync.debounce_state(); }
auto check_tmc_diag0() -> bool final { return diag.debounce_state(); }
auto check_tmc_diag0() -> bool final { return false; }
void read_limit_switch() final;
void read_estop_in() final;
void read_sync_in() final;
Expand Down Expand Up @@ -99,7 +99,6 @@ class BrushedMotorHardware : public BrushedMotorHardwareIface {
debouncer::Debouncer estop = debouncer::Debouncer{};
debouncer::Debouncer limit = debouncer::Debouncer{};
debouncer::Debouncer sync = debouncer::Debouncer{};
debouncer::Debouncer diag = debouncer::Debouncer{.holdoff_cnt = 90};
BrushedHardwareConfig pins;
void* enc_handle;
int32_t motor_encoder_overflow_count = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ void BrushedMotorHardware::read_sync_in() {
sync.debounce_update(gpio::is_set(pins.sync_in));
}

void BrushedMotorHardware::read_tmc_diag0() {
diag.debounce_update(gpio::is_set(pins.diag0));
}
void BrushedMotorHardware::read_tmc_diag0() { return; }

int32_t BrushedMotorHardware::get_encoder_pulses() {
if (!enc_handle) {
Expand Down

0 comments on commit a063f59

Please sign in to comment.