mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-21 23:44:48 +08:00
add motor types, including gimbal
This commit is contained in:
@@ -60,6 +60,12 @@ typedef enum {
|
||||
CTRL_MODE_POSITION_CONTROL
|
||||
} Motor_control_mode_t;
|
||||
|
||||
typedef enum {
|
||||
MOTOR_TYPE_HIGH_CURRENT,
|
||||
// MOTOR_TYPE_LOW_CURRENT, //Not yet implemented
|
||||
MOTOR_TYPE_GIMBAL
|
||||
} Motor_type_t;
|
||||
|
||||
typedef struct {
|
||||
float phB;
|
||||
float phC;
|
||||
@@ -149,6 +155,7 @@ typedef struct {
|
||||
Iph_BC_t DC_calib;
|
||||
DRV8301_Obj gate_driver;
|
||||
DRV_SPI_8301_Vars_t gate_driver_regs; //Local view of DRV registers
|
||||
Motor_type_t motor_type;
|
||||
float shunt_conductance;
|
||||
float phase_current_rev_gain; //Reverse gain for ADC to Amps
|
||||
Current_control_t current_control;
|
||||
|
||||
Reference in New Issue
Block a user