Eric Wu / Mbed 2 deprecated WifiRobot

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

irobotOpcode.h File Reference

irobotOpcode.h File Reference

iRobot Open Interface Operation Codes (opcodes) More...

Go to the source code of this file.

Enumerations

enum  irobotOpcode_t {
  OP_START = 128, OP_BAUD = 129, OP_CONTROL = 130, OP_SAFE = 131,
  OP_FULL = 132, OP_DEMO = 136, OP_DEMO_COVER = 135, OP_DEMO_COVER_DOCK = 143,
  OP_DEMO_SPOT = 134, OP_DRIVE = 137, OP_DRIVE_DIRECT = 145, OP_LEDS = 139,
  OP_DIGITAL_OUTPUTS = 147, OP_PWM_LOW_SIDE_DRIVERS = 144, OP_LOW_SIDE_DRIVERS = 138, OP_SEND_IR = 151,
  OP_SONG = 140, OP_PLAY_SONG = 141, OP_SENSORS = 142, OP_QUERY_LIST = 149,
  OP_STREAM = 148, OP_PAUSE_RESUME_STREAM = 150, OP_SCRIPT = 152, OP_PLAY_SCRIPT = 153,
  OP_SHOW_SCRIPT = 154, OP_WAIT_TIME = 155, OP_WAIT_DISTANCE = 156, OP_WAIT_ANGLE = 157,
  OP_WAIT_EVENT = 158
}
 

OpCodes for iRobot open interface.

More...

Detailed Description

iRobot Open Interface Operation Codes (opcodes)

Author:
Jeff C. Jensen
Date:
2013-12-09 Copyright (C) 2013, Jeff C. Jensen, Edward A. Lee, and Sanjit A. Seshia. This software accompanies An Introductory Lab in Embedded and Cyber-Physical Systems and is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. See http://leeseshia.org/lab.

Definition in file irobotOpcode.h.


Enumeration Type Documentation

OpCodes for iRobot open interface.

Enumerator:
OP_START 

Start mode.

OP_BAUD 

Change baud rate.

OP_CONTROL 

Control mode.

OP_SAFE 

Safe mode.

OP_FULL 

Full mode.

OP_DEMO 

Demo mode.

OP_DEMO_COVER 

Cover demo.

OP_DEMO_COVER_DOCK 

Dock & cover demo.

OP_DEMO_SPOT 

Spot demo.

OP_DRIVE 

Drive a turn radius and speed.

OP_DRIVE_DIRECT 

Directly drive left and right wheels.

OP_LEDS 

Control LEDs.

OP_DIGITAL_OUTPUTS 

Write digital outputs.

OP_PWM_LOW_SIDE_DRIVERS 

Write PWM low-side drivers.

OP_LOW_SIDE_DRIVERS 

Write analog low-side drivers.

OP_SEND_IR 

Send IR signal.

OP_SONG 

Define song.

OP_PLAY_SONG 

Play song.

OP_SENSORS 

Query sensors.

OP_QUERY_LIST 

Set list of sensors to query.

OP_STREAM 

Sensor stream.

OP_PAUSE_RESUME_STREAM 

Pause or resume sensor stream.

OP_SCRIPT 

Define action script.

OP_PLAY_SCRIPT 

Play action script.

OP_SHOW_SCRIPT 

Read the current action script.

OP_WAIT_TIME 

Script: instruct the robot to wait for a specified time.

OP_WAIT_DISTANCE 

Script: instruct the robot to wait for a specified distance.

OP_WAIT_ANGLE 

Script: instruct the robot to wait for a specified angle.

OP_WAIT_EVENT 

Script: instruct the robot to wait for an event.

Definition at line 17 of file irobotOpcode.h.