StructuralHealth
StructuralHealth

Holds Structural Health Monitor channel information.

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.

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.