Mavlink introduction

Templates bug fix
This commit is contained in:
bsongis
2012-03-19 16:12:36 +00:00
parent 695ecf7a0d
commit 0611c1de96
262 changed files with 67218 additions and 94 deletions
+10
View File
@@ -548,6 +548,7 @@ void doSplash()
#define INAC_DEVISOR 256 // Bypass splash screen with stick movement
uint16_t inacSum = 0;
// TODO uint16_t inacSum = stickMoveValue();
for(uint8_t i=0; i<4; i++)
inacSum += anaIn(i)/INAC_DEVISOR;
@@ -566,6 +567,7 @@ void doSplash()
if(keyDown() || (tsum!=inacSum)) return; //wait for key release
// TODO check_backlight() ;
if(getSwitch(g_eeGeneral.lightSw,0) || g_eeGeneral.lightAutoOff)
BACKLIGHT_ON;
else
@@ -2144,6 +2146,14 @@ int main(void)
NMEA_Init();
#endif
#ifdef MAVLINK
MAVLINK_Init();
#endif
#ifdef MENU_ROTARY_SW
init_rotary_sw();
#endif
eeReadAll();
uint8_t cModel = g_eeGeneral.currModel;