【类 型】:factor

【原  因】:1.指点模式 的mask参数 移位bug  2.修改挂在仓 轮子直径参数 轮子实际该外1.7cm参数设置位2cm
【过  程】:
【影  响】:

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
air 2025-06-06 15:00:24 +08:00
parent 30a6841a5b
commit aa22993490
3 changed files with 9 additions and 8 deletions

View File

@ -796,12 +796,12 @@ void FoodCube::sendSetPositionTargetGlobalInt(double lat_deg, double lon_deg, do
// 设置 type_mask仅启用位置控制字段其它字段被忽略
sp.type_mask =
(1 << 1) | // 忽略 vx
(1 << 2) | // 忽略 vy
(1 << 3) | // 忽略 vz
(1 << 4) | // 忽略 afx
(1 << 5) | // 忽略 afy
(1 << 6) | // 忽略 afz
(1 << 3) | // 忽略 vx
(1 << 4) | // 忽略 vy
(1 << 5) | // 忽略 vz
(1 << 6) | // 忽略 afx
(1 << 7) | // 忽略 afy
(1 << 8) | // 忽略 afz
(1 << 10) | // 忽略 yaw
(1 << 11); // 忽略 yaw_rate

View File

@ -194,7 +194,7 @@ void mqtt_receiveCallback(char *topic, byte *payload, unsigned int length)
}
else
{
fc.sendSetPositionTargetGlobalInt(lat, lon, alt); // 发送纬度和高度
fc.sendSetPositionTargetGlobalInt(lat, lon, alt); // 发送度和高度
}
}
else if (key == "autoMode") // 自动auto模式

View File

@ -6,7 +6,8 @@
#define ROPE_MAXLENGTH 700 // 最多能放700cm---实际绳子应该比这个长750之类的
// #define WHEEL_DIAMETER 3.8 // 轮子直径cm
#define WHEEL_DIAMETER 2.3 // 轮子直径cm 小轮子直径
// #define WHEEL_DIAMETER 2.3 // 轮子直径cm 小轮子直径实际2cm
#define WHEEL_DIAMETER 2 // 轮子直径cm 小轮子直径(实际1.7cm)
#define WHEEL_PERIMETER (WHEEL_DIAMETER * 3.1416) // 轮子周长
#define ROPE_MAXCOUNT (ROPE_MAXLENGTH / WHEEL_PERIMETER) // 最大圈数