jmlzone / PiPtr

Repeater controller
7 stars 4 forks source link

Sub class radio ports and fsms #19

Open jmlzone opened 7 years ago

jmlzone commented 7 years ago

Currently main instantiates 2 radio ports of the base class which instantiate the fsm. There should be a default empty sub class for these things and the code should look for the presence of user code for the sub classes and load that.

Architectural intent: The provided port code and ism code should handle most cases with the provided code with the customizations allowable through just setting the configuration variables. In the case where a user (repeater owner) needs something we did not plan for and would require a code modification, they could use the sub class mechanism to do it. I suggest that the user code would go in the the directory similar to the machine specific xml configuration. Maybe there would be naming conventions for the port1 and port2 code so those could also be uniquely sub classed.