Back to the traffic module. Got the laptop on wifi to talk to the Arduino on a usb serial link with the Raspberry Pi in the middle. Both reads, waiting for data from the laptop and Arduino, are set up as a never ending thread.
Discovered that the JMRI package sends a <s>, status request, every 30 seconds. I think that is if nothing else is going back and forth. - We will see.
The next two software issues I see are:
How do I get the interrupt driven changes in sensor status out to the laptop without falling back to a polling situation?
To keep the servos controlling the semaphores from snapping from one aspect to another, the software needs to know where the servo is and where its headed so it can move in small steps. After the first move we can know where the semaphore is. BUT what about the first move when TrainThing is first turned on? There is no feedback from the servos.
Remaining back ordered semaphores are being shipped.
Figured out how to use the "todo" list in the PyCharm IDE. This should be a long list. Similar to the sphinx :TODO:: but in the source code. We will see how useful.
processing commands from the Laptop works ~ currently sends back just a "failed" response. Working on data/file structure for sensors and signals.
Not sure but I think the Arduino died. what a way to end the week.