Subversion Repositories NaviCtrl

Rev

Rev 420 | Rev 427 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 420 Rev 426
Line 62... Line 62...
62
#include "uart1.h"
62
#include "uart1.h"
63
#include "uart2.h"
63
#include "uart2.h"
64
#include "gps.h"
64
#include "gps.h"
65
#include "i2c.h"
65
#include "i2c.h"
66
#include "compass.h"
66
#include "compass.h"
-
 
67
#include "ncmag.h"
67
#include "timer1.h"
68
#include "timer1.h"
68
#include "timer2.h"
69
#include "timer2.h"
69
#include "analog.h"
70
#include "analog.h"
70
#include "spi_slave.h"
71
#include "spi_slave.h"
71
#include "fat16.h"
72
#include "fat16.h"
Line 272... Line 273...
272
              newErrorCode = 5;
273
              newErrorCode = 5;
273
                 }
274
                 }
274
                StopNavigation = 1;
275
                StopNavigation = 1;
275
//              UBX_Timeout = SetDelay(500);
276
//              UBX_Timeout = SetDelay(500);
276
        }
277
        }
-
 
278
        else if(Compass_Heading < 0 && NCMAG_Present && !NCMAG_IsCalibrated)
-
 
279
        {
-
 
280
                LED_RED_ON;
-
 
281
                sprintf(ErrorMSG,"compass not calibr.");
-
 
282
                newErrorCode = 31;
-
 
283
                StopNavigation = 1;
-
 
284
                UART_VersionInfo.HardwareError[0] |= NC_ERROR0_COMPASS_VALUE;
-
 
285
        }
277
        else if(Compass_Heading < 0)
286
        else if(Compass_Heading < 0)
278
        {
287
        {
279
                LED_RED_ON;
288
                LED_RED_ON;
280
                sprintf(ErrorMSG,"bad compass value ");
289
                sprintf(ErrorMSG,"bad compass value ");
281
                newErrorCode = 6;
290
                newErrorCode = 6;