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: ISR_Mini-explorer mbed
Fork of roboticLab_withclass_3_July by
main.cpp@4:8132a0291c4b, 2017-07-06 (annotated)
- Committer:
- Ludwigfr
- Date:
- Thu Jul 06 12:13:14 2017 +0000
- Revision:
- 4:8132a0291c4b
- Parent:
- 3:37345c109dfc
- Child:
- 5:19f24c363418
just to be sure;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Ludwigfr | 0:9f7ee7ed13e4 | 1 | #include "MiniExplorerCoimbra.hpp" |
Ludwigfr | 0:9f7ee7ed13e4 | 2 | |
Ludwigfr | 0:9f7ee7ed13e4 | 3 | int main(){ |
Ludwigfr | 2:11cd5173aa36 | 4 | |
Ludwigfr | 2:11cd5173aa36 | 5 | //defaultXWorld, defaultYWorld, defaultThetaWorld, widthRealMap, heightRealMap |
Ludwigfr | 3:37345c109dfc | 6 | //middle arena ISR 60,40 |
Ludwigfr | 3:37345c109dfc | 7 | MiniExplorerCoimbra myRobot(110,70,-3.14,120,80);//0,0,0 : lower left, facing right |
geotsam | 1:20f48907c726 | 8 | //test lab1 |
Ludwigfr | 3:37345c109dfc | 9 | //myRobot.go_to_point(70,50);//SELECT A TARGET BETWEEN (0,0) and(widthRealMap,heightRealMap) |
Ludwigfr | 3:37345c109dfc | 10 | //myRobot.go_to_line_first_lab(1,-2,4);//I think it works but it will always go the right |
Ludwigfr | 3:37345c109dfc | 11 | //myRobot.go_to_point_with_angle_first_lab(10,70,3.14/2);//SELECT A TARGET BETWEEN (0,0) and(widthRealMap,heightRealMap) |
geotsam | 1:20f48907c726 | 12 | |
Ludwigfr | 0:9f7ee7ed13e4 | 13 | //test lab2 |
Ludwigfr | 2:11cd5173aa36 | 14 | //reminder for now the sonar is in debugged, if no problem,comment the right code for presentaiton |
Ludwigfr | 2:11cd5173aa36 | 15 | //myRobot.test_sonars_and_map(25); |
Ludwigfr | 3:37345c109dfc | 16 | //myRobot.test_procedure_lab2(10); |
geotsam | 1:20f48907c726 | 17 | |
Ludwigfr | 0:9f7ee7ed13e4 | 18 | //test lab3 |
Ludwigfr | 4:8132a0291c4b | 19 | myRobot.try_to_reach_target(10,40);//need to adjust the constants. |
Ludwigfr | 0:9f7ee7ed13e4 | 20 | return 0; |
Ludwigfr | 0:9f7ee7ed13e4 | 21 | } |
Ludwigfr | 0:9f7ee7ed13e4 | 22 |