1
0
forked from me/IronOS

PID regulating (fix error being unsigned..)

This commit is contained in:
Ben V. Brown
2016-09-21 00:26:43 +10:00
parent 65659b7b99
commit f4d5b8b000
7 changed files with 37 additions and 14 deletions

View File

@@ -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 (;;) {