RumPi Linux Client 1.0
A wxWidgets desktop dashboard that visualizes a RumPi robot's live sensor data as a condition-reactive scene
RumPiManagerThread Class Reference

Background wxThread that runs the RumPi library's sensor loop and posts refreshed component data (and the curated dashboard snapshot) to the UI thread via wxEVT_RUMPI_UPDATE events. More...

#include <RumPiManagerThread.h>

Inheritance diagram for RumPiManagerThread:
[legend]
Collaboration diagram for RumPiManagerThread:
[legend]

Public Member Functions

 RumPiManagerThread (wxEvtHandler *handler)
 Builds the manager thread (joinable) and stores the UI handler. More...
 
virtual ~RumPiManagerThread ()
 Destroys the thread, waiting for it to finish first. More...
 
virtual wxThread::ExitCode Entry () override
 Thread body: starts the library, then loops on a fast tick (~100ms) fast-sampling the wind/motion/light sensors every tick, and on a slower wall-clock cadence (~2s) refreshes all components and posts their data plus the dashboard snapshot to the UI, until the thread is asked to exit. More...
 

Protected Attributes

wxEvtHandler * myWxEventHandler
 The UI event handler that receives component-update events. More...
 

Detailed Description

Background wxThread that runs the RumPi library's sensor loop and posts refreshed component data (and the curated dashboard snapshot) to the UI thread via wxEVT_RUMPI_UPDATE events.

Author
Eddie O'Hagan
Date
8/13/2026

Constructor & Destructor Documentation

◆ RumPiManagerThread()

RumPiManagerThread::RumPiManagerThread ( wxEvtHandler *  handler)

Builds the manager thread (joinable) and stores the UI handler.

The RumPi library is initialized later, on the worker thread at the top of Entry() (not here), so every library call happens on the one worker thread.

Author
Eddie O'Hagan
Date
8/13/2026
thread->Run();
Background wxThread that runs the RumPi library's sensor loop and posts refreshed component data (and...
Definition: RumPiManagerThread.h:16
RumPiManagerThread(wxEvtHandler *handler)
Builds the manager thread (joinable) and stores the UI handler.
Definition: RumPiManagerThread.cpp:24
Parameters
[in]handlerThe UI event handler to post component updates to.

◆ ~RumPiManagerThread()

RumPiManagerThread::~RumPiManagerThread ( )
virtual

Destroys the thread, waiting for it to finish first.

Author
Eddie O'Hagan
Date
8/13/2026
delete thread;

Member Function Documentation

◆ Entry()

wxThread::ExitCode RumPiManagerThread::Entry ( )
overridevirtual

Thread body: starts the library, then loops on a fast tick (~100ms) fast-sampling the wind/motion/light sensors every tick, and on a slower wall-clock cadence (~2s) refreshes all components and posts their data plus the dashboard snapshot to the UI, until the thread is asked to exit.

Author
Eddie O'Hagan
Date
8/13/2026
//Run by wxWidgets when the thread starts.
Returns
The thread's exit code (always 0).

Member Data Documentation

◆ myWxEventHandler

wxEvtHandler* RumPiManagerThread::myWxEventHandler
protected

The UI event handler that receives component-update events.


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