sensorfw
CalibrationHandler Class Reference

Helper class for maintaining magnetometer calibration. More...

#include <calibrationhandler.h>

Inheritance diagram for CalibrationHandler:

Public Slots

void sampleReceived (const MagneticField &)
 Callback when new sample is received from magnetometer. More...
 
void stopCalibration ()
 Stop calibration. More...
 
void resumeCalibration ()
 Resume calibration. More...
 

Public Member Functions

 CalibrationHandler (QObject *parent=0)
 Constructor. More...
 
 ~CalibrationHandler ()
 Destructor. More...
 
bool initiateSession ()
 Initialize object and start background calibration. More...
 

Detailed Description

Helper class for maintaining magnetometer calibration.

Keeps a session open to magnetometer with low frequency to maintain calibration.

Definition at line 42 of file calibrationhandler.h.

Constructor & Destructor Documentation

◆ CalibrationHandler()

CalibrationHandler::CalibrationHandler ( QObject *  parent = 0)

Constructor.

Parameters
parentParent QObject.

◆ ~CalibrationHandler()

CalibrationHandler::~CalibrationHandler ( )

Destructor.

Member Function Documentation

◆ initiateSession()

bool CalibrationHandler::initiateSession ( )

Initialize object and start background calibration.

Returns
true on success.

◆ resumeCalibration

void CalibrationHandler::resumeCalibration ( )
slot

Resume calibration.

◆ sampleReceived

void CalibrationHandler::sampleReceived ( const MagneticField )
slot

Callback when new sample is received from magnetometer.

◆ stopCalibration

void CalibrationHandler::stopCalibration ( )
slot

Stop calibration.


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