Hi I read a value from an analog pin. The value should be latter manipulated by some function (lets say add Ofset, do Multiplication, do it only if Pin1 is high, and so on). If the Program-Flow is fix - no problem.
How can I make this configurable in a File on a SD-Card? That means: - User one: Read AnalogPin1, add 50 if DigitalPin1 - User two: Read AnalogPin1, add 575
And, yes, the User should define the flow (I have functions to an object they do the job) in a file.
As the programm needs to be compiled, I assume that it isn't possible. But is a way to do it better?
The Case is RC-Model - build a transmitter: The Throttle-Gimbal should control Channel1, but only if Switch 1 is on. Another user prefer to have the Throttle on Channel 3. A third User has another Gimbal as Airbrake. And if Airbrake is on, it should reduce Channel 1 with the throttle-output.
It would be great to make this changeable withou recompile the stuff.