Line 1... |
Line 1... |
1 |
/**** IR Mrakomer 4 ****/ |
1 |
/**** IR Mrakomer 4 ****/ |
2 |
#define VERSION "4.0" |
2 |
#define VERSION "4.0" |
3 |
#define ID "$Id: irmrak4.c 1285 2009-01-08 00:31:13Z kakl $" |
3 |
#define ID "$Id: irmrak4.c 1286 2009-01-08 00:34:14Z kakl $" |
4 |
#include "irmrak4.h" |
4 |
#include "irmrak4.h" |
5 |
|
5 |
|
6 |
#define MAXHEAT 20 // Number of cycles for heating |
6 |
#define MAXHEAT 20 // Number of cycles for heating |
7 |
#define MAXOPEN 20 // Number of cycles for dome open |
7 |
#define MAXOPEN 20 // Number of cycles for dome open |
8 |
#define MEASURE_DELAY 10000 // Delay to a next measurement |
8 |
#define MEASURE_DELAY 10000 // Delay to a next measurement |
Line 112... |
Line 112... |
112 |
welcome(); |
112 |
welcome(); |
113 |
|
113 |
|
114 |
tempa=ReadTemp(SA, RAM_Tamb); // Dummy read |
114 |
tempa=ReadTemp(SA, RAM_Tamb); // Dummy read |
115 |
temp=ReadTemp(SA, RAM_Tobj1); |
115 |
temp=ReadTemp(SA, RAM_Tobj1); |
116 |
|
116 |
|
- |
|
117 |
delay_ms(1000); |
117 |
//---WDT |
118 |
//---WDT |
118 |
restart_wdt(); |
119 |
restart_wdt(); |
119 |
|
120 |
|
120 |
while(TRUE) // Main Loop |
121 |
while(TRUE) // Main Loop |
121 |
{ |
122 |
{ |