Hi,
I’m building a platform which is intended to send telemetry data from a radio-controlled plane to a ground station, which works pretty well already.
However now I have the problem that I do not want to hardcode the specific hardware. It would be great to just have a config file that specifies “Sensor X is connected to pins ABCDE” and then have a build process which chooses the right implementation.
The current way is not very satisfying: I have a branch for each different kind of hardware-unit.
Here you can find the current code: GitHub - peteole/telemtryFirmware
What do you think is the best way to solve these problems?