Originally Posted by
wowzer
couple things -
first, the logic behind the scaling of the x axis is that the y values should NOT change. all you are doing is restating the 2 bar map x values to the same value (psi) after scaling to 3 bar map. mptuner does that. the problem you are seeing, and i guess maybe my thought process is wrong, is that the phantom point value at the far right can not shift to the left like the other points since the phantom point ALWAYS has an x value of FF. so if x can't change, and y can't change, then the point doesn't move.
so, i need direction from you all - if instead of holding the last point y value constant, i adjust the y value also and keep the slope constant, even though all the other slopes have changed. and, as dcal shows, the y value can then go off the graph. my concern is what may happen in the actual code (rob????) if the calculated y value is invalid, i.e. too large. perhaps it may overflow and end up being some ridiculously low number.
i DO need to fix being able to access a point that is off the graph, so thanks for pointing that out. i ASSUMED that would not happen! the fix could be not to let any point go off the graph!?
anyhow - i'll wait for feedback before i change the program. btw, the next update of mptuner already allows you to edit that last y point value (sorry - you'll have to wait).
lastly, the 2.5cal does start up way above the graph for whatever reason, whether the table bytes are wrong or the scaling is wrong. to fix it EASILY, double click on the y value (24576) and change it to something like 36864. save the cal, reopen it, and it should now work. again, maybe rob can take a look to see what it should be.
one thing i do need to also reconsider is how to handle the comparison cals when the range values are different. currently the comparison graph is displayed as it would appear as if it was the main cal. it is not rescaled into the current main cal parameters. so, taking the example above (i.e. changing y to 36864), when you compare the 2.2 and 2.5 graphs, they will not line up well since the 2.2 uses a max y of 24576 and the 2.5 now uses 36864. so, the 2.5 graph will display "lower" than it really should. make sense? should i change this?
whew.