Dshot - Dshot Rx v1
Dshot - Dshot Rx v1 — The Dshot Rx receives data according
to the Dshot protocol.
Library
Simulink Real-Time - Speedgoat

Description
The Dshot Rx block receives Dshot messages according to the selected Dshot mode.
Ports
The Simulink block has 3 outputs ports:
Outputs
-
Rx data
The Rx data port represents the received data channels with the 11-bit
throttle without the telemetry and CRC bits. The data type is uint16 and
data is aligned on the LSB (bit 0).
-
Valid
The Valid port represents the flag bit for the resulting CRC check.
The value is 1 for a correct transmission and 0 for an erroneous
transmission. The data type is boolean.
-
Telemetry
The telemetry port represents the bit for the telemetry setting. The
value is 1 if the telemetry bit is set in the data packet, and 0 if it
is not set. The data type is boolean.
Parameters
Tab: Module setup
-
Configurable I/O Module ID
This parameter associates a code module block with a configurable I/O module setup
block. Set this value to match the Module ID defined in the setup block of the
required configurable I/O module.
-
Channel Vector
A vector of channels this driver block entity will access. You can specify
channels in the range 1-N (N = the number of channels implemented in your specific
configuration file defined in the Setup block). The width of this vector also
defines the subsequent size of some of the following parameters if scalar expansion
applies. With a single block, all the channels of the block are synchronized.
-
Sample Time
Defines the base sample time at which this driver block gets its sample hit. This
parameter can also be set to -1 for inherited
sample time. The units are in seconds.
Tab: Dshot
-
Dshot Mode
Defines which Dshot mode is used. For further information about the
different modes please refer to the Usage Notes.
Dshot 150
Dshot 300
Dshot 600
Dshot 1200
-
Use recommended Reset Time
When checked a pause pulse of a time period of 21 bits is expected
following the data packet. When not checked, the reset time is tunable.
The time period of one bit depends on the selected Dshot mode.
-
Reset Time
If the box "Use recommended Reset Time" is not checked, the reset time
is tunable between 2 and 2^32-1. Otherwise, it is set to the recommended
21 bits.