Rev 473 | Rev 480 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 473 | Rev 474 | ||
---|---|---|---|
Line 170... | Line 170... | ||
170 | DebugOut.Analog[24] = MagVector.X; |
170 | DebugOut.Analog[24] = MagVector.X; |
171 | DebugOut.Analog[25] = MagVector.Y; |
171 | DebugOut.Analog[25] = MagVector.Y; |
172 | DebugOut.Analog[26] = MagVector.Z; |
172 | DebugOut.Analog[26] = MagVector.Z; |
173 | break; |
173 | break; |
174 | case COMPASS_NCMAG: |
174 | case COMPASS_NCMAG: |
- | 175 | if(check_value_counter == 2000) |
|
- | 176 | { |
|
- | 177 | UART1_PutString("\n\r Init Mag.-Sensor"); |
|
175 | if(check_value_counter == 2000) InitNC_MagnetSensor(); // 2 seconds noch change of the compass value |
178 | InitNC_MagnetSensor(); // 2 seconds no change of the compass value |
- | 179 | } |
|
176 | else NCMAG_Update(); |
180 | else NCMAG_Update(); |
177 | DebugOut.Analog[24] = MagRawVector.X; |
181 | DebugOut.Analog[24] = MagRawVector.X; |
178 | DebugOut.Analog[25] = MagRawVector.Y; |
182 | DebugOut.Analog[25] = MagRawVector.Y; |
179 | DebugOut.Analog[26] = MagRawVector.Z; |
183 | DebugOut.Analog[26] = MagRawVector.Z; |
180 | default: |
184 | default: |