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.
Diff: OmniPosition.h
- Revision:
- 14:16ee2a638ecb
- Parent:
- 13:913b647071a8
- Child:
- 16:893d1d146757
--- a/OmniPosition.h Tue Oct 23 19:29:35 2018 +0900
+++ b/OmniPosition.h Thu Jun 20 08:04:24 2019 +0000
@@ -4,8 +4,8 @@
#include "mbed.h"
#define OP_SERIAL_BUFFER_SIZE 9
-#define OP_HEADER_FIRST_BYTE 72
-#define OP_HEADER_SECOND_BYTE 42
+#define OP_HEADER_FIRST_BYTE 0xEE
+#define OP_HEADER_SECOND_BYTE 0xFF
#define OP_DEFAULT_BAUD 115200
class OmniPosition : public RawSerial {
@@ -34,3 +34,7 @@
#endif
+#ifndef M_PI
+#define M_PI 3.14159
+#endif
+