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 ADS1115 StepperMotor SRF05 TPA81new
Revision 28:528c2fbd6a54, committed 2019-01-24
- Comitter:
- hisyamfs
- Date:
- Thu Jan 24 10:35:36 2019 +0000
- Parent:
- 27:4d79aba70fe8
- Child:
- 29:6b4df1306d21
- Child:
- 30:5efd59a0226f
- Child:
- 37:f0b535131cbf
- Commit message:
- semua
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Jan 23 14:44:45 2019 +0000
+++ b/main.cpp Thu Jan 24 10:35:36 2019 +0000
@@ -121,14 +121,14 @@
float dist_b4 = call_depan(raw_b4);
pc.printf("ir atas\n");
- pc.printf("%.2f %.2f\n", dist_a2, dist_a1);
- pc.printf("%.2f %.2f\n", dist_a3, dist_a7);
- pc.printf("%.2f %.2f\n", dist_a4, dist_a8);
- pc.printf("%.2f %.2f\n", dist_a6, dist_a5);
+ pc.printf(" %.2f %.2f\n", dist_a2, dist_a1);
+ pc.printf("%.2f %.2f\n", dist_a3, dist_a7);
+ pc.printf("%.2f %.2f\n", dist_a4, dist_a8);
+ pc.printf(" %.2f %.2f\n", dist_a6, dist_a5);
pc.printf("ir bawah\n");
- pc.printf("%.2f\n", dist_b1);
- pc.printf("%.2f %.2f\n", dist_b2, dist_b3);
- pc.printf("%.2f\n", dist_b4);
+ pc.printf(" %.2f\n", dist_b1);
+ pc.printf("%.2f %.2f\n", dist_b2, dist_b3);
+ pc.printf(" %.2f\n", dist_b4);
}
}