Rev 787 | Rev 826 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 787 | Rev 800 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | * Gregor "killagreg" Stobrawa for making the MK code readable * |
23 | * Gregor "killagreg" Stobrawa for making the MK code readable * |
24 | * Klaus "akku" Buettner for the hardware * |
24 | * Klaus "akku" Buettner for the hardware * |
25 | * Manuel "KeyOz" Schrape for explaining the MK protocol to me * |
25 | * Manuel "KeyOz" Schrape for explaining the MK protocol to me * |
26 | ****************************************************************************/ |
26 | ****************************************************************************/ |
Line -... | Line 27... | ||
- | 27 | ||
27 | 28 | #include "main.h" |
|
28 | #include <avr/io.h> |
29 | #include <avr/io.h> |
29 | #include <avr/interrupt.h> |
30 | #include <avr/interrupt.h> |
30 | #include <util/delay.h> |
31 | #include <util/delay.h> |
31 | #include <avr/pgmspace.h> |
- | |
32 | #include "main.h" |
32 | #include <avr/pgmspace.h> |
33 | #include "max7456_software_spi.h" |
33 | #include "max7456_software_spi.h" |
34 | #ifdef ANTENNATRACKTEST |
34 | #ifdef ANTENNATRACKTEST |
35 | #include "usart0.h" |
35 | #include "usart0.h" |
36 | #endif |
36 | #endif |
Line 412... | Line 412... | ||
412 | //usart0_puts("\x1B[2J\x1B[H"); |
412 | //usart0_puts("\x1B[2J\x1B[H"); |
Line 413... | Line 413... | ||
413 | 413 | ||
414 | 414 | ||
415 | /* |
415 | /* |
416 | naviData.HomePositionDeviation.Distance = 23 * 100; // 23m away (cm * 100) |
416 | naviData.HomePositionDeviation.Distance = 23 * 100; // 23m away (cm * 100) |
417 | naviData.HomePositionDeviation.Bearing = 35; // 35° |
417 | naviData.HomePositionDeviation.Bearing = 35; // 35� |
418 | altimeter_offset = 50; // 50m start height |
418 | altimeter_offset = 50; // 50m start height |
Line 419... | Line 419... | ||
419 | naviData.CurrentPosition.Altitude = (int32_t) ((int32_t)250 * (int32_t)1000); // 250m height (mm * 1000) |
419 | naviData.CurrentPosition.Altitude = (int32_t) ((int32_t)250 * (int32_t)1000); // 250m height (mm * 1000) |