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
Diff: main.cpp
- Revision:
- 0:1e1b89f64b66
- Child:
- 1:fa858ba076b3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Fri May 27 01:34:57 2016 +0000
@@ -0,0 +1,49 @@
+
+#include "mbed.h"
+#include "Define.h"
+
+//////////////////////////////Init
+
+Serial pc(SERIAL_TX, SERIAL_RX);
+
+
+
+//////////////////////////////////////////////////////////////////////
+
+
+/////////////////////////////globle
+double NowCoordinate[2];
+double NowFaceAngle, NowDirectionInRad;
+long SelfRotation;
+double TargetCoordinate[2];
+double Goal_1_Coordinate[2], Goal_2_Coordinate[2], Ball_1_Coordinate[2], Ball_2_Coordinate[2];
+bool TargetCoordinateValid;
+double Car1XforStra1, Car1YforStra1, Car1DirectionforStra1, BlueBallXforStra1, BlueBallYforStra1;
+
+
+
+/////////////////////////////////////////
+#include "bluetooth.h"
+#include "OutputToMotor.h"
+#include "Interrupt.h"
+#include "strategy1.h"
+#include "setup.h"
+#include "loop.h"
+#include "Function.h"
+
+
+void InitIO(void)
+{
+
+}
+
+int main()
+{
+ InitIO();
+ setup();
+ OutputInit();
+ while(1)
+ {
+ loop();
+ }
+}
\ No newline at end of file