【类 型】:fix

【原  因】:在切自动模式之前 等待3秒 防止飞机起飞窜
【过  程】:
【影  响】:

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
air 2025-05-14 12:30:07 +08:00
parent a571f30aa7
commit d21b8d3b1f

View File

@ -126,6 +126,7 @@ void mqtt_receiveCallback(char *topic, byte *payload, unsigned int length)
// 切模式
set_mode(AUTO); // 设置飞控为自动模式
// 油门
delay(3000);
uint16_t chan[] = {1500, 1500, 1500, 1500};
fc.mav_channels_override(chan); // 控制油门
}
@ -178,6 +179,7 @@ void mqtt_receiveCallback(char *topic, byte *payload, unsigned int length)
// 切模式
set_mode(AUTO); // 设置飞控为自动模式
// 油门
delay(3000);
uint16_t chan[] = {1500, 1500, 1500, 1500};
fc.mav_channels_override(chan); // 控制油门
}