You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/examples.md
+43-25Lines changed: 43 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,24 +4,20 @@ This first example just does some basic measurements to make sure everything is
4
4
5
5
6
6
<figuremarkdown>
7
-
[{ width="90%" }](assets/imgs/Example1_Menu.jpg"Click to enlarge")
7
+
[{ width="90%" }](assets/img/Arduino_Example_1_Menu.jpg"Click to enlarge")
8
8
<figcaptionmarkdown>Finding Example 1</figcaption>
9
9
</figure>
10
10
11
11
Alternatively, you can expand the link below and copy and paste the code into a shiny new Arduino sketch:
12
12
13
-
14
13
??? "Example 1 Arduino Code"
15
14
```
16
15
--8<-- ""
17
16
```
18
17
19
18
Make sure you've selected the correct board and port in the Tools menu and then hit the upload button. Once the code has finished uploading, go ahead and open a [Serial Monitor](https://learn.sparkfun.com/tutorials/terminal-basics). You should see something similar to the following.
20
19
21
-
<figuremarkdown>
22
-
[{ width="90%" }](assets/imgs/Example1_Output.jpg"Click to enlarge")
23
-
<figcaptionmarkdown>Example 1 Output</figcaption>
24
-
</figure>
20
+
25
21
26
22
###Example 2: SetUnits
27
23
@@ -31,41 +27,41 @@ To find Example 2, go to **File** > **Examples** > **SparkFun Qwiic OTOS** > **E
31
27
32
28
33
29
<figuremarkdown>
34
-
[{ width="90%" }](assets/imgs/Example2_Menu.jpg"Click to enlarge")
30
+
[{ width="90%" }](assets/img/Arduino_Example_2_Menu.jpg"Click to enlarge")
35
31
<figcaptionmarkdown>Finding Example 2</figcaption>
36
32
</figure>
37
33
38
34
Alternatively, you can expand the link below and copy and paste the code into a shiny new Arduino sketch:
39
35
40
-
<!--
36
+
41
37
42
38
??? "Example 2 Arduino Code"
43
39
```
44
40
--8<-- ""
45
41
```
46
-
-->
42
+
47
43
48
44
###Example 3: Calibration
49
45
50
-
The IMU on the OTOS 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.
46
+
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.
51
47
52
48
To find Example 3, go to **File** > **Examples** > **SparkFun Qwiic OTOS** > **Example3_Calibration**:
53
49
54
50
55
51
<figuremarkdown>
56
-
[{ width="90%" }](assets/imgs/Example3_Menu.jpg"Click to enlarge")
52
+
[{ width="90%" }](assets/img/Arduino_Example_3_Menu.jpg"Click to enlarge")
57
53
<figcaptionmarkdown>Finding Example 3</figcaption>
58
54
</figure>
59
55
60
56
Alternatively, you can expand the link below and copy and paste the code into a shiny new Arduino sketch:
61
57
62
-
<!--
58
+
63
59
64
60
??? "Example 3 Arduino Code"
65
61
```
66
62
--8<-- ""
67
63
```
68
-
-->
64
+
69
65
70
66
71
67
###Example 4: SetOffsetAndPosition
@@ -81,19 +77,19 @@ To find Example 4, go to **File** > **Examples** > **SparkFun Qwiic OTOS** > **E
81
77
82
78
83
79
<figuremarkdown>
84
-
[{ width="90%" }](assets/imgs/Example4_Menu.jpg"Click to enlarge")
80
+
[{ width="90%" }](assets/img/Arduino_Example_4_Menu.jpg"Click to enlarge")
85
81
<figcaptionmarkdown>Finding Example 4</figcaption>
86
82
</figure>
87
83
88
84
Alternatively, you can expand the link below and copy and paste the code into a shiny new Arduino sketch:
89
85
90
-
<!--
86
+
91
87
92
88
??? "Example 4 Arduino Code"
93
89
```
94
90
--8<-- ""
95
91
```
96
-
-->
92
+
97
93
98
94
###Example 5: VelocityAndAcceleration
99
95
@@ -104,19 +100,19 @@ To find Example 5, go to **File** > **Examples** > **SparkFun Qwiic OTOS** > **E
104
100
105
101
106
102
<figuremarkdown>
107
-
[{ width="90%" }](assets/imgs/Example5_Menu.jpg"Click to enlarge")
103
+
[{ width="90%" }](assets/img/Arduino_Example_5_Menu.jpg"Click to enlarge")
108
104
<figcaptionmarkdown>Finding Example 5</figcaption>
109
105
</figure>
110
106
111
107
Alternatively, you can expand the link below and copy and paste the code into a shiny new Arduino sketch:
112
108
113
-
<!--
109
+
114
110
115
111
??? "Example 5 Arduino Code"
116
112
```
117
113
--8<-- ""
118
114
```
119
-
-->
115
+
120
116
121
117
###Example 6: StandardDeviation
122
118
@@ -132,19 +128,19 @@ To find Example 6, go to **File** > **Examples** > **SparkFun Qwiic OTOS** > **E
132
128
133
129
134
130
<figuremarkdown>
135
-
[{ width="90%" }](assets/imgs/Example6_Menu.jpg"Click to enlarge")
131
+
[{ width="90%" }](assets/img/Arduino_Example_6_Menu.jpg"Click to enlarge")
136
132
<figcaptionmarkdown>Finding Example 6</figcaption>
137
133
</figure>
138
134
139
135
Alternatively, you can expand the link below and copy and paste the code into a shiny new Arduino sketch:
140
136
141
-
<!--
137
+
142
138
143
139
??? "Example 6 Arduino Code"
144
140
```
145
141
--8<-- ""
146
142
```
147
-
-->
143
+
148
144
149
145
150
146
@@ -157,16 +153,38 @@ To find Example 7, go to **File** > **Examples** > **SparkFun Qwiic OTOS** > **E
157
153
158
154
159
155
<figuremarkdown>
160
-
[{ width="90%" }](assets/imgs/Example7_Menu.jpg"Click to enlarge")
156
+
[{ width="90%" }](assets/img/Arduino_Example_7_Menu.jpg"Click to enlarge")
161
157
<figcaptionmarkdown>Finding Example 7</figcaption>
162
158
</figure>
163
159
164
160
Alternatively, you can expand the link below and copy and paste the code into a shiny new Arduino sketch:
165
161
166
-
<!--
162
+
167
163
168
164
??? "Example 7 Arduino Code"
169
165
```
170
166
--8<-- ""
171
167
```
172
-
-->
168
+
169
+
170
+
171
+
###Example 8: SelfTest
172
+
173
+
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.
174
+
175
+
To find Example 8, go to **File** > **Examples** > **SparkFun Qwiic OTOS** > **Example8_SelfTest**:
176
+
177
+
178
+
<figuremarkdown>
179
+
[{ width="90%" }](assets/img/Arduino_Example_8_Menu.jpg"Click to enlarge")
180
+
<figcaptionmarkdown>Finding Example 8</figcaption>
181
+
</figure>
182
+
183
+
Alternatively, you can expand the link below and copy and paste the code into a shiny new Arduino sketch:
0 commit comments