Subversion Repositories NaviCtrl

Rev

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

Rev 292 Rev 314
Line 77... Line 77...
77
#include "params.h"
77
#include "params.h"
78
#include "settings.h"
78
#include "settings.h"
79
#include "config.h"
79
#include "config.h"
80
#include "main.h"
80
#include "main.h"
81
#include "debug.h"
81
#include "debug.h"
82
 
-
 
83
#include "eeprom.h"
82
#include "eeprom.h"
Line -... Line 83...
-
 
83
 
-
 
84
#ifdef FOLLOW_ME
-
 
85
u8 TransmitAlsoToFC = 0;
84
 
86
#endif
85
u32 TimerCheckError;
87
u32 TimerCheckError;
86
u8 ErrorCode = 0;
88
u8 ErrorCode = 0;
87
u16 BeepTime;
89
u16 BeepTime;
88
u8  NCFlags = 0;
90
u8  NCFlags = 0;
Line 341... Line 343...
341
        DebugOut.Status[0] = 0x04 | 0x08; // NC and MK3Mag
343
        DebugOut.Status[0] = 0x04 | 0x08; // NC and MK3Mag
342
        DebugOut.Status[1] = 0x00;
344
        DebugOut.Status[1] = 0x00;
Line 343... Line 345...
343
 
345
 
Line -... Line 346...
-
 
346
        Compass_Init();
-
 
347
 
-
 
348
#ifdef FOLLOW_ME
-
 
349
        TransmitAlsoToFC = 1;
-
 
350
        UART1_PutString("\r\n++++++++++++++++++++++++++++++++++++++++++");
-
 
351
        UART1_PutString("\n\r FOLLOW-ME Transmitter only!");
-
 
352
        UART1_PutString("\r\n++++++++++++++++++++++++++++++++++++++++++\r\n\r\n");
344
        Compass_Init();
353
        TransmitAlsoToFC = 0;
345
 
354
#else
346
        SPI0_GetFlightCtrlVersion();
355
        SPI0_GetFlightCtrlVersion();
347
        if(FC_Version.Compatible != FC_SPI_COMPATIBLE)
356
        if(FC_Version.Compatible != FC_SPI_COMPATIBLE)
348
        {
357
        {
349
                UART1_PutString("\n\r Flight-Ctrl not compatible");
358
                UART1_PutString("\n\r Flight-Ctrl not compatible");
-
 
359
                LED_RED_ON;
Line 350... Line 360...
350
                LED_RED_ON;
360
        }
Line 351... Line 361...
351
        }
361
#endif
352
 
362