Skip to content

Commit

Permalink
Set extension reference in the default (actual) params
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-gu committed Aug 17, 2024
1 parent b60c3a6 commit d9ae5c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion STM32Cube/Calculations/controller_lib.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "controller_lib.h"

const ControllerParams DEFAULT_CONTROLLER_PARAMS = {
.kp = 0.020, .ki = 0.0001, .kd = 0, .i_satmax = 10.0};
.kp = 0.020, .ki = 0.0001, .kd = 0, .i_satmax = 10.0, .ext_ref = 0.58};

void controllerStateInit(ControllerState* state) {
state->controller_term_I = 0.0f;
Expand Down

0 comments on commit d9ae5c4

Please sign in to comment.