Techylah,
Can we go three steps back?
I have been reading articles about LUT's and how they work and how to implent them in code.
I also saw Robs multimap playground article but to technical for me.
Sofar I still have to understand the code you provided for my knowledge.
lookupTable[i] = (int) (0.5 - speedfinalValue + pow((255 - i)/127.0, gammaSValue) * ((speedfinalValue - speedstartValue) / 2.0));
I first have to sort out if the delay is really on the fly calculation.
So I wanted to make it linear taken from a lookuptable (instead of the current map) and test this first by the same guys.
Last week theya lso test the linear only version.
If they say the delay is gone, then I want to start to add any curve.
If your suggested end after 75 % just go up or down is up to the drivers and their feeling and a later issue.
I can take the laptop with me and load a prepared sketch with curve the same evening if the delay with a linear curve is OK and approved.
But I first have to get known to working/set up of the linear lookuptable.
lookupTable[i] = (int) (A , B);
or
lookupTable[i] = (int) (speedfinalValue , (speedfinalValue - speedstartValue));
If I simplify the code to this is that correct way of thinking?
Or did I misjudged the "," as a separator?
BTW, I know the Bezier curve. Work daily with it in Corel Draw to design the decals for my decal company Custom Racing Decal.
Paco