Skip to content

Commit df2ee59

Browse files
Adding Visualization Script
1 parent 8b1340d commit df2ee59

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed
Binary file not shown.

docs/examples.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ Make sure you've selected the correct board and port in the Tools menu and then
3636
<figcaption markdown>Example 1 Output</figcaption>
3737
</figure>
3838

39+
Move the sensor around to see how the coordinates change!
40+
41+
3942
###Example 2: SetUnits
4043

4144
This example sets the desired units for linear and angular measurements. Can be either meters or inches for linear, and radians or degrees for angular. If not set, the default is inches and degrees. Note that this setting is not stored in the sensor, it's part of the library, so you need to set at the start of all your programs.
@@ -77,13 +80,6 @@ Make sure you've selected the correct board and port in the Tools menu and then
7780
<figcaption markdown>Example 2 Output</figcaption>
7881
</figure>
7982

80-
Move the sensor around to see how the coordinates change!
81-
82-
83-
<figure markdown>
84-
[![Coordinate Changes](assets/img/SEN-24904-Action-GIF-1.gif){ width="600" }](assets/img/SEN-24904-Action-GIF-1.gif "Click to enlarge")
85-
<figcaption markdown>Coordinate Changes</figcaption>
86-
</figure>
8783

8884
###Example 3: Calibration
8985

@@ -115,6 +111,8 @@ Alternatively, you can expand the link below and copy and paste the code into a
115111
https://raw.githubusercontent.com/sparkfun/SparkFun_Qwiic_OTOS_Arduino_Library/v1.0.0/examples/Example3_Calibration/Example3_Calibration.ino
116112
-->
117113

114+
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).
115+
118116
Calibrating your bot requires you to move it around a bit. First, set both scalars to 1.0, then calibrate the angular scalar, then the linear scalar.
119117

120118
To calibrate the angular scalar, spin the robot by multiple rotations (eg. 10) to get a precise error, then set the scalar to the inverse of the error. Remember that the angle wraps from -180 to 180 degrees, so for example, if after 10 rotations counterclockwise(positive rotation), the sensor reports -15 degrees, the required scalar would be 3600/3585 = 1.004.

docs/software_setup-Arduino.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
icon: simple/arduino
33
---
44

5-
## Arduino
6-
75
!!! attention
86
If this is your first time using Arduino, please review our tutorial on [installing the Arduino IDE](https://learn.sparkfun.com/tutorials/installing-arduino-ide). If you have not previously installed an Arduino library, please check out our [installation guide](https://learn.sparkfun.com/tutorials/installing-an-arduino-library).
97

@@ -14,3 +12,15 @@ We've written a library to get you started with the SparkFun Optical Tracking Od
1412
</center>
1513

1614

15+
In addition to the library provided here, we have written a Python script that allows you to visualize the XRP in real time. Download via the button below.
16+
17+
<center>
18+
[XRP Visualization Script](assets\SparkFun_OTOS_XRP_Visualization.zip){ .md-button .md-button--primary }
19+
</center>
20+
21+
22+
23+
<figure markdown>
24+
[![Visualization Script in Action](assets/img/SEN-24904-Action-GIF-1.gif){ width="600" }](assets/img/SEN-24904-Action-GIF-1.gif "Click to enlarge")
25+
<figcaption markdown>Visualization Script in Action</figcaption>
26+
</figure>

0 commit comments

Comments
 (0)