mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Merge pull request #2727 from DieHertz/camera-control
Camera OSD control
This commit is contained in:
commit
dcc600a78b
21 changed files with 416 additions and 21 deletions
|
@ -53,6 +53,7 @@
|
|||
#include "drivers/vcd.h"
|
||||
#include "drivers/vtx_common.h"
|
||||
#include "drivers/transponder_ir.h"
|
||||
#include "drivers/camera_control.h"
|
||||
|
||||
#include "fc/config.h"
|
||||
#include "fc/controlrate_profile.h"
|
||||
|
@ -1856,6 +1857,19 @@ static mspResult_e mspFcProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
|
|||
break;
|
||||
#endif
|
||||
|
||||
#ifdef USE_CAMERA_CONTROL
|
||||
case MSP_CAMERA_CONTROL:
|
||||
{
|
||||
if (ARMING_FLAG(ARMED)) {
|
||||
return MSP_RESULT_ERROR;
|
||||
}
|
||||
|
||||
const uint8_t key = sbufReadU8(src);
|
||||
cameraControlKeyPress(key, 0);
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef USE_FLASHFS
|
||||
case MSP_DATAFLASH_ERASE:
|
||||
flashfsEraseCompletely();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue