修复了遥控器摇杆值解算错误的问题

This commit is contained in:
NeoZng
2022-12-09 14:21:31 +08:00
parent 9f09002235
commit 02b3af15c7
6 changed files with 28 additions and 34 deletions

View File

@@ -52,14 +52,13 @@
* @brief 这些枚举类型和结构体会作为CMD控制数据和各应用的反馈数据的一部分
*
*/
//机器人状态
// 机器人状态
typedef enum
{
ROBOT_STOP,
ROBOT_WORKING,
} Robot_Status_e;
// 应用状态
typedef enum
{
@@ -94,7 +93,7 @@ typedef enum
{
FRICTION_OFF, // 摩擦轮关闭
FRICTION_ON, // 摩擦轮开启
} shoot_mode_e;
} friction_mode_e;
typedef enum
{
@@ -153,7 +152,7 @@ typedef struct
{
loader_mode_e load_mode;
lid_mode_e lid_mode;
shoot_mode_e shoot_mode;
friction_mode_e friction_mode;
Bullet_Speed_e bullet_speed; // 弹速枚举
uint8_t rest_heat;
float shoot_rate; // 连续发射的射频,unit per s,发/秒