direcs  2012-09-30
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
DemoThread Class Reference

Some test code for presenting the robot itself. More...

#include <demoThread.h>

List of all members.

Signals

void message (QString text, bool CR=true, bool sayIt=false, bool addTimestamp=true)
bool setRGBLEDBrightness (unsigned char rgbLed, unsigned char brightness)

Public Member Functions

 DemoThread ()
bool init ()
virtual void run ()
void stop ()
 ~DemoThread ()

Private Attributes

bool demoMode
volatile bool stopped

Static Private Attributes

static const unsigned char RGBLED1 = 0
 the RGB LED numbers
static const unsigned char RGBLED2 = 1
static const unsigned char RGBLED3 = 2
static const unsigned char RGBLED4 = 3
static const unsigned char RGBLED5 = 4
static const unsigned char RGBLED6 = 5
static const unsigned long THREADSLEEPTIME = 200
static const int timeToNetworkCheck = 3

Detailed Description

Some test code for presenting the robot itself.

Author:
Markus Knapp tbd

Definition at line 39 of file demoThread.h.


Constructor & Destructor Documentation

DemoThread::DemoThread ( )

Definition at line 23 of file demoThread.cpp.

DemoThread::~DemoThread ( )

Definition at line 33 of file demoThread.cpp.


Member Function Documentation

bool DemoThread::init ( )

tbd

Returns:
true on success, false on error

Definition at line 89 of file demoThread.cpp.

void DemoThread::message ( QString  text,
bool  CR = true,
bool  sayIt = false,
bool  addTimestamp = true 
)
signal

Emits a string to the GUI log / console.

See also:
Gui::appendLog()
Parameters:
textis the message to be emitted
CRis true when a CR/LF should be added at the end of the line (default)
sayItis true when the text for the log also should be spoken (default=false)
addTimestampIf true, the a timestamp is added in front of the text. This parameter is optional.
void DemoThread::run ( )
virtual

Starts the thread.

Definition at line 44 of file demoThread.cpp.

Here is the call graph for this function:

bool DemoThread::setRGBLEDBrightness ( unsigned char  rgbLed,
unsigned char  brightness 
)
signal

Sends a signal fro setting the robots RGB brightness to do some nive blinky flashy stuff.

Here is the caller graph for this function:

void DemoThread::stop ( )

Stops the thread.

Definition at line 38 of file demoThread.cpp.

Here is the caller graph for this function:


Member Data Documentation

bool DemoThread::demoMode
private

Definition at line 83 of file demoThread.h.

const unsigned char DemoThread::RGBLED1 = 0
staticprivate

the RGB LED numbers

See also:
rgbLed::rgbLed()

Definition at line 91 of file demoThread.h.

const unsigned char DemoThread::RGBLED2 = 1
staticprivate

Definition at line 92 of file demoThread.h.

const unsigned char DemoThread::RGBLED3 = 2
staticprivate

Definition at line 93 of file demoThread.h.

const unsigned char DemoThread::RGBLED4 = 3
staticprivate

Definition at line 94 of file demoThread.h.

const unsigned char DemoThread::RGBLED5 = 4
staticprivate

Definition at line 95 of file demoThread.h.

const unsigned char DemoThread::RGBLED6 = 5
staticprivate

Definition at line 96 of file demoThread.h.

volatile bool DemoThread::stopped
private

Definition at line 82 of file demoThread.h.

const unsigned long DemoThread::THREADSLEEPTIME = 200
staticprivate

Definition at line 88 of file demoThread.h.

const int DemoThread::timeToNetworkCheck = 3
staticprivate

Definition at line 85 of file demoThread.h.


The documentation for this class was generated from the following files: