1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

Implemented Camera Control using Hardware and Software PWM

This commit is contained in:
DieHertz 2017-05-18 18:35:33 +03:00
parent 491ecba4ed
commit cc358dc405
21 changed files with 399 additions and 22 deletions

View file

@ -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"
@ -1846,6 +1847,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();