Heater for threaded program
Dependents: LEX_Threaded_Programming_V3
Diff: Heater.h
- Revision:
- 23:947850bbf325
- Parent:
- 20:2d34a03ae57e
- Child:
- 24:6debc2fb9ff3
--- a/Heater.h Wed Aug 07 16:03:27 2019 +0000 +++ b/Heater.h Wed Aug 07 16:37:10 2019 +0000 @@ -16,8 +16,8 @@ #define N_ROLL_AVG 1 // rolling average for R values #define ALL_CH 15 //value of convst bus to read all chanels simultaneosly -#define Kp 0.2f //proportional gain -#define Ti 0.5f //Integration time +#define Kp 8.0f //proportional gain +#define Ti 0.3f //Integration time #define Kd 0.1f //Differentiator gain #define WIND_UP_LIMIT 0.1f //The change in error which turns off the integral term #define PWM_PERIOD 5 //Period of Pwm for the motor in us