Skip to content

Add TurnSignalLight function block#1

Open
thiagoralves wants to merge 1 commit into
developmentfrom
feature/add-turn-signal
Open

Add TurnSignalLight function block#1
thiagoralves wants to merge 1 commit into
developmentfrom
feature/add-turn-signal

Conversation

@thiagoralves
Copy link
Copy Markdown
Contributor

Summary

  • New TurnSignalLight FB that EXTENDS TrafficLight with a dedicated turn signal arrow
  • Turn arrow activates on RED-to-GREEN transition with configurable duration
  • Methods: SetLeftTurn, SetRightTurn, IsTurnActive

STruC++ Features Used

  • EXTENDS (inheritance)
  • State transition detection
  • TON timers

Test plan

  • Arrow starts off by default
  • Direction methods set correct values
  • Arrow activates on RED→GREEN transition
  • Arrow deactivates after configured duration
  • Arrow off when not in GREEN phase

@thiagoralves thiagoralves force-pushed the feature/add-turn-signal branch from 96e6d16 to 72efd58 Compare March 3, 2026 14:37
@thiagoralves thiagoralves force-pushed the feature/add-turn-signal branch 2 times, most recently from 4272f44 to 9063723 Compare March 3, 2026 14:46
- EXTENDS TrafficLight with turn signal arrow control
- Activates turn arrow on RED-to-GREEN transition
- Configurable turn duration with TON timer
- SetLeftTurn, SetRightTurn, IsTurnActive methods
- Auto-deactivates when leaving GREEN phase
- Tests for direction setting, activation, and timeout
@thiagoralves thiagoralves force-pushed the feature/add-turn-signal branch from 9063723 to 69ad008 Compare March 3, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant