Start of trail End of trail navigation bar

Table of Contents

SBus Decode

Decodes an S.BUS frame into its constituent parts.

Library

QUARC Targets/Communications/S.BUS

Description

SBus Decode

The SBus Decode block decodes an S.BUS frame, which is a series of 25 bytes, into its constituent parts, including the synchronization byte, 16 channels, flags and telemetry information.

Input Ports

frame

An array of 25 unsigned bytes (uint8) constituting the S.BUS frame to decode. This input is typically returned by a Stream block.

Output Ports

sync

The synchronization byte from the S.BUS frame, as a uint8.

ch

A 16 element vector of uint16 values, where each element corresponds to a separate channel.

flg

The flags from the S.BUS frame, as a uint8.

tele

The telemetry data from the S.BUS frame, as a uint8. For some receivers, this value will always be zero.

Parameters and Dialog Box

SBus Decode

The SBus Decode block has no parameters.

Targets

Target Name

Compatible*

Model Referencing

Comments

QUARC Win32 Target

Yes

Yes

QUARC Win64 Target

Yes

Yes

QUARC Linux Nvidia Target

Yes

Yes

QUARC Linux QBot Platform Target

Yes

Yes

QUARC Linux QCar 2 Target

Yes

Yes

QUARC Linux QDrone 2 Target

Yes

Yes

QUARC Linux Raspberry Pi 3 Target

Yes

Yes

QUARC Linux Raspberry Pi 4 Target

Yes

Yes

QUARC Linux RT ARMv7 Target

Yes

Yes

QUARC Linux x64 Target

Yes

Yes

QUARC Linux DuoVero Target

Yes

Yes

QUARC Linux DuoVero 2016 Target

Yes

Yes

QUARC Linux Verdex Target

Yes

Yes

QUARC QNX x86 Target

Yes

Yes

Last fully supported in QUARC 2018.

Rapid Simulation (RSIM) Target

Yes

Yes

S-Function Target

No

N/A

Old technology. Use model referencing instead.

Normal simulation

Yes

Yes

* Compatible means that the block can be compiled for the target.

 

navigation bar