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) |
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 |
( |
| ) |
|
DemoThread::~DemoThread |
( |
| ) |
|
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:
-
text | is the message to be emitted |
CR | is true when a CR/LF should be added at the end of the line (default) |
sayIt | is true when the text for the log also should be spoken (default=false) |
addTimestamp | If true, the a timestamp is added in front of the text. This parameter is optional. |
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.
void DemoThread::stop |
( |
| ) |
|
Member Data Documentation
bool DemoThread::demoMode |
|
private |
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 |
const unsigned char DemoThread::RGBLED3 = 2 |
|
staticprivate |
const unsigned char DemoThread::RGBLED4 = 3 |
|
staticprivate |
const unsigned char DemoThread::RGBLED5 = 4 |
|
staticprivate |
const unsigned char DemoThread::RGBLED6 = 5 |
|
staticprivate |
volatile bool DemoThread::stopped |
|
private |
const unsigned long DemoThread::THREADSLEEPTIME = 200 |
|
staticprivate |
const int DemoThread::timeToNetworkCheck = 3 |
|
staticprivate |
The documentation for this class was generated from the following files: