@@ -21,27 +21,29 @@ It needs to be tested a lot more.
2121
2222#### Examples
2323
24- - calibration example to determine the offsets needed
25- - example to read values.
26- - test sketch to test get / set values.
27- - example to get pitch roll yaw.
28- - performance sketch.
24+ - ** GY521_angle** read angleX, angleY, angleZ.
25+ - ** GY521_performance** measure performance.
26+ - ** GY521_pitch_roll_yaw** to get pitch roll yaw.
27+ - ** GY521_readCalibration_1** read calibration values / errors for a flat sensor.
28+ - ** GY521_readCalibration_2** generate calibration code snippet.
29+ - ** GY521_test_1** test working of the sensor.
30+ - ** GY521_test_2** test set/get functions.
2931
3032
3133## Breakout board
3234
3335From left to right
3436
35- | pin | pinName | description |
36- | :----:| :--------| :----------------|
37- | 0 | VCC | +5V |
38- | 1 | GND | ground |
39- | 2 | SCL | I2C clock |
40- | 3 | SDA | I2C data |
41- | 4 | XDA | auxiliary data | see datasheet
42- | 5 | XCL | auxiliary clock | see datasheet
43- | 6 | AD0 | address |
44- | 7 | INT | interrupt |
37+ | pin | pinName | description | notes |
38+ | :----- :| :---------: | :------------------ | :-------: |
39+ | 0 | VCC | +5V |
40+ | 1 | GND | ground |
41+ | 2 | SCL | I2C clock |
42+ | 3 | SDA | I2C data |
43+ | 4 | XDA | auxiliary data | see datasheet
44+ | 5 | XCL | auxiliary clock | see datasheet
45+ | 6 | AD0 | address |
46+ | 7 | INT | interrupt |
4547
4648
4749#### Address
@@ -60,6 +62,9 @@ AD0 connected to VCC => 0x69
6062
6163## Interface
6264
65+ ``` cpp
66+ #include " GY521.h"
67+ ```
6368
6469### Constructor
6570
@@ -80,7 +85,7 @@ AD0 connected to VCC => 0x69
8085- ** uint16_t getThrottleTime()** returns throttle time set.
8186
8287
83- ### READ
88+ ### Read
8489
8590#### Set before read
8691
@@ -104,7 +109,7 @@ returns status = GY521_OK on success.
104109
105110Since version 0.3.8 the ** read()** and ** readGyro()** function is updated to keep the range of ** getPitch()** ,
106111 ** getRoll()** and ** getYaw()** in the range 0..360 degrees. (Issue #36 ).
107- Problem is that with continuous roatation in a same direction internal variables will overflow and new
112+ Problem is that with continuous rotation in a same direction internal variables will overflow and new
108113movements (angles) will get lost as insignificant digits.
109114
110115
@@ -147,13 +152,22 @@ See examples, use with care
147152
148153## Future
149154
150- ** Should **
151- - test test and test ...(ESP too)
155+ #### Must
156+
152157- improve documentation
153- - look for maths optimizations (atan, hypot, performance)
154158
159+ #### Should
160+
161+ - test test and test ...(ESP too)
162+
163+ #### Could
155164
156- ** Could**
157- - calibrate function in the lib ? (think not as lib might grow?)
158165- calibrate sketch could print code snippet to include...
159166
167+ #### Wont
168+
169+ - look for maths optimizations (atan, hypot, performance)
170+ - ==> hypot optimized.
171+ - other ideas affect accuracy, so unless new ideas arise.
172+ - calibrate function in the lib
173+ - not as lib will grow too large.
0 commit comments