Line 1... |
Line 1... |
1 |
//******** Mrakomer2 - stepper motor control ***************** |
1 |
//******** Mrakomer2 - stepper motor control ***************** |
2 |
#define VERSION "3.0" // Special version for BART |
2 |
#define VERSION "3.0" // Special version for BART |
3 |
#define ID "$Id: irmrak.c 1586 2010-08-22 08:35:33Z kakl $" |
3 |
#define ID "$Id: irmrak.c 1590 2010-08-22 15:16:36Z kakl $" |
4 |
//************************************************************ |
4 |
//************************************************************ |
5 |
|
5 |
|
6 |
#include "irmrak.h" |
6 |
#include "irmrak.h" |
7 |
#include <string.h> |
7 |
#include <string.h> |
8 |
|
8 |
|
Line 103... |
Line 103... |
103 |
{ |
103 |
{ |
104 |
nula(); |
104 |
nula(); |
105 |
j++; // reverz, nahoru |
105 |
j++; // reverz, nahoru |
106 |
|
106 |
|
107 |
krok(18); |
107 |
krok(18); |
- |
|
108 |
delay_ms(400); |
108 |
printf("A"); // mereni teploty 45° nad obzorem |
109 |
printf("A"); // mereni teploty 45° nad obzorem |
109 |
delay_ms(300); |
110 |
delay_ms(50); |
110 |
krok(7); |
111 |
krok(6); |
- |
|
112 |
delay_ms(400); |
111 |
printf("B"); // mereni teploty v zenitu |
113 |
printf("B"); // mereni teploty v zenitu |
112 |
delay_ms(300); |
114 |
delay_ms(50); |
113 |
krok(7); |
115 |
krok(6); |
- |
|
116 |
delay_ms(400); |
114 |
printf("C"); // mereni teploty 45° nad obzorem na druhou stranu |
117 |
printf("C"); // mereni teploty 45° nad obzorem na druhou stranu |
115 |
delay_ms(300); |
118 |
delay_ms(50); |
116 |
|
119 |
|
117 |
j++; // reverz |
120 |
j++; // reverz |
118 |
dolu(); |
121 |
dolu(); |
119 |
printf("G"); // mereni teploty Zeme (<G>round) |
122 |
printf("G"); // mereni teploty Zeme (<G>round) |
120 |
|
123 |
|
Line 143... |
Line 146... |
143 |
krok(12); // odkrokuj do roviny |
146 |
krok(12); // odkrokuj do roviny |
144 |
for(i=0; i<uhel; i++) // dale odkrokuj podle pozadovaneho uhlu |
147 |
for(i=0; i<uhel; i++) // dale odkrokuj podle pozadovaneho uhlu |
145 |
{ |
148 |
{ |
146 |
krok(2); |
149 |
krok(2); |
147 |
}; |
150 |
}; |
- |
|
151 |
delay_ms(400); |
148 |
printf("S"); |
152 |
printf("S"); |
149 |
delay_ms(300); |
153 |
delay_ms(50); |
150 |
|
154 |
|
151 |
j++; // reverz |
155 |
j++; // reverz |
152 |
dolu(); |
156 |
dolu(); |
153 |
printf("G"); // mereni teploty Zeme (<G>round) |
157 |
printf("G"); // mereni teploty Zeme (<G>round) |
154 |
} |
158 |
} |