tune: trigger stable approaching announcement at 45 seconds
This commit is contained in:
@@ -2584,7 +2584,7 @@ function Main.loop()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if etaSeconds >= 0 and etaSeconds < 30 then
|
if etaSeconds >= 0 and etaSeconds <= 45 then
|
||||||
seenApproachKeys[announceKey] = true
|
seenApproachKeys[announceKey] = true
|
||||||
local pending = State.pendingApproaching[announceKey]
|
local pending = State.pendingApproaching[announceKey]
|
||||||
if not pending then
|
if not pending then
|
||||||
@@ -2716,8 +2716,8 @@ function Main.loop()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 触发逻辑:当 ETA 已经明确小于30秒(包括15秒、现在等),且之前没有播报过
|
-- 触发逻辑:当 ETA 已经明确不大于45秒,且之前没有播报过
|
||||||
if etaSeconds >= 0 and etaSeconds < 30 then
|
if etaSeconds >= 0 and etaSeconds <= 45 then
|
||||||
seenApproachKeys[announceKey] = true
|
seenApproachKeys[announceKey] = true
|
||||||
local pending = State.pendingApproaching[announceKey]
|
local pending = State.pendingApproaching[announceKey]
|
||||||
if not pending then
|
if not pending then
|
||||||
|
|||||||
Reference in New Issue
Block a user