File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
include/motor-control/firmware Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ class BrushedMotorHardware : public BrushedMotorHardwareIface {
99
99
debouncer::Debouncer estop = debouncer::Debouncer{};
100
100
debouncer::Debouncer limit = debouncer::Debouncer{};
101
101
debouncer::Debouncer sync = debouncer::Debouncer{};
102
- debouncer::Debouncer diag = debouncer::Debouncer{.holdoff_cnt = 90 };
102
+ debouncer::Debouncer diag = debouncer::Debouncer{.holdoff_cnt = 90 };
103
103
BrushedHardwareConfig pins;
104
104
void * enc_handle;
105
105
int32_t motor_encoder_overflow_count = 0 ;
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ class MotorHardware : public StepperMotorHardwareIface {
72
72
73
73
private:
74
74
debouncer::Debouncer estop = debouncer::Debouncer{};
75
- debouncer::Debouncer diag = debouncer::Debouncer{.holdoff_cnt = 90 };
75
+ debouncer::Debouncer diag = debouncer::Debouncer{.holdoff_cnt = 90 };
76
76
debouncer::Debouncer limit = debouncer::Debouncer{};
77
77
std::atomic_bool sync = false ;
78
78
static constexpr uint16_t encoder_reset_offset = 20 ;
Original file line number Diff line number Diff line change @@ -58,7 +58,9 @@ void BrushedMotorHardware::read_sync_in() {
58
58
sync.debounce_update (gpio::is_set (pins.sync_in ));
59
59
}
60
60
61
- void BrushedMotorHardware::read_tmc_diag0 () { diag.debounce_update (gpio::is_set (pins.diag0 )); }
61
+ void BrushedMotorHardware::read_tmc_diag0 () {
62
+ diag.debounce_update (gpio::is_set (pins.diag0 ));
63
+ }
62
64
63
65
int32_t BrushedMotorHardware::get_encoder_pulses () {
64
66
if (!enc_handle) {
Original file line number Diff line number Diff line change @@ -53,7 +53,9 @@ void MotorHardware::read_estop_in() {
53
53
54
54
void MotorHardware::read_sync_in () { sync = gpio::is_set (pins.sync_in ); }
55
55
56
- void MotorHardware::read_tmc_diag0 () { diag.debounce_update (gpio::is_set (pins.diag0 )); }
56
+ void MotorHardware::read_tmc_diag0 () {
57
+ diag.debounce_update (gpio::is_set (pins.diag0 ));
58
+ }
57
59
58
60
void MotorHardware::set_LED (bool status) {
59
61
if (status) {
You can’t perform that action at this time.
0 commit comments