增加了遥控器控制,待测试

This commit is contained in:
NeoZng
2022-12-07 21:56:34 +08:00
parent 3eba5b1c07
commit 2dd39f9815
6 changed files with 95 additions and 40 deletions

View File

@@ -80,9 +80,9 @@ typedef struct
{
struct
{
int16_t ch[5]; // 右|0 ,右-1 ,左-2 ,左|3 ,拨轮4
int16_t joystick[5]; // 右|0 ,右-1 ,左-2 ,左|3 ,拨轮4
uint8_t s[2]; //[0]:left [1]:right
} joy_stick;
} rc;
struct
{
int16_t x;