Rev 553 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 553 | Rev 569 | ||
---|---|---|---|
Line 80... | Line 80... | ||
80 | } |
80 | } |
81 | else |
81 | else |
82 | { |
82 | { |
83 | if((cntKompass) && (cntKompass < 4000)) |
83 | if((cntKompass) && (cntKompass < 4000)) |
84 | { |
84 | { |
85 | // Salvo Kompassoffset 30.8.2007 und 21.9.2007 *********** |
85 | // Salvo Kompassoffset 23.12.2007 *********** |
86 | Kompass_present = 255; |
86 | Kompass_present = 255; |
87 | // Kompass_Value_Old = KompassValue; |
87 | // Kompass_Value_Old = KompassValue; |
88 | KompassValue = cntKompass -KOMPASS_OFFSET; |
88 | if (KOMPASS_OFFSET > 0) KompassValue = cntKompass -KOMPASS_OFFSET; |
- | 89 | else KompassValue = cntKompass - ((int) (Parameter_UserParam4*2)); |
|
Line 89... | Line 90... | ||
89 | 90 | ||
90 | if (KompassValue < 0) |
91 | if (KompassValue < 0) |
91 | { |
92 | { |
92 | KompassValue += 360; |
93 | KompassValue += 360; |