Rev 753 | Rev 758 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 753 | Rev 757 | ||
---|---|---|---|
Line 178... | Line 178... | ||
178 | else if (index < 0) index = 0; |
178 | else if (index < 0) index = 0; |
Line 179... | Line 179... | ||
179 | 179 | ||
180 | write_string_pgm_down(x, y-2, (const char *) (pgm_read_word ( &(vario_pnt[index]))), 5); |
180 | write_string_pgm_down(x, y-2, (const char *) (pgm_read_word ( &(vario_pnt[index]))), 5); |
Line 181... | Line -... | ||
181 | } |
- | |
182 | 181 | } |
|
183 | #if (NEW_ARTHORIZON == 1) |
182 | |
184 | /* ########################################################################## |
183 | /* ########################################################################## |
185 | * NEW artificial horizon By AGRESSiVA --=-- COPTERTRONiC |
184 | * NEW artificial horizon By AGRESSiVA --=-- COPTERTRONiC |
186 | * ##########################################################################*/ |
185 | * ##########################################################################*/ |
Line 203... | Line 202... | ||
203 | 202 | ||
204 | /** |
203 | /** |
205 | * calculate the rails of artificial horizon |
204 | * calculate the rails of artificial horizon |
206 | * receive <nick> and <roll> values |
205 | * receive <nick> and <roll> values |
207 | */ |
206 | */ |
208 | void draw_artificial_horizon(uint8_t firstline, uint8_t lastline, int16_t nick, int16_t roll) { |
207 | void draw_agressiva_artificial_horizon(uint8_t firstline, uint8_t lastline, int16_t nick, int16_t roll) { |
209 | static int8_t old_ticy = 1,old_ticx = 0; |
208 | static int8_t old_ticy = 1,old_ticx = 0; |
210 | static int8_t old1 = 0,old2 = 0,old3 = 0,old4, old5 = 0, old6 = 0,old7 = 0,old8 = 0; |
209 | static int8_t old1 = 0,old2 = 0,old3 = 0,old4, old5 = 0, old6 = 0,old7 = 0,old8 = 0; |
211 | int8_t ticy = 0, ticx = 0; |
210 | int8_t ticy = 0, ticx = 0; |
212 | uint8_t center_x = 15; |
211 | uint8_t center_x = 15; |
Line 243... | Line 242... | ||
243 | // update old vars |
242 | // update old vars |
244 | old_ticy = ticy; |
243 | old_ticy = ticy; |
245 | old_ticx = ticx; |
244 | old_ticx = ticx; |
246 | } |
245 | } |
Line 247... | Line -... | ||
247 | - | ||
Line 248... | Line 246... | ||
248 | #else |
246 | |
249 | 247 | ||
250 | /* ########################################################################## |
248 | /* ########################################################################## |
Line 307... | Line 305... | ||
307 | // update old vars |
305 | // update old vars |
308 | old_af_x = rollx; |
306 | old_af_x = rollx; |
309 | old_af_y = nicky; |
307 | old_af_y = nicky; |
310 | } |
308 | } |
Line 311... | Line -... | ||
311 | - | ||
Line 312... | Line 309... | ||
312 | #endif |
309 |