mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
RC Split tidy
This commit is contained in:
parent
db8698d801
commit
9556c5b811
4 changed files with 27 additions and 47 deletions
|
@ -19,9 +19,8 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
#include "common/time.h"
|
||||
#include "fc/fc_msp.h"
|
||||
|
||||
typedef struct {
|
||||
typedef struct rcsplitSwitchState_s {
|
||||
bool isActivated;
|
||||
} rcsplitSwitchState_t;
|
||||
|
||||
|
@ -32,8 +31,8 @@ typedef enum {
|
|||
} rcsplitState_e;
|
||||
|
||||
// packet header and tail
|
||||
#define RCSPLIT_PACKET_HEADER 0x55
|
||||
#define RCSPLIT_PACKET_CMD_CTRL 0x01
|
||||
#define RCSPLIT_PACKET_HEADER 0x55
|
||||
#define RCSPLIT_PACKET_CMD_CTRL 0x01
|
||||
#define RCSPLIT_PACKET_TAIL 0xaa
|
||||
|
||||
|
||||
|
@ -47,4 +46,5 @@ typedef enum {
|
|||
} rcsplit_ctrl_argument_e;
|
||||
|
||||
bool rcSplitInit(void);
|
||||
void rcSplitProcess(timeUs_t currentTimeUs);
|
||||
bool rcSplitIsEnabled(void);
|
||||
void rcSplitUpdate(timeUs_t currentTimeUs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue