putting strings to xbee

Dependencies:   BMP085 SDFileSystem mbed JPEGCamera

Fork of SaibiCansat2014 by Jun Saiki

Files at this revision

API Documentation at this revision

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