Skip to content

Commit

Permalink
doc8 linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hwillemen committed Mar 9, 2023
1 parent 39d38d2 commit 55fbd0c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions doc/main/iodevices/pupdevice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@ Detecting devices
../../../examples/pup/iodevices_pupdevice/port_info.py

Diagnostics: bringing examples together.
******************************
****************************************************************************************

``HubInit()`` automatically connects to any of the known hubs and reports its features in ``hub_info``
The init loops over all the available ports and ``ConnectToDevice()`` connects with available devices.
The remote, if there is one, controls 2 variables; in range(-100,100), the other in range(0,100).
``HubInit()`` automatically connects to any of the known hubs and reports its features
in ``hub_info``.
``GetPorts()`` and ``ConnectToDevice()`` are used to connect any available device.
The later also initiates a class object belonging to that device.
A remote can control 2 variables; CH A/1 in range(-100,100) and CH B/2 in range(0,100).
These could be used to control 1 or more motors, lights, etc.
On ``DIAGNOSTICS_PERIOD`` 4 different sensors values are read if available together with hub voltage and current.
On ``DIAGNOSTICS_PERIOD`` IMU and 4 different sensors values are read if available.
Also hub voltage and current are printed at that time.
Also ``ch1_val`` is applied as dc() value on motors if there are any.

.. literalinclude::
Expand Down

0 comments on commit 55fbd0c

Please sign in to comment.