Skip to content

Commit

Permalink
update limits
Browse files Browse the repository at this point in the history
  • Loading branch information
yconst committed Feb 9, 2024
1 parent 1fd00b4 commit c367831
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion firmware/src/controller/controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static ControllerConfig config = {
.vel_gain = 5.0e-5f,
.vel_integrator_gain = 0.00020f,
.vel_integrator_deadband = 200.0f,
.I_bw = 2000.0,
.I_bw = 500.0,
.I_gain = 0.0f,
.Iq_integrator_gain = 0.0f,
.Id_integrator_gain = 0.0f,
Expand Down
4 changes: 2 additions & 2 deletions firmware/src/motor/motor.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

#if defined BOARD_REV_R32 || BOARD_REV_R33 || defined BOARD_REV_R5
#define MIN_PHASE_RESISTANCE (0.01f)
#define MAX_PHASE_RESISTANCE (1.0f)
#define MAX_PHASE_RESISTANCE (3.0f)
#define MIN_PHASE_INDUCTANCE (5e-6f)
#define MAX_PHASE_INDUCTANCE (1e-3f)
#define MAX_PHASE_INDUCTANCE (3e-3f)
#elif defined BOARD_REV_M5
#define MIN_PHASE_RESISTANCE (0.5f)
#define MAX_PHASE_RESISTANCE (20.0f)
Expand Down
2 changes: 1 addition & 1 deletion firmware/src/observer/observer.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
static ObserverState state = {0};

static ObserverConfig config = {
.track_bw = 350.0f,
.track_bw = 120.0f,
.kp = 0.0f,
.ki = 0.0f,
};
Expand Down

0 comments on commit c367831

Please sign in to comment.