|
2 | 2 | icon: simple/arduino |
3 | 3 | --- |
4 | 4 |
|
| 5 | +!!! attention |
| 6 | + |
| 7 | + All of the examples require the user to enter a key into the serial monitor before the example starts, which triggers the IMU calibration. |
| 8 | + |
| 9 | +!!! attention |
| 10 | + |
| 11 | + The IMU on the Optical Tracking Odometry Sensor includes a gyroscope and accelerometer, which could have an offset. The OTOS performs a quick calibration when it powers up, but it is recommended to perform a more thorough calibration at the start of all your programs. |
| 12 | + |
5 | 13 | ###Example 1: Basic Readings |
6 | 14 |
|
7 | 15 | This first example just does some basic measurements to make sure everything is hooked up correctly. To find Example 1, go to **File** > **Examples** > **SparkFun Qwiic OTOS** > **Example1_BasicReadings**: |
@@ -69,10 +77,17 @@ Make sure you've selected the correct board and port in the Tools menu and then |
69 | 77 | <figcaption markdown>Example 2 Output</figcaption> |
70 | 78 | </figure> |
71 | 79 |
|
| 80 | +Feel free to move the sensor around to see how the coordinates change! |
| 81 | + |
72 | 82 |
|
73 | 83 | ###Example 3: Calibration |
74 | 84 |
|
75 | | -The IMU on the Optical Tracking Odometry Sensor includes a gyroscope and accelerometer, which could have an offset. The OTOS performs a quick calibration when it powers up, but it is recommended to perform a more thorough calibration at the start of all your programs. |
| 85 | +!!! warning |
| 86 | + |
| 87 | + As of firmware version 1.0, these calibration values will be lost after a power cycle, so you will need to set them each time you power up the sensor. |
| 88 | + |
| 89 | + |
| 90 | +The data from the OTOS will likely have minor scaling errors that can be calibrated out. This is especially important for the angular scalar, because an incorrect angle measurement causes the linear measurements to be rotated by the wrong angle in the firmware, which can lead to very inaccurate tracking! |
76 | 91 |
|
77 | 92 | To find Example 3, go to **File** > **Examples** > **SparkFun Qwiic OTOS** > **Example3_Calibration**: |
78 | 93 |
|
@@ -118,11 +133,13 @@ To calibrate the linear scalar, move the robot a known distance and measure the |
118 | 133 |
|
119 | 134 | ###Example 4: SetOffsetAndPosition |
120 | 135 |
|
121 | | -This example shows how to set the offset for the sensor relative to the center of the robot. The units default to inches and degrees, but if you want to use different units, make sure you specify them before setting the offset. |
| 136 | +This example shows how to set the offset for the sensor relative to the center of the robot. The units default to inches and degrees, but if you want to use different units, make sure you specify them before setting the offset. Without setting the offset, the OTOS will report the coordinates of itself. If the offset is set, the OTOS will instead report the coordinates of the center of your robot. |
| 137 | + |
| 138 | +Note that the OTOS typically starts tracking from the origin, but if your robot starts at some other location, or you have another source of location information from another sensor that's more accurate, you can send the current location to the OTOS and it will continue tracking from there. |
122 | 139 |
|
123 | 140 | !!! warning |
124 | 141 |
|
125 | | - Note that as of firmware version 1.0, these values will be lost after a power cycle, so you will need to set them each time you power up the sensor. |
| 142 | + As of firmware version 1.0, these values will be lost after a power cycle, so you will need to set them each time you power up the sensor. |
126 | 143 |
|
127 | 144 |
|
128 | 145 | To find Example 4, go to **File** > **Examples** > **SparkFun Qwiic OTOS** > **Example4_SetOffsetAndPosition**: |
@@ -154,6 +171,9 @@ If the sensor is mounted 5 inches to the left (negative X) and 10 inches forward |
154 | 171 |
|
155 | 172 |
|
156 | 173 |
|
| 174 | + |
| 175 | + |
| 176 | + |
157 | 177 | <!-- |
158 | 178 | ###Example 5: VelocityAndAcceleration |
159 | 179 |
|
|
0 commit comments