A stopped train's row reads "Stoppe" while it waits its turn to pass #3

Closed
opened 2026-11-22 13:53:55 -05:00 by cmoriarty · 5 comments
Owner

Seen by the owner on the S3's panel, 2026-11-22, on a developer build of v0.1.4 (0.1.4-1-g50fa1b0): the third row read "Stoppe" where a train's time would be. The row did pass later and say the whole status.

What is wrong. A train held between stations has a status ("Stopped 1 stop away") too wide for its row. Since refresh-sign-looks the row passes whole once per turn under the dot, and at rest it shows as much of the status as fits, cut off mid-word. Since v0.1.4 the rest between two passes is 30 seconds (it was 8), so the cut word now stands for most of the time.

Wanted. The row at rest should not show a word cut in two. The fix is the owner's to choose from pictures of the options, for example: a whole short word that fits ("Stopped", if it fits beside the destination, or "Stop"/"Held"), the destination alone with the status in red only while passing, or the minutes as for any other train. The owner's rule that a message is said one way (whole, passing once per turn, never a short still version of the sentence) applies, so the options need the owner's look.

Where. firmware/lib/sign_core/src/screen.h (a row's status, "drawn in red after the destination"), screen.cpp, and takeTurns in firmware/lib/sign_core/src/sign_core.cpp. No scenario shows the row at rest with its status cut off; one should, with a snapshot.

Not yet checked: which stop and destination were on the row, and whether "Stoppe" is the status clipped by the row's width or by the time column.

**Seen** by the owner on the S3's panel, 2026-11-22, on a developer build of `v0.1.4` (`0.1.4-1-g50fa1b0`): the third row read "Stoppe" where a train's time would be. The row did pass later and say the whole status. **What is wrong.** A train held between stations has a status ("Stopped 1 stop away") too wide for its row. Since `refresh-sign-looks` the row passes whole once per turn under the dot, and at rest it shows as much of the status as fits, cut off mid-word. Since `v0.1.4` the rest between two passes is 30 seconds (it was 8), so the cut word now stands for most of the time. **Wanted.** The row at rest should not show a word cut in two. The fix is the owner's to choose from pictures of the options, for example: a whole short word that fits ("Stopped", if it fits beside the destination, or "Stop"/"Held"), the destination alone with the status in red only while passing, or the minutes as for any other train. The owner's rule that a message is said one way (whole, passing once per turn, never a short still version of the sentence) applies, so the options need the owner's look. **Where.** `firmware/lib/sign_core/src/screen.h` (a row's status, "drawn in red after the destination"), `screen.cpp`, and `takeTurns` in `firmware/lib/sign_core/src/sign_core.cpp`. No scenario shows the row at rest with its status cut off; one should, with a snapshot. **Not yet checked:** which stop and destination were on the row, and whether "Stoppe" is the status clipped by the row's width or by the time column.
Author
Owner

The owner's choice, 2026-11-22 (their words): "I think in the situation when a train is stopped, we should maintain the red number of minutes that was last shown, and then scroll the text at the cadence."

So, at rest, a stopped train's row shows its destination and the minutes it last showed, in red, and no part of the status. The status passes whole along the row once per turn, at the same cadence as every other message (8 seconds before the first pass, 30 between passes), under the dot.

To settle when it is built: whether the red minutes stand still at the last number for as long as the train is stopped (the agent's reading of "maintain"), and what the row shows for a train that was already stopped when the sign first saw it, with no earlier number to keep.

**The owner's choice, 2026-11-22** (their words): "I think in the situation when a train is stopped, we should maintain the red number of minutes that was last shown, and then scroll the text at the cadence." So, at rest, a stopped train's row shows its destination and the minutes it last showed, in red, and no part of the status. The status passes whole along the row once per turn, at the same cadence as every other message (8 seconds before the first pass, 30 between passes), under the dot. To settle when it is built: whether the red minutes stand still at the last number for as long as the train is stopped (the agent's reading of "maintain"), and what the row shows for a train that was already stopped when the sign first saw it, with no earlier number to keep.
Author
Owner

The owner's answer on the red number, 2026-11-22 (their words): "It depends, if the MBTA API supplies updated train predictions that change the value, then we should change it. Otherwise, for as long as the "train stopped x stops away" message is active, it should hold a red value for the last number it showed. We could consider adding an additional visual indication, passed just holding it as red, to indicate the train is stopped. I'm not sure what that would be, we'd need to mock some options."

So:

  • While the stopped status is in force, the row's minutes are red and hold the last number shown. The sign does not count them down by itself.
  • If a new MBTA prediction for that train gives a different number, the row takes the new number, still red.
  • To mock up before building: options for a further mark, beyond the red, that says the train is stopped. They go to the owner as LED pictures, lettered.

Still open: a train already stopped when the sign first sees it (the agent's suggestion: MBTA's current prediction, in red; the owner has not answered).

**The owner's answer on the red number, 2026-11-22** (their words): "It depends, if the MBTA API supplies updated train predictions that change the value, then we should change it. Otherwise, for as long as the "train stopped x stops away" message is active, it should hold a red value for the last number it showed. We could consider adding an additional visual indication, passed just holding it as red, to indicate the train is stopped. I'm not sure what that would be, we'd need to mock some options." So: - While the stopped status is in force, the row's minutes are red and hold the last number shown. The sign does not count them down by itself. - If a new MBTA prediction for that train gives a different number, the row takes the new number, still red. - **To mock up before building:** options for a further mark, beyond the red, that says the train is stopped. They go to the owner as LED pictures, lettered. Still open: a train already stopped when the sign first sees it (the agent's suggestion: MBTA's current prediction, in red; the owner has not answered).
Author
Owner

Answered by the owner, 2026-11-22: a train already stopped when the sign first sees it shows "MBTA's current prediction, in red."

Nothing about the row's behaviour is open now. Before building, the only step left is the mock-up of a further mark for "stopped", for the owner to choose from.

**Answered by the owner, 2026-11-22:** a train already stopped when the sign first sees it shows "MBTA's current prediction, in red." Nothing about the row's behaviour is open now. Before building, the only step left is the mock-up of a further mark for "stopped", for the owner to choose from.
Author
Owner

The owner's decision on a further mark, 2026-11-23 (their words), after the new scenario trains-stopped played at true speed on both panels: "I think I am ok leaving it as-is, without the further mark for a stopped train. I think the pulsing red dot serves the purpose to let the user know a message is coming. Lets abandon the mark idea for now."

So there is no further mark. At rest a stopped train's row shows its destination and its number in red, held as decided above. The status passes whole once a turn, and the red dot breathes while the train is stopped. Nothing on this ticket is left to decide.

The work is the OpenSpec change hold-stopped-train-minutes (decision 7 records this). It is not yet committed.

**The owner's decision on a further mark, 2026-11-23** (their words), after the new scenario `trains-stopped` played at true speed on both panels: "I think I am ok leaving it as-is, without the further mark for a stopped train. I think the pulsing red dot serves the purpose to let the user know a message is coming. Lets abandon the mark idea for now." So there is no further mark. At rest a stopped train's row shows its destination and its number in red, held as decided above. The status passes whole once a turn, and the red dot breathes while the train is stopped. Nothing on this ticket is left to decide. The work is the OpenSpec change `hold-stopped-train-minutes` (decision 7 records this). It is not yet committed.
Author
Owner

Summary: done, released in v0.1.5 (merged to main in db34b6f; v0.1.5 published 2026-11-23; both signs run it).

  • At rest, a stopped train's row is a train's row: the destination, and on the right its number in red. No part of the status shows, so no word is cut in two.
  • The number is held. It is the one the row last showed when the status began. When MBTA moves the train's time, it becomes the number that new time gives. A train already stopped when the sign first sees it shows its prediction's number. The sign never counts a stopped train down by its own clock.
  • The status passes whole once a turn, under the red dot, with 30 seconds between turns. The row at rest follows it in, so a pass starts and ends on the same picture.
  • Every row with a status works this way, however short. There's no further mark for "stopped": the owner decided against one (comment above).
  • Checked: unit tests for the hold and the pass, a new scenario trains-stopped, seven re-approved snapshots, the board check on both signs, and a true-speed run of trains-stopped on both panels.
  • Plan: openspec/changes/hold-stopped-train-minutes.
**Summary: done, released in v0.1.5** (merged to `main` in `db34b6f`; v0.1.5 published 2026-11-23; both signs run it). - **At rest**, a stopped train's row is a train's row: the destination, and on the right its number in red. No part of the status shows, so no word is cut in two. - **The number is held.** It is the one the row last showed when the status began. When MBTA moves the train's time, it becomes the number that new time gives. A train already stopped when the sign first sees it shows its prediction's number. The sign never counts a stopped train down by its own clock. - **The status passes whole once a turn**, under the red dot, with 30 seconds between turns. The row at rest follows it in, so a pass starts and ends on the same picture. - Every row with a status works this way, however short. There's no further mark for "stopped": the owner decided against one (comment above). - **Checked:** unit tests for the hold and the pass, a new scenario `trains-stopped`, seven re-approved snapshots, the board check on both signs, and a true-speed run of `trains-stopped` on both panels. - **Plan:** `openspec/changes/hold-stopped-train-minutes`.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
moriarty-engineering/my-stop#3
No description provided.