change: 时间量上报单位 10ms→50ms, report_counter 入 50ms tick
- report_counter++ 从 5ms ISR 外层移入 if(TM1cnt>=10) 50ms 块 - 3处 misc_value 去掉 /2, 直接差值即可 - REPORT_IDLE_TICKS 120→12, REPORT_EVENT_TICKS 30→3 - 更新 TaskLoop.h/main.c/devlog 注释
This commit is contained in:
@@ -425,9 +425,9 @@ void uart_report_packet_loop_acs(uint8_t flag)
|
||||
|
||||
/*--- 2. 确定上报间隔 ---*/
|
||||
if (_flag_event) {
|
||||
_interval = REPORT_EVENT_TICKS; // 150ms
|
||||
_interval = REPORT_EVENT_TICKS; // 3×50ms = 150ms
|
||||
} else {
|
||||
_interval = REPORT_IDLE_TICKS; // 600ms
|
||||
_interval = REPORT_IDLE_TICKS; // 12×50ms = 600ms
|
||||
}
|
||||
if (g_loop_states.report_counter < _interval) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user