StructuralHealth
StructuralHealth

Holds Structural Health Monitor channel information.

Functions
StructuralHealth
StructuralHealth(
float angle,
uint32 uptime,
float damage,
const SampleRate &processingRate,
const Histogram &histogram
)

Creates a StructuralHealth object.

Parameters
angle
float

The actual angle that is being measured.

uptime
uint32

The uptime counter of how long the device has been running.

damage
float

The percent of damage that has occurred. (0% = no damage, 100% = dead)

processingRate
const SampleRate&

The processing rate used in calculating the Histogram.

histogram
const Histogram&

The Histogram that was calculated for the given angle.

Variables
m_angle
float m_angle

The actual angle that is being measured.

m_uptime
uint32 m_uptime

The uptime counter of how long the device has been running.

m_damage
float m_damage

The percent of damage that has occurred. (0% = no damage, 100% = dead)

m_processingRate
SampleRate m_processingRate

The processing rate that the sensors were sampled at to calculate the histogram.

m_histogram
Histogram m_histogram

The Histogram that was calculated for the given angle.

Functions
angle
float angle() const

Gets the actual angle that is being measured.

Returns

The actual angle that is being measured.

uptime
uint32 uptime() const

Gets the uptime counter of how long the device has been running.

Returns

The uptime counter of how long the device has been running.

damage
float damage() const

Gets the percent of damage that has occurred. (0% = no damage, 100% = dead)

Returns

The percent of damage that has occured. (0% = no damage, 100% = dead)

processingRate
const SampleRate& processingRate() const

Gets the processing rate that the sensors were sampled at to calculate the histogram.

Returns

The processing rate as a SampleRate.

histogram
const Histogram& histogram() const

Gets the Histogram that was calculated for the given angle.

Returns

The Histogram that was calculated for the given angle.