engaging-computing / Android

Android Projects relating to isenseproject.org
4 stars 9 forks source link

iS Motion: temperature display cuts off #62

Closed fgmart-zz closed 9 years ago

fgmart-zz commented 9 years ago

See attached... screenshot_2014-12-19-10-44-32

bdonald25 commented 9 years ago

Sweet, you have a temperature sensor. You're the first person that I have found who has one. Does your phone have a humidity sensor too?

fgmart-zz commented 9 years ago

yes, and light sensor.

On Fri, Dec 19, 2014 at 11:13 AM, Bobby Donald notifications@github.com wrote:

Sweet, you have a temperature sensor. You're the first person that I have found who has won. Does your phone have a humidity sensor too?

— Reply to this email directly or view it on GitHub https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_isenseDev_Android_issues_62-23issuecomment-2D67658501&d=AwMCaQ&c=TqceLeU8_c9CVUat-eLTFu19-lyGiWSvB_skZXlxt8Q&r=18cCOnjUNVJkR7XAgiboog&m=UKmHUnoKHJNJoMUkanC2MjeDbyxfNRK9dW4lBKiR9bk&s=rfKLiEdgNW2eQA2cCZYY-Tyt3Yscpw_eAFkvYGTSDyA&e= .

Work Ready Life Ready World Ready

Director, Engaging Computing Group http://www.cs.uml.edu/ecg Associate Professor, Computer Science http://blog.uml.edu/cs Director of Student Success, College of Sciences http://blog.uml.edu/science University of Massachusetts Lowell, 1 University Avenue, Lowell MA 01854 p: 978/934–1964 f: 978/934–2705 email: fredm@cs.uml.edu

fgmart-zz commented 9 years ago

so, it's better without the K, but still not fixed:

Would you please round the readings to 1 decimal place; e.g., 43.9 F? BTW that's wrong, I'm inside and it's not that cold.

But rounding will fix the display wrap and also is better, because there's no way the reading is actually accurate to 10 decimal places.

Wait a minute, 44 deg F != 24 deg C. It is more like 24 deg C in here -- that is actually correct.

Please check your formulas, round to one decimal, and use that rounded value as the thing that gets uploaded.

screenshot_2014-12-19-15-53-14

fgmart-zz commented 9 years ago

Also, see if you can display it like this:

72.1 ºF 44.1 ºC

Using the actual degree symbol.

bdonald25 commented 9 years ago

tempF.setText("F: "+ (event.values[0] * 1.8) + 32); //This is what I had (event.values[0] is Celcius) tempF.setText("F: "+ ((event.values[0] * 1.8) + 32)); //parentheses matter :)