finish the beta version of dji_motor

This commit is contained in:
NeoZng
2022-10-31 20:20:16 +08:00
parent 3dd4f1066c
commit c113ca81e0
20 changed files with 618 additions and 1137 deletions

View File

@@ -51,14 +51,14 @@
#define KEY_PRESSED_OFFSET_V ((uint16_t)1 << 14)
#define KEY_PRESSED_OFFSET_B ((uint16_t)1 << 15)
/* ----------------------- Data Struct ------------------------------------- */
typedef __packed struct
typedef struct
{
__packed struct
struct
{
int16_t ch[5];
char s[2];
} rc;
__packed struct
struct
{
int16_t x;
int16_t y;
@@ -66,7 +66,7 @@ typedef __packed struct
uint8_t press_l;
uint8_t press_r;
} mouse;
__packed struct
struct
{
uint16_t v;
} key;