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 Tx v1

Dshot - Dshot Tx v1 — The Dshot Tx transmits data according to the selected Dshot protocol.

Library

Simulink Real-Time - Speedgoat

Description

The Dshot Tx block transmits Dshot messages over the selected Dshot mode protocol.

Ports

The Simulink block has 1 input port with up to 32 channels.

Inputs
Tx data

The message to be transmitted with the Dshot protocol. The size of this message has either a bit length of 11 or 12, depending on the telemetry bit settings. The data type is uint16 and data is aligned on the LSB (bit 0).

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

Set Telemetry Bit Manually

When checked, the telemetry bit must be manually set as part of the input data. In this case, the Tx data length must be 12 bit. If not checked, the data size is 11 bit and the telemetry bit is set according to the input data value. If the value is between 1 and 47, the telemetry bit is set to 1. Otherwise it is set to 0.