Rev 780 | Rev 794 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 780 | Rev 792 | ||
---|---|---|---|
Line 68... | Line 68... | ||
68 | #include "config.h" |
68 | #include "config.h" |
69 | #include "main.h" |
69 | #include "main.h" |
70 | #include "params.h" |
70 | #include "params.h" |
71 | #include "settings.h" |
71 | #include "settings.h" |
72 | #include "triggerlog.h" |
72 | #include "triggerlog.h" |
- | 73 | #include "camctrl.h" |
|
Line 73... | Line 74... | ||
73 | 74 | ||
74 | #define SPI_FCSYNCBYTE1 0xAA |
75 | #define SPI_FCSYNCBYTE1 0xAA |
75 | #define SPI_FCSYNCBYTE2 0x85 |
76 | #define SPI_FCSYNCBYTE2 0x85 |
76 | #define SPI_FCSYNCBYTE_HB1 0xA2 // for the huge Block |
77 | #define SPI_FCSYNCBYTE_HB1 0xA2 // for the huge Block |
Line 520... | Line 521... | ||
520 | ToFlightCtrl.Param.Byte[8] = NaviData.TargetHoldTime; // time in s to stay at the given target, counts down to 0 if target has been reached |
521 | ToFlightCtrl.Param.Byte[8] = NaviData.TargetHoldTime; // time in s to stay at the given target, counts down to 0 if target has been reached |
521 | ToFlightCtrl.Param.Byte[9] = ToFC_MaxWpListIndex; |
522 | ToFlightCtrl.Param.Byte[9] = ToFC_MaxWpListIndex; |
522 | ToFlightCtrl.Param.sInt[5] = GyroCompassCorrected / 10; // Bytes 10 & 11 |
523 | ToFlightCtrl.Param.sInt[5] = GyroCompassCorrected / 10; // Bytes 10 & 11 |
523 | ToFlightCtrl.Param.Byte[12] = CamCtrlCharacter; |
524 | ToFlightCtrl.Param.Byte[12] = CamCtrlCharacter; |
524 | ToFlightCtrl.Param.Byte[13] = BaroCalState; |
525 | ToFlightCtrl.Param.Byte[13] = BaroCalState; |
525 | ToFlightCtrl.Param.sInt[7] = LuftdruckTemperaturOffset; // Bytes 14 & 15 |
526 | ToFlightCtrl.Param.sInt[7] = LuftdruckTemperaturOffset; // Bytes 14 & 15 |
- | 527 | ToFlightCtrl.Param.Int[8] = FromLaserCtrl.Distance; // Bytes 16 & 17 |
|
526 | break; |
528 | break; |
Line 527... | Line 529... | ||
527 | 529 | ||
528 | case SPI_NCCMD_GPSINFO: |
530 | case SPI_NCCMD_GPSINFO: |
529 | ToFlightCtrl.Param.Byte[0] = GPSData.Flags; |
531 | ToFlightCtrl.Param.Byte[0] = GPSData.Flags; |
Line 704... | Line 706... | ||
704 | // 1 = 2,3 |
706 | // 1 = 2,3 |
705 | // 2 = 4,5 |
707 | // 2 = 4,5 |
706 | // 3 = 6,7 |
708 | // 3 = 6,7 |
707 | // 4 = 8,9 |
709 | // 4 = 8,9 |
708 | // 5 = 10,11 |
710 | // 5 = 10,11 |
- | 711 | // 6 = 12,13 |
|
- | 712 | // 7 = 14,15 |
|
- | 713 | // 8 = 16,17 |
|
- | 714 | // 9 = 18,19 |
|
709 | } |
715 | } |
710 | VIC_ITCmd(SSP0_ITLine, ENABLE); // enable SPI interrupt |
716 | VIC_ITCmd(SSP0_ITLine, ENABLE); // enable SPI interrupt |
711 | switch(FromFlightCtrl.Command) |
717 | switch(FromFlightCtrl.Command) |
712 | { |
718 | { |
713 | case SPI_FCCMD_USER: |
719 | case SPI_FCCMD_USER: |