mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Driver for CADDX camera GM3 gimbal (#13926)
* Driver for CADDX camera GM3 gimbal * Update src/main/cli/settings.c Fix copy-paste error on variable name. Co-authored-by: Petr Ledvina <ledvinap@gmail.com> * Update src/main/io/gimbal_control.c Co-authored-by: Petr Ledvina <ledvinap@gmail.com> * Update src/main/io/gimbal_control.c Co-authored-by: Petr Ledvina <ledvinap@gmail.com> * Update src/main/io/gimbal_control.c Co-authored-by: Petr Ledvina <ledvinap@gmail.com> * Only forward gimbal data with good CRC --------- Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
This commit is contained in:
parent
b70e98ed5a
commit
0de6278433
14 changed files with 502 additions and 1 deletions
|
@ -64,6 +64,7 @@
|
|||
#include "io/beeper.h"
|
||||
#include "io/dashboard.h"
|
||||
#include "io/flashfs.h"
|
||||
#include "io/gimbal_control.h"
|
||||
#include "io/gps.h"
|
||||
#include "io/ledstrip.h"
|
||||
#include "io/piniobox.h"
|
||||
|
@ -452,6 +453,9 @@ task_attribute_t task_attributes[TASK_COUNT] = {
|
|||
[TASK_RC_STATS] = DEFINE_TASK("RC_STATS", NULL, NULL, rcStatsUpdate, TASK_PERIOD_HZ(100), TASK_PRIORITY_LOW),
|
||||
#endif
|
||||
|
||||
#ifdef USE_GIMBAL
|
||||
[TASK_GIMBAL] = DEFINE_TASK("GIMBAL", NULL, NULL, gimbalUpdate, TASK_PERIOD_HZ(100), TASK_PRIORITY_MEDIUM),
|
||||
#endif
|
||||
};
|
||||
|
||||
task_t *getTask(unsigned taskId)
|
||||
|
@ -631,4 +635,8 @@ void tasksInit(void)
|
|||
#ifdef USE_RC_STATS
|
||||
setTaskEnabled(TASK_RC_STATS, true);
|
||||
#endif
|
||||
|
||||
#ifdef USE_GIMBAL
|
||||
setTaskEnabled(TASK_GIMBAL, true);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue