Roomba Run Demo Roomba Sensor Request navigation bar

Table of Contents

Roomba Send IR

Sends the requested byte out of low side driver 1.

Library

QUARC Targets/Devices/Third-Party/iRobot/Roomba/Interfacing

Description

Roomba Send IR

The Roomba Send IR block sends the requested byte (0 to 255) out of low side driver 1 (pin 23 on the Cargo Bay Connector), using the format (see the iRobot Create Open Interface v.2 Manual document available from the iRobot website for detail information on infrared bytes) expected by iRobot Roomba's IR receiver. A preload resistor (suggested value: 100 ohms) in parallel with the IR LED and its resistor must be used in order turn it on.

This command is available in Safe, or Full operating mode of Roomba (see Roomba Modes block). Execution of this command does not change current Roomba operating mode.

Important Notes

Note Use System Timebase block in Normal simulation.

Input Ports

rmb

A reference to the Roomba stream (see Roomba Initialize block).

ir

Specifies the infrared byte (0 to 255).

Output Ports

rmb

A reference to the Roomba stream, which is the same as input Roomba stream reference. It helps creating a daisy chain of Roomba blocks.

err

This signal returns a negative value in case of memory allocation error or data communication error through Roomba serial port.

Parameters and Dialog Box

Roomba Send IR

Sample time

The sample time of the block. A sample time of 0 indicates that the block will be treated as a continuous time block. A positive sample time indicates that the block is a discrete time block with the given sample time. A sample time of -1 indicates that the block inherits its sample time.

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

Use System Timebase.

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

 

navigation bar