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
Fork of Lab_6_WaG by
Diff: main.cpp
- Revision:
- 57:aef01bd9b3be
- Parent:
- 56:048b30c9f2a1
- Child:
- 58:69f9a4607a16
--- a/main.cpp Fri Apr 06 18:25:19 2018 +0000
+++ b/main.cpp Thu Apr 12 15:09:50 2018 +0000
@@ -62,29 +62,6 @@
pc.printf("Press user button to test.\n");
- test_target_leds();
- pc.printf("LED's tested\n");
-
- test_phototransistors();
- pc.printf("Phototransistors tested\n");
-
- step_test();
- pc.printf("Step motor tested\n");
-
- pc.printf("laser test\n");
- while (my_button.read() == 0);
- pc.printf("test begin\n");
- lzr_init();
- wait(0.5);
- while (my_button.read() == 0) {
- lzr_on();
- wait(0.5);
- lzr_off();
- wait(0.5);
- }
- lzr_init();
- pc.printf("Laser tested.\n");
-
// determine if the wag is connected to station A or station B
station = station_select.read();
pc.printf("station in main: %d\n", station);
@@ -95,14 +72,6 @@
pc.printf("Part 9: calibration test done.\n");
- //stp_sensor_pos[0] = 27;
- //stp_sensor_pos[1] = 50;
- //stp_sensor_pos[2] = 72;
- //stp_sensor_pos[3] = 98;
- //stp_sensor_pos[4] = 122;
- //stp_sensor_pos[5] = 146;
- //stp_sensor_pos[6] = 173;
- //stp_sensor_pos[7] = 197;
// turn on laser
lzr_on();
