Skip to content

Commit 24222d5

Browse files
committed
update tof example
1 parent 3b7ff14 commit 24222d5

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

docs/source/components/nodes/tof.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ max distance is the larger of both modulation frequencies (so max distance at 80
111111
:nowrap:
112112
113113
\begin{align*}
114-
c & = 299792458.0 \quad \text{//! speed of light in m/s} \\
115-
MAX\_80MHZ\_M & = \frac{c}{80000000 \times 2} = 1.873 \, \text{m}
116-
MAX\_100MHZ\_M & = \frac{c}{100000000 \times 2} = 1.498 \, \text{m}
117-
MAX\_DIST\_80MHZ_M & = (\text{phaseUnwrappingLevel} + 1) \times 1.873 + \frac{\text{phaseUnwrapErrorThreshold}}{2}
118-
MAX\_DIST\_100MHZ_M & = (\text{phaseUnwrappingLevel} + 1) \times 1.498 + \frac{\text{phaseUnwrapErrorThreshold}}{2}
114+
c & = 299792458.0 \quad \text{// speed of light in m/s} \\
115+
MAX\_80MHZ\_M & = \frac{c}{80000000 \times 2} = 1.873 \, \text{m} \\
116+
MAX\_100MHZ\_M & = \frac{c}{100000000 \times 2} = 1.498 \, \text{m} \\
117+
MAX\_DIST\_80MHZ_M & = (\text{phaseUnwrappingLevel} + 1) \times 1.873 + \frac{\text{phaseUnwrapErrorThreshold}}{2} \\
118+
MAX\_DIST\_100MHZ_M & = (\text{phaseUnwrappingLevel} + 1) \times 1.498 + \frac{\text{phaseUnwrapErrorThreshold}}{2} \\
119119
MAX\_DIST\_PHASE\_UNWRAPPING\_M & = MAX\_DIST\_80MHZ\_M
120120
\end{align*}
121121

examples/ToF/tof_depth.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,16 @@ def create_pipeline():
1717

1818
# Configure the ToF node
1919
tofConfig = tof.initialConfig.get()
20-
# Disable for debugging:
21-
tofConfig.enableFPPNCorrection = True
22-
tofConfig.enableWiggleCorrection = True
23-
# tofConfig.enableTemperatureCorrection = True
2420

2521
# Optional. Best accuracy, but adds motion blur.
2622
# see ToF node docs on how to reduce/eliminate motion blur.
2723
tofConfig.enableOpticalCorrection = True
2824
tofConfig.enablePhaseShuffleTemporalFilter = True
2925
tofConfig.phaseUnwrappingLevel = 4
3026
tofConfig.phaseUnwrapErrorThreshold = 300
27+
28+
tofConfig.enableTemperatureCorrection = False # Not yet supported
29+
3130
xinTofConfig = pipeline.create(dai.node.XLinkIn)
3231
xinTofConfig.setStreamName("tofConfig")
3332
xinTofConfig.out.link(tof.inputConfig)

0 commit comments

Comments
 (0)