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