I'd like to use a gyroscope to control my robot path: for example, to control if the path does not diverge from the received path.
If this occurs, i control the motors in order to follow the correct path.
I'm using a tinkerkit gyroscope with a tinkerkit shield but i'm not able to understand the outputs i read from the serial monitor.
In particular, i'm using the sample code to test the gyroscope, the same you can find on the product page:
I try to rotate or to move the gyroscope with my hands but i do not understand the output parameters, in particular roll and pitch angle.
When do they change? i try to turn the gyroscope on its axis, but parameters does not seem to change a lot.
Can you help me, please?
Calibration...
TinkerKit! Gyroscope [T000062-64] Test ExampleRoll_Rate: -7 Roll_Angle: 357 Pitch_Rate: 21 Pitch_Angle: 10 Servo: 87
Roll_Rate: 3 Roll_Angle: 355 Pitch_Rate: 21 Pitch_Angle: 31 Servo: 85
Roll_Rate: 3 Roll_Angle: 358 Pitch_Rate: 25 Pitch_Angle: 54 Servo: 88
Roll_Rate: 3 Roll_Angle: 1 Pitch_Rate: 32 Pitch_Angle: 82 Servo: 91
Roll_Rate: 3 Roll_Angle: 4 Pitch_Rate: 32 Pitch_Angle: 114 Servo: 94
Roll_Rate: 7 Roll_Angle: 9 Pitch_Rate: 40 Pitch_Angle: 150 Servo: 99
Roll_Rate: 3 Roll_Angle: 14 Pitch_Rate: 36 Pitch_Angle: 188 Servo: 104
Roll_Rate: 3 Roll_Angle: 17 Pitch_Rate: 32 Pitch_Angle: 222 Servo: 107
Roll_Rate: 10 Roll_Angle: 23 Pitch_Rate: 18 Pitch_Angle: 247 Servo: 113
Roll_Rate: 10 Roll_Angle: 33 Pitch_Rate: 7 Pitch_Angle: 259 Servo: 123
Roll_Rate: 3 Roll_Angle: 39 Pitch_Rate: 18 Pitch_Angle: 271 Servo: 129
Roll_Rate: 3 Roll_Angle: 42 Pitch_Rate: 18 Pitch_Angle: 289 Servo: 132
Roll_Rate: 3 Roll_Angle: 45 Pitch_Rate: 14 Pitch_Angle: 305 Servo: 135
Roll_Rate: 3 Roll_Angle: 48 Pitch_Rate: 14 Pitch_Angle: 319 Servo: 138
Roll_Rate: 3 Roll_Angle: 51 Pitch_Rate: 10 Pitch_Angle: 331 Servo: 141
Roll_Rate: 3 Roll_Angle: 54 Pitch_Rate: 14 Pitch_Angle: 343 Servo: 144
Roll_Rate: 3 Roll_Angle: 57 Pitch_Rate: 10 Pitch_Angle: 355 Servo: 147
Roll_Rate: -14 Roll_Angle: 52 Pitch_Rate: 3 Pitch_Angle: 1 Servo: 142
Roll_Rate: 0 Roll_Angle: 52 Pitch_Rate: 3 Pitch_Angle: 4 Servo: 142
Roll_Rate: -3 Roll_Angle: 51 Pitch_Rate: 0 Pitch_Angle: 4 Servo: 141
Roll_Rate: 7 Roll_Angle: 53 Pitch_Rate: -3 Pitch_Angle: 3 Servo: 143
Roll_Rate: -3 Roll_Angle: 55 Pitch_Rate: 7 Pitch_Angle: 5 Servo: 145
Roll_Rate: 7 Roll_Angle: 57 Pitch_Rate: 3 Pitch_Angle: 10 Servo: 147
Roll_Rate: 10 Roll_Angle: 65 Pitch_Rate: 7 Pitch_Angle: 15 Servo: 155
Roll_Rate: 3 Roll_Angle: 71 Pitch_Rate: 10 Pitch_Angle: 23 Servo: 161
Roll_Rate: 0 Roll_Angle: 71 Pitch_Rate: 10 Pitch_Angle: 33 Servo: 161
Roll_Rate: 18 Roll_Angle: 80 Pitch_Rate: 10 Pitch_Angle: 43 Servo: 170
Roll_Rate: 7 Roll_Angle: 92 Pitch_Rate: 10 Pitch_Angle: 53 Servo: 170
Roll_Rate: 43 Roll_Angle: 117 Pitch_Rate: 95 Pitch_Angle: 105 Servo: 170
Roll_Rate: 29 Roll_Angle: 153 Pitch_Rate: 84 Pitch_Angle: 194 Servo: 170
Roll_Rate: -29 Roll_Angle: 153 Pitch_Rate: -146 Pitch_Angle: 163 Servo: 170
Roll_Rate: 3 Roll_Angle: 140 Pitch_Rate: 14 Pitch_Angle: 97 Servo: 170
Roll_Rate: 3 Roll_Angle: 143 Pitch_Rate: 10 Pitch_Angle: 109 Servo: 170
Roll_Rate: 3 Roll_Angle: 146 Pitch_Rate: 10 Pitch_Angle: 119 Servo: 170
Roll_Rate: 109 Roll_Angle: 202 Pitch_Rate: 14 Pitch_Angle: 131 Servo: 170
Roll_Rate: 3 Roll_Angle: 258 Pitch_Rate: 14 Pitch_Angle: 145 Servo: 170
Roll_Rate: 3 Roll_Angle: 261 Pitch_Rate: 14 Pitch_Angle: 159 Servo: 170
Roll_Rate: 3 Roll_Angle: 264 Pitch_Rate: 14 Pitch_Angle: 173 Servo: 170
Roll_Rate: 7 Roll_Angle: 269 Pitch_Rate: 10 Pitch_Angle: 185 Servo: 170
Roll_Rate: 3 Roll_Angle: 274 Pitch_Rate: 10 Pitch_Angle: 195 Servo: 4
Roll_Rate: 7 Roll_Angle: 279 Pitch_Rate: 10 Pitch_Angle: 205 Servo: 9