Tobis Programm forked to not destroy your golden files
Fork of Robocode by
header/Movement.h@86:df8c869a5a52, 2017-05-01 (annotated)
- Committer:
- cittecla
- Date:
- Mon May 01 12:55:11 2017 +0000
- Revision:
- 86:df8c869a5a52
- Parent:
- 85:d8ea8a99fa3a
- Child:
- 89:7f9d6e641a01
Implemented move_in_search_for_brick with state machine + test function move forward
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cittecla | 18:a82994e67297 | 1 | #pragma once |
cittecla | 39:92723f7ea54f | 2 | #include "mbed.h" |
cittecla | 39:92723f7ea54f | 3 | #include "Robot.h" |
cittecla | 52:56399c2f13cd | 4 | #include "Positioning.h" |
cittecla | 77:ff87a10c4baf | 5 | #include "Grabbing.h" |
cittecla | 52:56399c2f13cd | 6 | |
cittecla | 53:453f24775644 | 7 | #define sqrt2 1.4142135623730950488016887242097 |
cittecla | 85:d8ea8a99fa3a | 8 | #define wheel_r 3.8 //radius in cm |
cittecla | 18:a82994e67297 | 9 | |
cittecla | 39:92723f7ea54f | 10 | int moving(); |
cittecla | 85:d8ea8a99fa3a | 11 | float move_for_distance(float distance); |
cittecla | 75:dba260cb5ae4 | 12 | float turn_for_deg(float deg); //returns left deg for turning |
cittecla | 86:df8c869a5a52 | 13 | void stop_move(); |
cittecla | 86:df8c869a5a52 | 14 | void stop_turn(); |
cittecla | 39:92723f7ea54f | 15 | int move_to_next_coord(); |
cittecla | 54:36c290715769 | 16 | int move_in_search_for_brick(); |