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: BNO055_fusion mbed
Fork of DEMO3 by
Diff: LOCALIZE.h
- Revision:
- 6:0602a9e8118b
- Parent:
- 5:c89308dc1827
- Child:
- 8:b36be08c44f8
--- a/LOCALIZE.h Sun Mar 06 18:31:59 2016 +0000
+++ b/LOCALIZE.h Wed Mar 16 22:05:23 2016 +0000
@@ -10,7 +10,7 @@
#define FRAME_H 180
#define FRAME_W 150
-#define R_WAIT 0.075
+#define R_WAIT 0.025
#define R_ERROR 14
#define RX_OFF 7
#define RY_OFF 6
@@ -35,13 +35,14 @@
void get_raw_xy(void);
void get_angle(LOCALIZE_xya *xya);
void get_xy(LOCALIZE_xya *xya);
-
+ int _angle, _rx_p, _rx_n, _ry_p, _ry_n;//
+ BNO055_EULER_TypeDef _euler;
+
protected:
- int _angle, _rx_p, _rx_n, _ry_p, _ry_n;
I2C _y_i2c;
I2C _x_imu_i2c;
BNO055 _imu;
- BNO055_EULER_TypeDef _euler;
+
BNO055_GRAVITY_TypeDef _gravity;
BNO055_LIN_ACC_TypeDef _accel;
LOCALIZE_xya _xya;
