feat(control): 添加选手 FPS 键鼠操作与 C3 用户 UART 输出
构建客户端 / 检查(类型 + 单元测试) (push) Canceled after 0s
构建客户端 / Linux x64(deb + AppImage) (push) Canceled after 0s
构建客户端 / Windows x64(NSIS 安装包) (push) Canceled after 0s
构建客户端 / macOS 通用(.app + .dmg) (push) Canceled after 0s

This commit is contained in:
sloray committed 2026-10-31 18:34:30 +08:00
1 parent aea1cf60ae
commit 38410bacd4
43 files changed
+2389 -77

No files matched your search

+5
View File
@@ -56,6 +56,8 @@ mod armor_damage;
pub use armor_damage::ArmorDamageControl;
mod armor_reset;
pub use armor_reset::ArmorReset;
mod operator_control;
pub use operator_control::OperatorControl;
// ---------------------------------------------------------------------------
// 端口
@@ -132,6 +134,8 @@ pub enum MsgType {
ArmorReset = 9,
/// 裁判广播的锁定胜负及结束计时,自包含快照(5601)。
MatchResult = 10,
/// 选手端定向发送给已绑定装甲板的四轴速度与发射状态。
OperatorControl = 11,
}
impl MsgType {
@@ -148,6 +152,7 @@ impl MsgType {
8 => MsgType::ArmorDamageControl,
9 => MsgType::ArmorReset,
10 => MsgType::MatchResult,
11 => MsgType::OperatorControl,
_ => return None,
})
}