1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 15:25:36 +03:00

Rebased onto current CMS dev

This commit is contained in:
jflyper 2016-11-01 15:36:57 +09:00
commit 2bf74e0513
46 changed files with 4111 additions and 1627 deletions

View file

@ -40,6 +40,8 @@
#include "flight/pid.h"
#include "flight/altitudehold.h"
#include "io/cms.h"
#include "io/beeper.h"
#include "io/display.h"
#include "io/gps.h"
@ -48,6 +50,7 @@
#include "io/serial.h"
#include "io/serial_cli.h"
#include "io/transponder_ir.h"
#include "io/vtx_smartaudio.h"
#include "msp/msp_serial.h"
@ -342,6 +345,10 @@ void fcTasksInit(void)
#ifdef USE_BST
setTaskEnabled(TASK_BST_MASTER_PROCESS, true);
#endif
#ifdef CMS
// XXX Should check FEATURE
setTaskEnabled(TASK_CMS, true);
#endif
#ifdef VTX_CONTROL
setTaskEnabled(TASK_VTXCTRL, true);
#endif
@ -505,6 +512,15 @@ cfTask_t cfTasks[TASK_COUNT] = {
},
#endif
#ifdef CMS
[TASK_CMS] = {
.taskName = "CMS",
.taskFunc = cmsHandler,
.desiredPeriod = 1000000 / 60, // 60 Hz
.staticPriority = TASK_PRIORITY_LOW,
},
#endif
#ifdef VTX_CONTROL
[TASK_VTXCTRL] = {
.taskName = "VTXCTRL",