Skip to content

Commit

Permalink
fixed critical bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jana-Marie committed Feb 5, 2020
1 parent d738bd0 commit c9a968f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/Src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define FILT(a, b, c) ((a) * (c) + (b) * ((1.0f) - (c)))
#define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))

#define TTIP_AVG_FILTER 0.9f
#define TTIP_AVG_FILTER 0.93f
#define MIN_DUTY 0
#define MAX_DUTY 4050

Expand Down Expand Up @@ -84,7 +84,7 @@ struct reg_t{
float Ki;
float Kd;
float deadband;
}r = {.Kp = 0.4f,.Ki = 0.05f,.Kd = 0.2f,.cycletime = 0.1f,.imax=200.0f,.target=220.0f,.deadband=12.0f};
}r = {.Kp = 0.3f,.Ki = 0.13f,.Kd = 0.3f,.cycletime = 0.1f,.imax=200.0f,.target=220.0f,.deadband=12.0f};

struct tipcal_t{
float offset;
Expand Down

0 comments on commit c9a968f

Please sign in to comment.