mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-02-05 22:52:02 +08:00
@@ -11,7 +11,7 @@
|
||||
|
||||
class Drv8301 : public GateDriverBase, public OpAmpBase {
|
||||
public:
|
||||
typedef enum {
|
||||
typedef enum : uint32_t {
|
||||
FaultType_NoFault = (0 << 0), //!< No fault
|
||||
|
||||
// Status Register 1
|
||||
|
||||
@@ -22,7 +22,7 @@ public:
|
||||
InputPort<float2D> idq_src_;
|
||||
|
||||
// State variables
|
||||
float active_ = false;
|
||||
bool active_ = false;
|
||||
uint32_t last_timestamp_ = 0;
|
||||
float rotor_flux_ = 0.0f; // [A]
|
||||
float phase_offset_ = 0.0f; // [A]
|
||||
|
||||
Reference in New Issue
Block a user