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 1277 2009-01-07 00:44:17Z kakl $" |
3 |
#define ID "$Id: irmrak4.c 1278 2009-01-07 00:47:35Z kakl $" |
4 |
#include "irmrak4.h" |
4 |
#include "irmrak4.h" |
5 |
|
5 |
|
6 |
#define MAXHEAT 10 // Number of cycles for heating |
6 |
#define MAXHEAT 10 // Number of cycles for heating |
7 |
#define MAXOPEN 10 // Number of cycles for dome open |
7 |
#define MAXOPEN 10 // Number of cycles for dome open |
8 |
#define MEASURE_DELAY 10000 |
8 |
#define MEASURE_DELAY 10000 |
Line 91... |
Line 91... |
91 |
|
91 |
|
92 |
delay_ms(1000); |
92 |
delay_ms(1000); |
93 |
restart_wdt(); |
93 |
restart_wdt(); |
94 |
printf("\n\r* Mrakomer %s (C) 2007 KAKL *\n\r",VER); // Welcome message |
94 |
printf("\n\r* Mrakomer %s (C) 2007 KAKL *\n\r",VER); // Welcome message |
95 |
printf("* %s *\n\r",REV); |
95 |
printf("* %s *\n\r",REV); |
96 |
printf("<#seq.> <ambient temp.> <space temp.> <status>\n\r\n\r"); |
96 |
printf("<#seq.> <ambient temp.> <space temp.> <heating> <dome>\n\r\n\r"); |
97 |
tempa=ReadTemp(SA, RAM_Tamb); // Dummy read |
97 |
tempa=ReadTemp(SA, RAM_Tamb); // Dummy read |
98 |
temp=ReadTemp(SA, RAM_Tobj1); |
98 |
temp=ReadTemp(SA, RAM_Tobj1); |
99 |
|
99 |
|
100 |
n=0; |
100 |
n=0; |
101 |
heat=0; |
101 |
heat=0; |