Subversion Repositories Projects

Rev

Rev 800 | Rev 902 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 800 Rev 837
Line 180... Line 180...
180
    else if (index < 0) index = 0;
180
    else if (index < 0) index = 0;
Line 181... Line 181...
181
 
181
 
182
    write_string_pgm_down(x, y - 2, (const char *)(pgm_read_word(&(vario_pnt[index]))), 5);
182
    write_string_pgm_down(x, y - 2, (const char *)(pgm_read_word(&(vario_pnt[index]))), 5);
Line -... Line 183...
-
 
183
}
183
}
184
 
184
 
185
 
185
/* ##########################################################################
186
/* ##########################################################################
186
 * NEW artificial horizon     By AGRESSiVA --=-- COPTERTRONiC
187
 * NEW artificial horizon     By AGRESSiVA --=-- COPTERTRONiC
Line 313... Line 314...
313
    // update old vars
314
    // update old vars
314
    old_af_x = rollx;
315
    old_af_x = rollx;
315
    old_af_y = nicky;
316
    old_af_y = nicky;
316
}
317
}
Line -... Line 318...
-
 
318
 
-
 
319
/**
-
 
320
 * draw scope of a second camera
-
 
321
 */
-
 
322
void draw_scope() {
-
 
323
    /*
-
 
324
        write_char_xy(scope[0], scope[1], 0xEC);
-
 
325
        write_char_xy(scope[2], scope[3], 0xED);
-
 
326
        write_char_xy(scope[4], scope[5], 0xEE);
-
 
327
        write_char_xy(scope[6], scope[7], 0xEF);
-
 
328
     */
-
 
329
    // save 20 byte :)
-
 
330
    for (int i = 0; i < 4; i++) {
-
 
331
        write_char_xy(scope[i * 2], scope[(i * 2) + 1], 0xEC + i);
-
 
332
    }
Line 317... Line 333...
317
 
333
}