Skip to content

Commit

Permalink
task: add dedicated gesture task
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Jul 6, 2024
1 parent 773522f commit 3b3bea1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
#include "rx/rx.h"

void util_task() {
// check gestures
gestures();

// handle led commands
led_update();

Expand All @@ -43,7 +40,8 @@ FAST_RAM task_t tasks[TASK_MAX] = {
[TASK_PID] = CREATE_TASK("PID", TASK_MASK_ALWAYS, TASK_PRIORITY_REALTIME, control, 0),
[TASK_RX] = CREATE_TASK("RX", TASK_MASK_ALWAYS, TASK_PRIORITY_REALTIME, rx_update, 0),
[TASK_VBAT] = CREATE_TASK("VBAT", TASK_MASK_ALWAYS, TASK_PRIORITY_HIGH, vbat_calc, 1000),
[TASK_UTIL] = CREATE_TASK("UTIL", TASK_MASK_ALWAYS, TASK_PRIORITY_HIGH, util_task, 0),
[TASK_UTIL] = CREATE_TASK("UTIL", TASK_MASK_ALWAYS, TASK_PRIORITY_HIGH, util_task, 1000),
[TASK_GESTURES] = CREATE_TASK("GESTURES", TASK_MASK_ON_GROUND, TASK_PRIORITY_MEDIUM, gestures, 0),
[TASK_BLACKBOX] = CREATE_TASK("BLACKBOX", TASK_MASK_ALWAYS, TASK_PRIORITY_MEDIUM, blackbox_update, 0),
[TASK_OSD] = CREATE_TASK("OSD", TASK_MASK_ALWAYS, TASK_PRIORITY_MEDIUM, osd_display, 8000),
[TASK_VTX] = CREATE_TASK("VTX", TASK_MASK_ON_GROUND, TASK_PRIORITY_LOW, vtx_update, 0),
Expand Down
1 change: 1 addition & 0 deletions src/core/tasks.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ typedef enum {
TASK_RX,
TASK_VBAT,
TASK_UTIL,
TASK_GESTURES,
TASK_BLACKBOX,
TASK_OSD,
TASK_VTX,
Expand Down

0 comments on commit 3b3bea1

Please sign in to comment.