Individual Blog Week 4 (6/19 - 6/23)
During this week, I was able to get a lot more of the test rig finished. However, I am starting to have problems with the steering aspect of the bogie. When introducing the magnet to the hall-effect sensor, and going through the expected logic of the entire path, the interrupt activates and the code works fine, when having the right side switches be the ones that are initially pressed. When the left side switches are the ones that are initially pressed, the steering motion occurs regardless of having a magnet be introduced even though the latter is a specifically required condition to introduce steering. Despite this, one way that we have allowed the bogie to differentiate the direction to turn is by introducing a counter that begins every time the hall-effect sensor gets activated. This variable is then taken through a modulo two operation (% 2 ), which allows us to differentiate the turn to take due to the introduction of two new conditions, when the new variable is one, and when the...