Hi all,
Today I made a class which does this:
typedef const double ScaleMap [][2];
ScaleMap myMap = {
{0.0, 120}, //left column is input values. Right column is output values.
{0.34, 90},
{1.0, 45}
// indefinitely many pairs, but probably less than 20.
};
SimServo::SimServo (...