Эх сурвалжийг харах

更新 CAN 温度超温报警字段说明

LiuYang 6 өдөр өмнө
parent
commit
3abb2d1c6b
2 өөрчлөгдсөн 13 нэмэгдсэн , 13 устгасан
  1. 1 1
      msg_definitions/VKFly.xml
  2. 12 12
      readme.md

+ 1 - 1
msg_definitions/VKFly.xml

@@ -1386,7 +1386,7 @@
       <description>K-type thermocouple temperature collected from a CAN bus module, 8 channels.</description>
       <field type="uint32_t" name="time_boot_ms" units="ms">Timestamp in ms from system boot.</field>
       <field type="int16_t[8]" name="temperature" units="cdegC" invalid="INT16_MAX">Temperature of each channel, 0.1 degC. INT16_MAX means sensor not connected or line fault.</field>
-      <field type="uint8_t" name="over_temp_mask">Bitmap: bit N set means channel N temperature is higher than its high threshold (parameter CAN_TEMP_HI1..CAN_TEMP_HI8, 0 disables the alarm of that channel).</field>
+      <field type="uint8_t" name="over_temp_mask">Bitmap: bit N set means channel N temperature is higher than its high threshold (parameter CAN_TEMP_HI1..CAN_TEMP_HI8, unit 1 degC; equal to the threshold does not raise the alarm).</field>
       <field type="uint8_t" name="online">1: sensor module online, 0: communication timeout.</field>
     </message>
 

+ 12 - 12
readme.md

@@ -2108,10 +2108,10 @@ K 型热电偶温度采集模块温度消息, 消息 ID 为 **53033**, 默认以
 | ---- | ---- | ---- |
 | time_boot_ms | uint32_t | 最近一次收到温度帧的时间戳, ms, 自系统启动开始计时 |
 | temperature | int16_t[8] | 8 个通道温度, 单位 0.1°C; `INT16_MAX` 表示传感器未接入或线路故障 |
-| over_temp_mask | uint8_t | 超温报警位图, bit N 为 1 表示第 N+1 通道温度达到或超过其高温阈值 `CAN_TEMP_HI(N+1)` |
+| over_temp_mask | uint8_t | 超温报警位图, bit N 为 1 表示第 N+1 通道温度严格高于其高温阈值 `CAN_TEMP_HI(N+1)`(等于阈值不报警) |
 | online | uint8_t | 1: 模块在线; 0: 通讯超时(超时时间为 5s) |
 
-超温报警阈值由参数 `CAN_TEMP_HI1` ~ `CAN_TEMP_HI8` 设置(参考 9.3 节), 单位 °C, 0 表示该通道不启用超温报警; 温度无效(`INT16_MAX`)的通道对应 bit 恒为 0.
+超温报警阈值由参数 `CAN_TEMP_HI1` ~ `CAN_TEMP_HI8` 设置(参考 9.3 节), 类型 INT16, 单位 1°C, 每个通道独立设置且始终生效; 温度**严格高于**阈值时对应 bit 置 1(等于阈值不报警), 温度无效(`INT16_MAX`)的通道对应 bit 恒为 0. 阈值为 `INT16_MAX`(0x7FFF, 默认值)时不可达, 该通道默认不产生报警.
 
 模块通讯超时后飞控停止下发本消息, 地面站不应将上一条消息视为当前温度.
 
@@ -2530,13 +2530,13 @@ COM5_PROT_TYPE 的选项如下
 
 用于 `VK_CAN_TEMP` 消息的超温报警阈值, 旋翼/垂起通用. 独立于通道温度的有效性, 温度无效(`INT16_MAX`)的通道不产生报警.
 
-| 参数名        | 参数                     | 类型  | 说明                                                              |
-| ------------- | ------------------------ | ----- | ----------------------------------------------------------------- |
-| CAN_TEMP_HI1  | 通道1超温报警阈值        | FLOAT | 默认0, 范围0~1500, 单位°C; 0-不启用报警, 温度达到或超过阈值时报警 |
-| CAN_TEMP_HI2  | 通道2超温报警阈值        | FLOAT | 同上                                                              |
-| CAN_TEMP_HI3  | 通道3超温报警阈值        | FLOAT | 同上                                                              |
-| CAN_TEMP_HI4  | 通道4超温报警阈值        | FLOAT | 同上                                                              |
-| CAN_TEMP_HI5  | 通道5超温报警阈值        | FLOAT | 同上                                                              |
-| CAN_TEMP_HI6  | 通道6超温报警阈值        | FLOAT | 同上                                                              |
-| CAN_TEMP_HI7  | 通道7超温报警阈值        | FLOAT | 同上                                                              |
-| CAN_TEMP_HI8  | 通道8超温报警阈值        | FLOAT | 同上                                                              |
+| 参数名        | 参数                     | 类型  | 说明                                                                        |
+| ------------- | ------------------------ | ----- | --------------------------------------------------------------------------- |
+| CAN_TEMP_HI1  | 通道1超温报警阈值        | INT16 | 默认32767(0x7FFF), 范围0~32767, 单位1°C; 温度严格高于阈值时报警             |
+| CAN_TEMP_HI2  | 通道2超温报警阈值        | INT16 | 同上                                                                        |
+| CAN_TEMP_HI3  | 通道3超温报警阈值        | INT16 | 同上                                                                        |
+| CAN_TEMP_HI4  | 通道4超温报警阈值        | INT16 | 同上                                                                        |
+| CAN_TEMP_HI5  | 通道5超温报警阈值        | INT16 | 同上                                                                        |
+| CAN_TEMP_HI6  | 通道6超温报警阈值        | INT16 | 同上                                                                        |
+| CAN_TEMP_HI7  | 通道7超温报警阈值        | INT16 | 同上                                                                        |
+| CAN_TEMP_HI8  | 通道8超温报警阈值        | INT16 | 同上                                                                        |