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 Robocode by
positioning_lib.cpp@12:91c2e07d2b5b, 2017-02-24 (annotated)
- Committer:
- cittecla
- Date:
- Fri Feb 24 10:01:05 2017 +0000
- Revision:
- 12:91c2e07d2b5b
- Child:
- 13:57f5a7876d2f
Added basic program structure.; defined the main functions: mapping, positioning, path finding, move and grab.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| cittecla | 12:91c2e07d2b5b | 1 | /** |
| cittecla | 12:91c2e07d2b5b | 2 | * Positioning function library |
| cittecla | 12:91c2e07d2b5b | 3 | * Handels position of the Robot on the map |
| cittecla | 12:91c2e07d2b5b | 4 | **/ |
| cittecla | 12:91c2e07d2b5b | 5 | |
| cittecla | 12:91c2e07d2b5b | 6 | #include "mbed.h" |
| cittecla | 12:91c2e07d2b5b | 7 | |
| cittecla | 12:91c2e07d2b5b | 8 | double time_counter = 0.0f; |
| cittecla | 12:91c2e07d2b5b | 9 | double deltatime = 0.0f; |
| cittecla | 12:91c2e07d2b5b | 10 | |
| cittecla | 12:91c2e07d2b5b | 11 | void positioning(){ |
| cittecla | 12:91c2e07d2b5b | 12 | //call positioning functions |
| cittecla | 12:91c2e07d2b5b | 13 | } |
