SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
AccelerometerData Struct Reference

Structure representing accelerometer data. More...

#include <SensorDefs.hpp>

Public Member Functions

 AccelerometerData ()
 

Public Attributes

SensorVector mps2
 Acceleration in meters per second squared (m/s²)
 
RawVector raw
 Raw sensor values in LSB (least significant bits)
 
float temperature
 Temperature in degrees Celsius (if available)
 

Detailed Description

Structure representing accelerometer data.

Contains acceleration values in both raw format (LSB) and processed format (m/s²), as well as temperature if the sensor supports it.

Examples
/home/runner/work/SensorLib/SensorLib/src/sensor/accelerometer/bma/SensorBMA4XX.hpp.

Definition at line 333 of file SensorDefs.hpp.

Constructor & Destructor Documentation

◆ AccelerometerData()

AccelerometerData::AccelerometerData ( )
inline

Definition at line 338 of file SensorDefs.hpp.

Member Data Documentation

◆ mps2

◆ raw

RawVector AccelerometerData::raw

◆ temperature

float AccelerometerData::temperature

Temperature in degrees Celsius (if available)

Examples
/home/runner/work/SensorLib/SensorLib/src/sensor/accelerometer/bma/SensorBMA4XX.hpp.

Definition at line 336 of file SensorDefs.hpp.

Referenced by loop(), onDataReady(), SensorQMI8658::readAccel(), and SensorBMA4XX::readData().


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