deptofdefense / BricksInTheAir

Hack the Plane with Legos and Arduinos!
4 stars 4 forks source link

Engine Stop #71

Closed royyblume closed 3 years ago

royyblume commented 3 years ago

If there is more than one user in the queue and the engine gets turned off during the first user's turn followed by a switch in turns, the engine will go to the correct state for the second user. However, upon returning to first user's turn (who's plane engine should be shut off), the engine will continue to run. Should be able to be fixed if there is a check when switching users: If the user is on question 5.1, engine will be turned off.

danallendds commented 3 years ago

When you guys get a chance... try running again through the various users and observe the sound. The fix turned out to be involved because I had to change the engine control .ino file for the mcu to even accept an engine off command.

royyblume commented 3 years ago

I tested some things out today. I was able to get the engine to remain stopped by passing "!goto 5.1" (the engine stop question), followed by "!goto 5.3" (when the engine should be back up).

danallendds commented 3 years ago

I think this has been fixed... marking as closed.