PID regulating (fix error being unsigned..)
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#include "Bios.h"
|
||||
#include "I2C.h"
|
||||
#include "MMA8652FC.h"
|
||||
|
||||
#include "PID.h"
|
||||
#include "Oled.h"
|
||||
#include "Interrupt.h"
|
||||
|
||||
@@ -35,10 +35,11 @@ int main(void) {
|
||||
|
||||
Init_Oled(); //init the OLED display
|
||||
Clear_Screen(); //clear the display buffer to black
|
||||
systemSettings.SleepTemp = 200;
|
||||
systemSettings.SleepTemp = 1000;
|
||||
systemSettings.SleepTime = 1;
|
||||
systemSettings.SolderingTemp = 320;
|
||||
readIronTemp(239);//load the default calibration value
|
||||
systemSettings.SolderingTemp = 1500;
|
||||
readIronTemp(239); //load the default calibration value
|
||||
setupPID(); //init the PID values
|
||||
//OLED_DrawString("TEST012",7);
|
||||
|
||||
/*for (;;) {
|
||||
|
||||
Reference in New Issue
Block a user