Eric Wu / Mbed 2 deprecated WifiRobot

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

irobotSensorPoll.h File Reference

irobotSensorPoll.h File Reference

Methods to poll iRobot sensors. More...

Go to the source code of this file.

Functions

int32_t irobotSensorPollSensorGroup6 (const irobotUARTPort_t port, irobotSensorGroup6_t *const sensorGroup6)
 Request sensor packet from iRobot and wait for response.

Detailed Description

Methods to poll iRobot sensors.

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 irobotSensorPoll.h.


Function Documentation

int32_t irobotSensorPollSensorGroup6 ( const irobotUARTPort_t  port,
irobotSensorGroup6_t *const   sensorGroup6 
)

Request sensor packet from iRobot and wait for response.

Warning:
Polling requires both transmitting and receiving to the UART port, hence these functions are *not* thread safe with regard to other UART functions.
Returns:
error code
Parameters:
[in]portiRobot UART port
[in]sensorGroup6Sensor group

Definition at line 6 of file irobotSensorPoll.cpp.