add motor types, including gimbal

This commit is contained in:
Oskar Weigl
2018-01-22 15:14:00 -08:00
parent 6481e00d0e
commit 35944a5750
2 changed files with 12 additions and 2 deletions
+7
View File
@@ -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;