Skip to content

Commit

Permalink
Added disable/enable sonar commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYsLab committed Feb 6, 2023
1 parent 7b0b824 commit 2a4e658
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions html/telemetrix/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1797,6 +1797,20 @@ <h1 class="title">Module <code>telemetrix.telemetrix</code></h1>
except Exception:
raise RuntimeError(&#39;Shutdown failed - could not send stop streaming message&#39;)

def sonar_disable(self):
&#34;&#34;&#34;
Disable sonar scanning for all sonar sensors
&#34;&#34;&#34;
command = [PrivateConstants.SONAR_DISABLE]
self._send_command(command)

def sonar_enable(self):
&#34;&#34;&#34;
Enable sonar scanning for all sonar sensors
&#34;&#34;&#34;
command = [PrivateConstants.SONAR_ENABLE]
self._send_command(command)

def spi_cs_control(self, chip_select_pin, select):
&#34;&#34;&#34;
Control an SPI chip select line
Expand Down Expand Up @@ -4337,6 +4351,20 @@ <h2 class="section-title" id="header-classes">Classes</h2>
except Exception:
raise RuntimeError(&#39;Shutdown failed - could not send stop streaming message&#39;)

def sonar_disable(self):
&#34;&#34;&#34;
Disable sonar scanning for all sonar sensors
&#34;&#34;&#34;
command = [PrivateConstants.SONAR_DISABLE]
self._send_command(command)

def sonar_enable(self):
&#34;&#34;&#34;
Enable sonar scanning for all sonar sensors
&#34;&#34;&#34;
command = [PrivateConstants.SONAR_ENABLE]
self._send_command(command)

def spi_cs_control(self, chip_select_pin, select):
&#34;&#34;&#34;
Control an SPI chip select line
Expand Down Expand Up @@ -6439,6 +6467,40 @@ <h3>Methods</h3>
raise RuntimeError(&#39;Shutdown failed - could not send stop streaming message&#39;)</code></pre>
</details>
</dd>
<dt id="telemetrix.telemetrix.Telemetrix.sonar_disable"><code class="name flex">
<span>def <span class="ident">sonar_disable</span></span>(<span>self)</span>
</code></dt>
<dd>
<div class="desc"><p>Disable sonar scanning for all sonar sensors</p></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def sonar_disable(self):
&#34;&#34;&#34;
Disable sonar scanning for all sonar sensors
&#34;&#34;&#34;
command = [PrivateConstants.SONAR_DISABLE]
self._send_command(command)</code></pre>
</details>
</dd>
<dt id="telemetrix.telemetrix.Telemetrix.sonar_enable"><code class="name flex">
<span>def <span class="ident">sonar_enable</span></span>(<span>self)</span>
</code></dt>
<dd>
<div class="desc"><p>Enable sonar scanning for all sonar sensors</p></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def sonar_enable(self):
&#34;&#34;&#34;
Enable sonar scanning for all sonar sensors
&#34;&#34;&#34;
command = [PrivateConstants.SONAR_ENABLE]
self._send_command(command)</code></pre>
</details>
</dd>
<dt id="telemetrix.telemetrix.Telemetrix.spi_cs_control"><code class="name flex">
<span>def <span class="ident">spi_cs_control</span></span>(<span>self, chip_select_pin, select)</span>
</code></dt>
Expand Down Expand Up @@ -7618,6 +7680,8 @@ <h4><code><a title="telemetrix.telemetrix.Telemetrix" href="#telemetrix.telemetr
<li><code><a title="telemetrix.telemetrix.Telemetrix.set_pin_mode_spi" href="#telemetrix.telemetrix.Telemetrix.set_pin_mode_spi">set_pin_mode_spi</a></code></li>
<li><code><a title="telemetrix.telemetrix.Telemetrix.set_pin_mode_stepper" href="#telemetrix.telemetrix.Telemetrix.set_pin_mode_stepper">set_pin_mode_stepper</a></code></li>
<li><code><a title="telemetrix.telemetrix.Telemetrix.shutdown" href="#telemetrix.telemetrix.Telemetrix.shutdown">shutdown</a></code></li>
<li><code><a title="telemetrix.telemetrix.Telemetrix.sonar_disable" href="#telemetrix.telemetrix.Telemetrix.sonar_disable">sonar_disable</a></code></li>
<li><code><a title="telemetrix.telemetrix.Telemetrix.sonar_enable" href="#telemetrix.telemetrix.Telemetrix.sonar_enable">sonar_enable</a></code></li>
<li><code><a title="telemetrix.telemetrix.Telemetrix.spi_cs_control" href="#telemetrix.telemetrix.Telemetrix.spi_cs_control">spi_cs_control</a></code></li>
<li><code><a title="telemetrix.telemetrix.Telemetrix.spi_read_blocking" href="#telemetrix.telemetrix.Telemetrix.spi_read_blocking">spi_read_blocking</a></code></li>
<li><code><a title="telemetrix.telemetrix.Telemetrix.spi_set_format" href="#telemetrix.telemetrix.Telemetrix.spi_set_format">spi_set_format</a></code></li>
Expand Down

0 comments on commit 2a4e658

Please sign in to comment.