Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Revision 3:447b0de4295a, committed 2018-07-31
- Comitter:
- justinbuckland
- Date:
- Tue Jul 31 09:18:58 2018 +0000
- Parent:
- 2:23f848b21b09
- Commit message:
- Temperature logging for TCR and resistance calibration
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Jul 26 13:44:16 2018 +0000 +++ b/main.cpp Tue Jul 31 09:18:58 2018 +0000 @@ -52,7 +52,7 @@ int main() { - int n_samples = 50; + int n_samples = 10000; double r; double r_max = 0; double r_min = 1e10; @@ -105,7 +105,7 @@ r_sum = r_sum + r; r_sum2 = r_sum2 + (r*r); - sprintf(outString, "%5d, %5d, %5d, %5d, %f\r\n", val_array[0], val_array[1], val_array[4], val_array[5], r); + sprintf(outString, "%5d\t %5d\t %5d\t %5d\t %f\r\n", val_array[0], val_array[1], val_array[4], val_array[5], r); pc.printf("%s", outString); wait_ms(1000); @@ -116,13 +116,13 @@ r_sd = sqrt(r_mean2-(r_mean*r_mean)); r_cv = r_sd/r_mean; - pc.printf("Statistics:\r\n"); - pc.printf("n_samples : %d\r\n", n_samples); - pc.printf("r_mean : %f\r\n", r_mean); - pc.printf("r_min : %f\r\n", r_min); - pc.printf("r_max : %f\r\n", r_max); - pc.printf("r_sd : %f\r\n", r_sd); - pc.printf("r_cv : %f\r\n", r_cv); +// pc.printf("Statistics:\r\n"); +// pc.printf("n_samples : %d\r\n", n_samples); +// pc.printf("r_mean : %f\r\n", r_mean); +// pc.printf("r_min : %f\r\n", r_min); +// pc.printf("r_max : %f\r\n", r_max); +// pc.printf("r_sd : %f\r\n", r_sd); +// pc.printf("r_cv : %f\r\n", r_cv); rLED = 0;