Skip to main content

Customer Login

This content is for Speedgoat customer only. Log in to see content.

Forgot your password?

Don't have a Speedgoat account? Create an account.

Documentation
CONTENTS
https://www.speedgoat.com/help/slrt/page/icon_documentation.jpg

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
FPGA Module Identifier

Given that a target machine can contain more than one FPGA module, this parameter is used by the other driver blocks to identify a specific module. Select a unique number (1-10) for each of your modules. If your target machine only contains one FPGA module, then leave the default value (1).

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 FPGA bitstream configured 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.