I'm trying out this PR method to discuss the changes I'm making as I go.
I implemented the new packet type, and added a pingFDRS() function to the sensor sketch. This should eventually allow a sensor to choose the nearest gateway to itself. This will also be the framework for controllers to register with a gateway, and then receive incoming commands from the front-end.
I haven't tested much, but pings seem to be coming in at 2-4 milliseconds. Decent! I wonder if it is worth switching to microseconds for more precision. Using RSSI may be good too.
I'm trying out this PR method to discuss the changes I'm making as I go. I implemented the new packet type, and added a pingFDRS() function to the sensor sketch. This should eventually allow a sensor to choose the nearest gateway to itself. This will also be the framework for controllers to register with a gateway, and then receive incoming commands from the front-end.
I haven't tested much, but pings seem to be coming in at 2-4 milliseconds. Decent! I wonder if it is worth switching to microseconds for more precision. Using RSSI may be good too.