Skip to content

Commit

Permalink
made changes to miscellaneous
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardkim22 committed Jan 16, 2025
1 parent 2654c1f commit 54a9601
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions revolution/miscellaneous.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,14 @@ def update_pwm(pwm: PWM, previous_input: bool, input: bool) -> None:
.peripheries
.miscellaneous_left_indicator_light_pwm
),
previous_left_indicator_light_status_input,
left_indicator_light_status_input,
(
previous_left_indicator_light_status_input
or previous_hazard_lights_status_input
),
(
left_indicator_light_status_input
or hazard_lights_status_input
),
)

update_pwm(
Expand All @@ -90,8 +96,14 @@ def update_pwm(pwm: PWM, previous_input: bool, input: bool) -> None:
.peripheries
.miscellaneous_right_indicator_light_pwm
),
previous_right_indicator_light_status_input,
right_indicator_light_status_input,
(
previous_right_indicator_light_status_input
or previous_hazard_lights_status_input
),
(
right_indicator_light_status_input
or hazard_lights_status_input
),
)

update_pwm(
Expand All @@ -101,8 +113,16 @@ def update_pwm(pwm: PWM, previous_input: bool, input: bool) -> None:
.peripheries
.miscellaneous_indicator_lights_pwm
),
previous_hazard_lights_status_input,
hazard_lights_status_input,
(
previous_hazard_lights_status_input
or previous_left_indicator_light_status_input
or previous_right_indicator_light_status_input
),
(
hazard_lights_status_input
or left_indicator_light_status_input
or right_indicator_light_status_input
),
)

update_pwm(
Expand Down

0 comments on commit 54a9601

Please sign in to comment.