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

Gets values from sensors and plots them in (emits them to) the GUI. More...

#include <plotThread.h>

Collaboration diagram for PlotThread:

List of all members.

Signals

void plotDataComplete1 (double *xval1, double *yval1, int size)
void plotDataComplete2 (double *xval2, double *yval2, int size)
void plotDataComplete3 (double *xval3, double *yval3, int size)
void plotDataComplete4 (double *xval4, double *yval4, int size)
void plotDataComplete5 (double *xval4, double *yval4, int size)
void plotDataComplete6 (double *xval4, double *yval4, int size)
void plotDataCompleteHeartbeat (double *xval4, double *yval4, int size)

Public Member Functions

 PlotThread (SensorThread *s)
virtual void run ()
void stop ()
 ~PlotThread ()

Private Attributes

SensorThreadsensThread
volatile bool stopped
double xval1 [SIZE]
double xval2 [SIZE]
double xval3 [SIZE]
double xval4 [SIZE]
double xval5 [SIZE]
double xval6 [SIZE]
double xvalHeartbeat [SIZE]
double yval1 [SIZE]
double yval2 [SIZE]
double yval3 [SIZE]
double yval4 [SIZE]
double yval5 [SIZE]
double yval6 [SIZE]
double yvalHeartbeat [SIZE]

Static Private Attributes

static const short int MOTORSENSOR1 = 0
static const short int MOTORSENSOR2 = 1
static const short int MOTORSENSOR3 = 2
static const short int MOTORSENSOR4 = 3
static const int SIZE = 60
static const unsigned long THREADSLEEPTIME = 500
static const short int VOLTAGESENSOR1 = 0
static const short int VOLTAGESENSOR2 = 1

Detailed Description

Gets values from sensors and plots them in (emits them to) the GUI.

Author:
Markus Knapp This class gets current values from the motor sensors and emits them to the GUI, which plots them using qwtplot.

Definition at line 44 of file plotThread.h.


Constructor & Destructor Documentation

PlotThread::PlotThread ( SensorThread s)

Definition at line 23 of file plotThread.cpp.

PlotThread::~PlotThread ( )

Definition at line 54 of file plotThread.cpp.


Member Function Documentation

void PlotThread::plotDataComplete1 ( double *  xval1,
double *  yval1,
int  size 
)
signal

Here is the caller graph for this function:

void PlotThread::plotDataComplete2 ( double *  xval2,
double *  yval2,
int  size 
)
signal

Here is the caller graph for this function:

void PlotThread::plotDataComplete3 ( double *  xval3,
double *  yval3,
int  size 
)
signal

Here is the caller graph for this function:

void PlotThread::plotDataComplete4 ( double *  xval4,
double *  yval4,
int  size 
)
signal

Here is the caller graph for this function:

void PlotThread::plotDataComplete5 ( double *  xval4,
double *  yval4,
int  size 
)
signal

Here is the caller graph for this function:

void PlotThread::plotDataComplete6 ( double *  xval4,
double *  yval4,
int  size 
)
signal

Here is the caller graph for this function:

void PlotThread::plotDataCompleteHeartbeat ( double *  xval4,
double *  yval4,
int  size 
)
signal

Here is the caller graph for this function:

void PlotThread::run ( )
virtual

Definition at line 65 of file plotThread.cpp.

Here is the call graph for this function:

void PlotThread::stop ( )

Definition at line 59 of file plotThread.cpp.

Here is the caller graph for this function:


Member Data Documentation

const short int PlotThread::MOTORSENSOR1 = 0
staticprivate

Definition at line 98 of file plotThread.h.

const short int PlotThread::MOTORSENSOR2 = 1
staticprivate

Definition at line 99 of file plotThread.h.

const short int PlotThread::MOTORSENSOR3 = 2
staticprivate

Definition at line 100 of file plotThread.h.

const short int PlotThread::MOTORSENSOR4 = 3
staticprivate

Definition at line 101 of file plotThread.h.

SensorThread* PlotThread::sensThread
private

Definition at line 66 of file plotThread.h.

const int PlotThread::SIZE = 60
staticprivate

Definition at line 75 of file plotThread.h.

volatile bool PlotThread::stopped
private

Definition at line 67 of file plotThread.h.

const unsigned long PlotThread::THREADSLEEPTIME = 500
staticprivate

Definition at line 71 of file plotThread.h.

const short int PlotThread::VOLTAGESENSOR1 = 0
staticprivate

Definition at line 103 of file plotThread.h.

const short int PlotThread::VOLTAGESENSOR2 = 1
staticprivate

Definition at line 104 of file plotThread.h.

double PlotThread::xval1[SIZE]
private

Definition at line 76 of file plotThread.h.

double PlotThread::xval2[SIZE]
private

Definition at line 79 of file plotThread.h.

double PlotThread::xval3[SIZE]
private

Definition at line 82 of file plotThread.h.

double PlotThread::xval4[SIZE]
private

Definition at line 85 of file plotThread.h.

double PlotThread::xval5[SIZE]
private

Definition at line 88 of file plotThread.h.

double PlotThread::xval6[SIZE]
private

Definition at line 91 of file plotThread.h.

double PlotThread::xvalHeartbeat[SIZE]
private

Definition at line 94 of file plotThread.h.

double PlotThread::yval1[SIZE]
private

Definition at line 77 of file plotThread.h.

double PlotThread::yval2[SIZE]
private

Definition at line 80 of file plotThread.h.

double PlotThread::yval3[SIZE]
private

Definition at line 83 of file plotThread.h.

double PlotThread::yval4[SIZE]
private

Definition at line 86 of file plotThread.h.

double PlotThread::yval5[SIZE]
private

Definition at line 89 of file plotThread.h.

double PlotThread::yval6[SIZE]
private

Definition at line 92 of file plotThread.h.

double PlotThread::yvalHeartbeat[SIZE]
private

Definition at line 95 of file plotThread.h.


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