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
Diff: source/Positioning.cpp
- Revision:
- 52:56399c2f13cd
- Parent:
- 46:8b52c7b34d34
- Child:
- 58:1a395b6928ee
--- a/source/Positioning.cpp Sat Apr 15 00:18:50 2017 +0000
+++ b/source/Positioning.cpp Tue Apr 18 11:50:02 2017 +0000
@@ -7,12 +7,18 @@
#include "Positioning.h"
position current_pos;
float current_heading;
+position next_pos;
position get_current_pos()
{
return current_pos;
}
+position get_next_pos()
+{
+ return next_pos;
+}
+
float get_current_heading()
{
return current_heading;
