mirror of
https://github.com/arwidcool/Solder-Plate.git
synced 2024-11-13 18:00:51 +01:00
Tweaked PID loop
This commit is contained in:
parent
27be9bc94d
commit
bda28d82d4
@ -9,7 +9,7 @@ PidController::PidController(double *input, double *output, double *setpoint)
|
||||
|
||||
controller.begin(input, output, setpoint, kp, ki, kd);
|
||||
controller.reverse();
|
||||
controller.setOutputLimits(3, 255);
|
||||
controller.setOutputLimits(0, 255);
|
||||
controller.setSampleTime(20);
|
||||
controller.setWindUpLimits(-100, 185);
|
||||
|
||||
|
21
src/main.cpp
21
src/main.cpp
@ -56,13 +56,24 @@ Buttons buttons = Buttons();
|
||||
LEDS leds = LEDS();
|
||||
// Declare the PID
|
||||
|
||||
// //183c pprofile
|
||||
// ReflowProfile profile = ReflowProfile(new ReflowStep[5]{
|
||||
// ReflowStep(ReflowProcessState::PREHEAT, 120, 150,EASE_OUT),
|
||||
// ReflowStep(ReflowProcessState::SOAK, 30, 183),
|
||||
// ReflowStep(ReflowProcessState::REFLOW, 60, 210,EASE_OUT),
|
||||
// ReflowStep(ReflowProcessState::COOL, 30, 183,EASE_OUT),
|
||||
// ReflowStep(ReflowProcessState::DONE, 0, 0)},
|
||||
// "meow\0");
|
||||
|
||||
|
||||
//138c profile Sn42Bi58
|
||||
ReflowProfile profile = ReflowProfile(new ReflowStep[5]{
|
||||
ReflowStep(ReflowProcessState::PREHEAT, 120, 150,EASE_OUT),
|
||||
ReflowStep(ReflowProcessState::SOAK, 30, 183),
|
||||
ReflowStep(ReflowProcessState::REFLOW, 60, 210,EASE_OUT),
|
||||
ReflowStep(ReflowProcessState::COOL, 30, 183,EASE_OUT),
|
||||
ReflowStep(ReflowProcessState::PREHEAT, 60, 100,EASE_OUT),
|
||||
ReflowStep(ReflowProcessState::SOAK, 90, 155),
|
||||
ReflowStep(ReflowProcessState::REFLOW, 45, 185,EASE_OUT),
|
||||
ReflowStep(ReflowProcessState::COOL, 45, 155,EASE_OUT),
|
||||
ReflowStep(ReflowProcessState::DONE, 0, 0)},
|
||||
"meow\0");
|
||||
"meow\0");
|
||||
|
||||
// Reflowprofile profile = Reflowprofile(new ReflowStep[5]{
|
||||
// ReflowStep(ReflowProcessState::PREHEAT, 20, 50),
|
||||
|
Loading…
Reference in New Issue
Block a user