From ce84a595ad7be146dc3617b405d61c5d65ee62a1 Mon Sep 17 00:00:00 2001 From: lcago <2080452042@qq.com> Date: Tue, 26 Nov 2024 18:57:44 +0800 Subject: [PATCH] added XCKJ ESC control messages --- com/xckj/esc/20110.CmdControl.uavcan | 13 +++++++++++++ com/xckj/esc/20111.OperateId.uavcan | 11 +++++++++++ com/xckj/esc/20130.AutoUpMsg1.uavcan | 7 +++++++ com/xckj/esc/20131.AutoUpMsg2.uavcan | 11 +++++++++++ com/xckj/esc/20150.ThrotGroup1.uavcan | 3 +++ com/xckj/esc/20151.ThrotGroup2.uavcan | 3 +++ com/xckj/esc/20152.ThrotGroup3.uavcan | 3 +++ com/xckj/esc/20153.ThrotGroup4.uavcan | 3 +++ com/xckj/esc/20154.ThrotGroup5.uavcan | 3 +++ com/xckj/esc/20155.ThrotGroup6.uavcan | 3 +++ com/xckj/esc/20156.ThrotGroup7.uavcan | 3 +++ com/xckj/esc/20157.ThrotGroup8.uavcan | 3 +++ com/xckj/esc/222.SetBaud.uavcan | 7 +++++++ 13 files changed, 73 insertions(+) create mode 100644 com/xckj/esc/20110.CmdControl.uavcan create mode 100644 com/xckj/esc/20111.OperateId.uavcan create mode 100644 com/xckj/esc/20130.AutoUpMsg1.uavcan create mode 100644 com/xckj/esc/20131.AutoUpMsg2.uavcan create mode 100644 com/xckj/esc/20150.ThrotGroup1.uavcan create mode 100644 com/xckj/esc/20151.ThrotGroup2.uavcan create mode 100644 com/xckj/esc/20152.ThrotGroup3.uavcan create mode 100644 com/xckj/esc/20153.ThrotGroup4.uavcan create mode 100644 com/xckj/esc/20154.ThrotGroup5.uavcan create mode 100644 com/xckj/esc/20155.ThrotGroup6.uavcan create mode 100644 com/xckj/esc/20156.ThrotGroup7.uavcan create mode 100644 com/xckj/esc/20157.ThrotGroup8.uavcan create mode 100644 com/xckj/esc/222.SetBaud.uavcan diff --git a/com/xckj/esc/20110.CmdControl.uavcan b/com/xckj/esc/20110.CmdControl.uavcan new file mode 100644 index 0000000..8cf6b54 --- /dev/null +++ b/com/xckj/esc/20110.CmdControl.uavcan @@ -0,0 +1,13 @@ +OVERRIDE_SIGNATURE 0x4fdf12a8708a2030 + +uint8 NODECMD_DIS_ALL_UP = 0 +uint8 NODECMD_DIS_UP = 1 +uint8 NODECMD_TRIG_HB = 10 +uint8 NODECMD_EN_ALLUP = 100 +uint8 NODECMD_RST = 0xFE +uint8 NodeCmd + +uint8 CmdNodeId + +uint8 reserved + diff --git a/com/xckj/esc/20111.OperateId.uavcan b/com/xckj/esc/20111.OperateId.uavcan new file mode 100644 index 0000000..59bd20c --- /dev/null +++ b/com/xckj/esc/20111.OperateId.uavcan @@ -0,0 +1,11 @@ +OVERRIDE_SIGNATURE 0x4df8b5792b8e676a + +uint8 IDCMD_SET_NEW = 0 +uint8 IDCMD_RST = 1 +uint8 IDCMD_GET = 2 +uint8 IDCMD_UP = 3 +uint8 IdCmd + +uint8 NodeId + +uint8 ThrotId diff --git a/com/xckj/esc/20130.AutoUpMsg1.uavcan b/com/xckj/esc/20130.AutoUpMsg1.uavcan new file mode 100644 index 0000000..050554c --- /dev/null +++ b/com/xckj/esc/20130.AutoUpMsg1.uavcan @@ -0,0 +1,7 @@ +OVERRIDE_SIGNATURE 0xb95f98a2bb955035 + +uint16 rpm + +uint16 current + +uint16 runstatus diff --git a/com/xckj/esc/20131.AutoUpMsg2.uavcan b/com/xckj/esc/20131.AutoUpMsg2.uavcan new file mode 100644 index 0000000..074cf89 --- /dev/null +++ b/com/xckj/esc/20131.AutoUpMsg2.uavcan @@ -0,0 +1,11 @@ +OVERRIDE_SIGNATURE 0x2c8e7c3aaca9e11e + +uint16 PWM + +uint16 voltage + +uint8 MOS_T + +uint8 CAP_T + +uint8 Motor_T diff --git a/com/xckj/esc/20150.ThrotGroup1.uavcan b/com/xckj/esc/20150.ThrotGroup1.uavcan new file mode 100644 index 0000000..cc8a800 --- /dev/null +++ b/com/xckj/esc/20150.ThrotGroup1.uavcan @@ -0,0 +1,3 @@ +OVERRIDE_SIGNATURE 0x8dfd4ad6e74b6207 + +uint56 thort1_4 \ No newline at end of file diff --git a/com/xckj/esc/20151.ThrotGroup2.uavcan b/com/xckj/esc/20151.ThrotGroup2.uavcan new file mode 100644 index 0000000..74be650 --- /dev/null +++ b/com/xckj/esc/20151.ThrotGroup2.uavcan @@ -0,0 +1,3 @@ +OVERRIDE_SIGNATURE 0xa28b683d1286d1fc + +uint56 thort5_8 \ No newline at end of file diff --git a/com/xckj/esc/20152.ThrotGroup3.uavcan b/com/xckj/esc/20152.ThrotGroup3.uavcan new file mode 100644 index 0000000..531cfc0 --- /dev/null +++ b/com/xckj/esc/20152.ThrotGroup3.uavcan @@ -0,0 +1,3 @@ +OVERRIDE_SIGNATURE 0x4923ec1a9793b7e + +uint56 thort9_12 \ No newline at end of file diff --git a/com/xckj/esc/20153.ThrotGroup4.uavcan b/com/xckj/esc/20153.ThrotGroup4.uavcan new file mode 100644 index 0000000..abbda09 --- /dev/null +++ b/com/xckj/esc/20153.ThrotGroup4.uavcan @@ -0,0 +1,3 @@ +OVERRIDE_SIGNATURE 0x6e857530110daa37 + +uint56 thort13_16 \ No newline at end of file diff --git a/com/xckj/esc/20154.ThrotGroup5.uavcan b/com/xckj/esc/20154.ThrotGroup5.uavcan new file mode 100644 index 0000000..afea42c --- /dev/null +++ b/com/xckj/esc/20154.ThrotGroup5.uavcan @@ -0,0 +1,3 @@ +OVERRIDE_SIGNATURE 0xe37b79709d9e33d4 + +uint56 thort17_20 \ No newline at end of file diff --git a/com/xckj/esc/20155.ThrotGroup6.uavcan b/com/xckj/esc/20155.ThrotGroup6.uavcan new file mode 100644 index 0000000..f320ecb --- /dev/null +++ b/com/xckj/esc/20155.ThrotGroup6.uavcan @@ -0,0 +1,3 @@ +OVERRIDE_SIGNATURE 0x4ddb476290241cc9 + +uint56 thort21_24 \ No newline at end of file diff --git a/com/xckj/esc/20156.ThrotGroup7.uavcan b/com/xckj/esc/20156.ThrotGroup7.uavcan new file mode 100644 index 0000000..6e107f1 --- /dev/null +++ b/com/xckj/esc/20156.ThrotGroup7.uavcan @@ -0,0 +1,3 @@ +OVERRIDE_SIGNATURE 0x645ddb290e9f663a + +uint56 thort25_28 \ No newline at end of file diff --git a/com/xckj/esc/20157.ThrotGroup8.uavcan b/com/xckj/esc/20157.ThrotGroup8.uavcan new file mode 100644 index 0000000..9b7330d --- /dev/null +++ b/com/xckj/esc/20157.ThrotGroup8.uavcan @@ -0,0 +1,3 @@ +OVERRIDE_SIGNATURE 0x942da793e2a13690 + +uint56 thort29_32 diff --git a/com/xckj/esc/222.SetBaud.uavcan b/com/xckj/esc/222.SetBaud.uavcan new file mode 100644 index 0000000..e9109d6 --- /dev/null +++ b/com/xckj/esc/222.SetBaud.uavcan @@ -0,0 +1,7 @@ +OVERRIDE_SIGNATURE 0x278afc50d7f6f50d + +uint8 baud + +--- + +uint8 ok