Classes | Public Member Functions | Private Attributes
bma180_calibrate Class Reference

A Class to estimate the sensor biases. More...

#include <bma180_calibrate.h>

List of all members.

Classes

struct  OneCalibDataSet
struct  SensID

Public Member Functions

bool biasverify ()
 bma180_calibrate ()
 Constructor resets calibration status.
bool calibsens_completed ()
 Verifies if calibration has been completed.
bool calibsens_set ()
 Verifies if a calibration sensor ID has been set.
void clearcalibsens ()
 Clears any previously gathered calibration data.
bool get_estbiases (double *, double *, double *)
 Retrieves estimated sensor biases.
bool get_verifiedbiases (double *, double *, double *)
void setcalibsens (struct OneBma180Meas)
 Sets the sensor ID to be calibrated.
bool setdata_bma180 (struct OneBma180Meas)
 Sets data to be used for calibrating the sensor.
bool verification_active ()
 Verifies if the calibration verification has been activated.
bool verification_completed ()
 Verifies if calibration verification has been completed.
 ~bma180_calibrate ()
 Destructor.

Private Attributes

bool bVerification_activated
OneCalibDataSet CalibSensor [2]
short int iActiveDataIndex

Detailed Description

A Class to estimate the sensor biases.

The class handles the calibration of a sensor. It estimates the biases and subsequently performs a verification of the estimated biases

Definition at line 60 of file bma180_calibrate.h.


Constructor & Destructor Documentation

Constructor resets calibration status.

Resets sensor calibration ID to undefined and verification mode to inactive

Definition at line 50 of file bma180_calibrate.cpp.

Destructor.

Definition at line 61 of file bma180_calibrate.cpp.


Member Function Documentation

Definition at line 196 of file bma180_calibrate.cpp.

Verifies if calibration has been completed.

Returns:
Calibration complete true or false

Definition at line 162 of file bma180_calibrate.cpp.

Verifies if a calibration sensor ID has been set.

Returns:
sensor ID set true or false

Definition at line 170 of file bma180_calibrate.cpp.

Clears any previously gathered calibration data.

Resets any previously defined calibration data to neutral

Definition at line 152 of file bma180_calibrate.cpp.

bool bma180_calibrate::get_estbiases ( double *  dAccX,
double *  dAccY,
double *  dAccZ 
)

Retrieves estimated sensor biases.

Returns:
sensor ID set true or false

Definition at line 178 of file bma180_calibrate.cpp.

bool bma180_calibrate::get_verifiedbiases ( double *  dAccX,
double *  dAccY,
double *  dAccZ 
)

Definition at line 209 of file bma180_calibrate.cpp.

Sets the sensor ID to be calibrated.

Sets the sensor ID to be calibrated. Whenever calling this method any previously defined sensor will be cleared and the calibration status will be reset

Parameters:
OneMeascontains the ID of the sensor to be calibrated

Definition at line 141 of file bma180_calibrate.cpp.

Sets data to be used for calibrating the sensor.

Verifies if the received data set is from the sensor to be calibrated. If this is given, the data is run through the calibration filter.

Parameters:
OneMeascontains one measurement from a BMA180
Returns:
success when data was used for calibration

Definition at line 64 of file bma180_calibrate.cpp.

Verifies if the calibration verification has been activated.

Verification can only be activated upon successful completion of calibration

Returns:
Verification active true or false

Definition at line 174 of file bma180_calibrate.cpp.

Verifies if calibration verification has been completed.

Returns:
Verification calibration complete true or false

Definition at line 166 of file bma180_calibrate.cpp.


Member Data Documentation

Definition at line 152 of file bma180_calibrate.h.

Definition at line 150 of file bma180_calibrate.h.

Definition at line 151 of file bma180_calibrate.h.


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


bma180
Author(s): Lukas Marti, Nikhil Deshpande, Philip Roan (Maintained by Philip Roan)
autogenerated on Sat Dec 28 2013 16:50:12