改用兩段判定取代中位數平滑: 精準實作穩定起步規則
依使用者定義: 穩定起步 = 一段移動連續 >=DEPART_SECONDS(8)秒、且其中沒有 >=STOP_SECONDS(4)秒的 GPS=0。作法: - smooth_speeds 改為只做『讀不到當0 + 物理過濾』,不再做中位數(避免視窗糊掉邊界) - find_keep_intervals 兩段: Pass A 短停(<4s)併入移動; Pass B 短移動(<8s)併入停止 - 移除 depart_min_speed(速度門檻)與中位數,改用零模式判定,更乾淨且邊界精準 - MIN_CONFIDENCE 0.7->0.5(門檻太高會濾掉真實 creep 讀數如 12@0.55) 實測 02: #11(原#9)精準剪到 19:15(符合使用者), #3 保留真起步, #4 排隊龜速全剪。 本次重構由 Claude Opus 4.8 (1M context) 協助處理。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+1
-3
@@ -9,11 +9,9 @@
|
||||
"progress_every": 60,
|
||||
"stop_seconds": 4.0,
|
||||
"speed_threshold": 0,
|
||||
"min_confidence": 0.7,
|
||||
"min_confidence": 0.5,
|
||||
"max_accel_kmh": 25,
|
||||
"smooth_window": 7,
|
||||
"depart_seconds": 8.0,
|
||||
"depart_min_speed": 15,
|
||||
"cut_before_stop": 2.0,
|
||||
"keep_after_stop": 2.0,
|
||||
"min_keep": 0.8,
|
||||
|
||||
Reference in New Issue
Block a user