![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
test morning
Dependencies: ISR_Mini-explorer mbed
Fork of roboticLab_withclass_3_July by
main.cpp@14:696187e74411, 2017-07-12 (annotated)
- Committer:
- Ludwigfr
- Date:
- Wed Jul 12 18:08:07 2017 +0000
- Revision:
- 14:696187e74411
- Parent:
- 11:b91fe0ed4fed
lol
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 | 8:072a76960e27 | 6 | //middle arena ISR 60,40 |
Ludwigfr | 10:d0109d7cbe7c | 7 | //MiniExplorerCoimbra myRobot(20,15,0,120,80);//0,0,0 : lower left, facing right |
Ludwigfr | 5:19f24c363418 | 8 | |
geotsam | 1:20f48907c726 | 9 | //test lab1 |
Ludwigfr | 8:072a76960e27 | 10 | //MiniExplorerCoimbra myRobot(60,40,0,120,80);//0,0,0 : lower left, facing right |
Ludwigfr | 5:19f24c363418 | 11 | //myRobot.go_to_point(20,55);//SELECT A TARGET BETWEEN (0,0) and(widthRealMap,heightRealMap) |
Ludwigfr | 8:072a76960e27 | 12 | //myRobot.go_to_line_first_lab(1,0,-60);//I think it works but it will always go the right |
Ludwigfr | 8:072a76960e27 | 13 | //myRobot.go_to_line_first_lab(-1,1,0);//I think it works but it will always go the right |
Ludwigfr | 8:072a76960e27 | 14 | //myRobot.go_to_line_first_lab(0.375,-1,17.5); |
Ludwigfr | 5:19f24c363418 | 15 | //gain distance line |
Ludwigfr | 8:072a76960e27 | 16 | //myRobot.go_to_point_with_angle_first_lab(100,55,-3.14/2);//SELECT A TARGET BETWEEN (0,0) and(widthRealMap,heightRealMap) |
Ludwigfr | 5:19f24c363418 | 17 | //small gain orientation |
Ludwigfr | 10:d0109d7cbe7c | 18 | |
Ludwigfr | 0:9f7ee7ed13e4 | 19 | //test lab2 |
Ludwigfr | 2:11cd5173aa36 | 20 | //reminder for now the sonar is in debugged, if no problem,comment the right code for presentaiton |
Ludwigfr | 5:19f24c363418 | 21 | //MiniExplorerCoimbra myRobot(60,40,0,120,80);//0,0,0 : lower left, facing right |
Ludwigfr | 2:11cd5173aa36 | 22 | //myRobot.test_sonars_and_map(25); |
Ludwigfr | 8:072a76960e27 | 23 | //myRobot.test_procedure_lab2(10); |
geotsam | 1:20f48907c726 | 24 | |
Ludwigfr | 0:9f7ee7ed13e4 | 25 | //test lab3 |
Ludwigfr | 10:d0109d7cbe7c | 26 | //MiniExplorerCoimbra myRobot(20,15,0,120,80);//0,0,0 : lower left, facing right |
Ludwigfr | 10:d0109d7cbe7c | 27 | //myRobot.try_to_reach_target(100,55);//need to adjust the constants. |
Ludwigfr | 5:19f24c363418 | 28 | |
Ludwigfr | 5:19f24c363418 | 29 | //test lab4 |
Ludwigfr | 10:d0109d7cbe7c | 30 | MiniExplorerCoimbra myRobot(20,15,0,120,80);//0,0,0 : lower left, facing right |
Ludwigfr | 8:072a76960e27 | 31 | //myRobot.test_prediction_sonar(); |
Ludwigfr | 11:b91fe0ed4fed | 32 | myRobot.test_procedure_lab_4(70,0); |
Ludwigfr | 5:19f24c363418 | 33 | |
Ludwigfr | 0:9f7ee7ed13e4 | 34 | return 0; |
Ludwigfr | 0:9f7ee7ed13e4 | 35 | } |
Ludwigfr | 0:9f7ee7ed13e4 | 36 |