# Action aliases
ACTION_1: Reset the flashing timer.
ACTION_2: Reset the flashing counter.
ACTION_3: Add 1 to the flashing counter.
ACTION_4: Assign off to the left indication lights, assign off to the right indication lights.
ACTION_5: Assign on to the left indication lights, assign off to the right indication lights.
ACTION_6: Assign off to the left indication lights, assign on to the right indication lights.
ACTION_7: Assign on to the left indication lights, assign on to the right indication lights.

#REQ-001  Flashing requires sufficient voltage
When the voltage becomes lower than or equal to 80, the lights controller component shall: ACTION_4, ACTION_2, ACTION_1.
When the voltage is greater than 80,
... and the flashing mode is left flashing, and the flashing mode was not left flashing or the voltage was lower than or equal to 80, the lights controller component shall: ACTION_5, ACTION_2, ACTION_1.
... and the flashing mode is right flashing, and the flashing mode was not right flashing or the voltage was lower than or equal to 80, the lights controller component shall: ACTION_6, ACTION_2, ACTION_1.
... and the flashing mode is both flashing, and the flashing mode was not both flashing or the voltage was lower than or equal to 80, the lights controller component shall: ACTION_7, ACTION_2, ACTION_1.
... and the flashing mode is no flashing, the lights controller component shall: ACTION_4, ACTION_2, ACTION_1.

#REQ-002  Flashing with 340ms/320ms on-off periods
When the voltage is greater than 80, and the flashing timer is greater than or equal to 340, and the left indication lights are on or the right indication lights are on, the lights controller component shall: ACTION_4, ACTION_1, ACTION_3.
When the voltage is greater than 80, and the flashing timer is greater than or equal to 220, and the left indication lights are off, and the right indication lights are off,
... and the flashing mode is left flashing or the flashing mode is left tip flashing, the lights controller component shall: ACTION_5, ACTION_1.
... and the flashing mode is right flashing or the flashing mode is right tip flashing, the lights controller component shall: ACTION_6, ACTION_1.
... and the flashing mode is both flashing, the lights controller component shall: ACTION_7, ACTION_1.

#REQ-003  Switch on turn indication left
When the turn indicator lever changes to the left position, and the emergency flashing is off, the flashing mode component shall: assign left flashing to the flashing mode, ACTION_2, ACTION_1.

#REQ-004  Switch on turn indication right
When the turn indicator lever changes to the right position, and the emergency flashing is off, the flashing mode component shall: assign right flashing to the flashing mode, ACTION_2, ACTION_1.

#REQ-005  Emergency flashing on overrides left/right flashing
When the emergency flashing becomes on, the flashing mode component shall: assign both flashing to the flashing mode, ACTION_2, ACTION_1.

#REQ-006  Left-/right flashing overrides emergency flashing
When the emergency flashing is on, and the emergency flashing was on,
... and turn indicator lever changes to the left position, the flashing mode component shall: assign left flashing to the flashing mode, ACTION_2, ACTION_1.
... and turn indicator lever changes to the right position, the flashing mode component shall: assign right flashing to the flashing mode, ACTION_2, ACTION_1.

#REQ-007  Resume emergency flashing
When the emergency flashing is on, and the emergency flashing was on, and the turn indicator lever changes to the idle position, and the flashing mode is not both flashing, the flashing mode component shall: assign both flashing to the flashing mode, ACTION_2, ACTION_1.

#REQ-008  Resume turn indication flashing
When the emergency flashing becomes off,
... and the turn indicator lever is on the left position, and the turn indicator lever was on the left position, and the flashing mode is not left flashing, the flashing mode component shall: assign left flashing to the flashing mode, ACTION_2, ACTION_1.
... and the turn indicator lever is on the right position, and the turn indicator lever was on the right position, and the flashing mode is not right flashing, the flashing mode component shall: assign right flashing to the flashing mode, ACTION_2, ACTION_1.

#REQ-009  Tip flashing
When the emergency flashing is off, and the emergency flashing was off, and the flashing counter is lower than 3,
... and the turn indicator lever changes from the left position to the idle position, the flashing mode component shall assign left tip flashing to the flashing mode.
... and the turn indicator lever changes from the right position to the idle position, the flashing mode component shall assign right tip flashing to the flashing mode.
When the flashing counter is greater than or equal to 3, and the flashing mode is left tip flashing or the flashing mode is right tip flashing, the flashing mode component shall: assign no flashing to the flashing mode, ACTION_2, ACTION_1.

#-
When the turn indicator lever is on the idle position, and the emergency flashing is off, and the flashing counter is greater than or equal to 3 or the turn indicator lever was on the idle position, and the flashing mode is not left tip flashing, and the flashing mode is not right tip flashing, the flashing mode component shall: assign no flashing to the flashing mode, ACTION_2, ACTION_1.
