feat(control): 添加选手 FPS 键鼠操作与 C3 用户 UART 输出
This commit is contained in:
43 files changed
+2389
-77
No files matched your search
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user