Closed charlespax closed 8 years ago
Additional information:
If we start with two digit temperatures like this... and heat things up, we get wonky graphics.
But if we heat the thermocouple before turning on the T400, we can start with only three digit numbers. Then we get a nice graph like this. We can keep our nice graph even if we let things cool down.
Also notice that in the original firmware the two digits are right justified while on the newer firmware they are left justified. They should be right justified.
Also a weird gap with negative numbers. It seems like the scaling does not happen based on the location of the y-axis, but more to the left. Perhaps the code is looking at the last element in the data array rather than what is displayed. Not sure which is better or if it matters.
In that image you may have also noticed the double negative.
The logic for the number of character spaces needs to be updated for the new 1/10th temperature values. I have some updated code and will push a fixed branch
Fixed in commit 78bd24936d339fcaf88add8d64a5a1af9bf23ccc
When the temperature has two digits the graph y-axis looks like this.
In commit 43543b7205458c8e6638093725c884eada44a73c the y-axis will shift to the right when the number of digits increases from two to three like this.
In the most recent commit 9fe18bb790af0158d80564159aebaab4549c275b the y-axis does not shift to the right. It looks like this.
This is probably happening around line 155 in functions.cpp