Thursday, May 3, 2018

S2 | Week 15 - GUI Bug and Discovery Channel

This week (5/2/18), we found out that Discovery Channel will be coming to film the Spartan Superway project next week.

While testing, we also found a bug with our code. We observed the podcar going to the designated station when we ordered Station 12 from the GUI. However, once it stopped there, the LED would light blue again and the car would travel around the track until it reached Station 12 again.

We found out this was because the Serial port remained open after a request would be made. So basically the podcar would travel to that destination as many times as you'd press "Request Pod" on the GUI.

We simply closed the Serial port after a destination was recorded in Arduino, and opened it back up after the podcar reached its destination. This fixed our problem of Requests lingering in the Serial buffer.

No comments:

Post a Comment