#ifndef __MECHANICAL_BRAKE_HPP #define __MECHANICAL_BRAKE_HPP #include class MechanicalBrake : public ODriveIntf::MechanicalBrakeIntf { public: struct Config_t { uint16_t gpio_num = 0; bool is_active_low = true; // custom setters MechanicalBrake* parent = nullptr; void set_gpio_num(uint16_t value) { gpio_num = value; } }; MechanicalBrake() {} MechanicalBrake::Config_t config_; Axis* axis_ = nullptr; void release(); void engage(); }; #endif // __MECHANICAL_BRAKE_HPP