![](/media/cache/profiles/6f7790bb54a7c5d3dea27385488a604a.jpg.50x50_q85.jpg)
putting strings to xbee
Dependencies: BMP085 SDFileSystem mbed JPEGCamera
Fork of SaibiCansat2014 by
Revision 13:aa50109c4cae, committed 2014-07-20
- Comitter:
- TakashiSasaki
- Date:
- Sun Jul 20 13:53:17 2014 +0000
- Parent:
- 12:495d513bb022
- Commit message:
- fix bug related to humidity sensor
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 495d513bb022 -r aa50109c4cae main.cpp --- a/main.cpp Sun Jul 20 12:54:23 2014 +0000 +++ b/main.cpp Sun Jul 20 13:53:17 2014 +0000 @@ -133,7 +133,7 @@ xbee.printf(buf); //Humidity measurement P16 analog-in2 - const float SRH = ( ( ain_Humidity / 5.0 ) - 0.16 ) / 0.0062; + const float SRH = ( ( ain_Humidity * 3.3 / 5.0 ) - 0.16 ) / 0.0062; const float TRH = SRH / ( 1.0546 - 0.00216 * T); sprintf(buf, "H %f ", TRH / 10.0); // maybe wrong, dirty workaround