itsmekhalidb / PlanesOverTrains

Repo for Planes Over Trains (group 5) of the Fall 2023 section of Pitt's ECE 1140 class
1 stars 1 forks source link

Train Controller does not set power to 0 when emergency break or failures are set #24

Closed ldt9 closed 11 months ago

tallabon8 commented 11 months ago

at the end of the update_power function I added a conditional statement to check the emergency brake status is set to True, or if a failure is set. If any of them are true, the power is set to 0.