AMS Advanced Air Mobility Sensors UG
Loading...
Searching...
No Matches
CBaroMonitorSwc Class Reference
Inheritance diagram for CBaroMonitorSwc:
CSoftwareComponent< CBaroMonitorSwc, 1U >

Public Member Functions

void Init () override
 
bool IsInitialized () override
 
void Run ()
 Run barometer monitor.
 
- Public Member Functions inherited from CSoftwareComponent< CBaroMonitorSwc, 1U >
 CSoftwareComponent (CSoftwareComponent &)=delete
 
 CSoftwareComponent (CSoftwareComponent &&)=delete
 
CSoftwareComponentoperator= (const CSoftwareComponent &orOther)=delete
 
CSoftwareComponentoperator= (CSoftwareComponent &&orOther)=delete
 
virtual void Init ()=0
 
virtual bool IsInitialized ()=0
 

Private Member Functions

 CBaroMonitorSwc (CBaroMonitorSwc &)=delete
 
 CBaroMonitorSwc (CBaroMonitorSwc &&)=delete
 
CBaroMonitorSwcoperator= (const CBaroMonitorSwc &orOther)=delete
 
CBaroMonitorSwcoperator= (CBaroMonitorSwc &&orOther)=delete
 
 CBaroMonitorSwc ()=default
 
 ~CBaroMonitorSwc ()=default
 

Static Private Member Functions

static CBaroMonitorSwcgetInstanceImpl (unsigned uInstanceIndex)
 
static bool isPressureMeasurementSafe (NFusionLibCommon::ESensorId eSensorId, const NBaroMonitorApi::COutputData &korMonitorOutput)
 Check if pressure signal from a specified sensor is safe. A signal is safe if one of the following is fulfilled.
 
static void populateRedundantPressureDataObject (const SBarometerMeasurement &korPressureData, NFusionLibCommon::ESensorId eSensorId, CRedundantPressureData &orRedundantPressureData)
 A helper function to populate redundant input data object.
 

Friends

class CSoftwareComponent< CBaroMonitorSwc, 1U >
 

Additional Inherited Members

- Static Public Member Functions inherited from CSoftwareComponent< CBaroMonitorSwc, 1U >
static CBaroMonitorSwcGetInstance (unsigned uInstanceIndex=0U)
 
- Static Public Attributes inherited from CSoftwareComponent< CBaroMonitorSwc, 1U >
static constexpr unsigned skuInstanceCount_
 
- Protected Member Functions inherited from CSoftwareComponent< CBaroMonitorSwc, 1U >
 CSoftwareComponent ()=default
 
 ~CSoftwareComponent ()=default
 

Constructor & Destructor Documentation

◆ CBaroMonitorSwc() [1/3]

CBaroMonitorSwc::CBaroMonitorSwc ( CBaroMonitorSwc )
privatedelete

◆ CBaroMonitorSwc() [2/3]

CBaroMonitorSwc::CBaroMonitorSwc ( CBaroMonitorSwc &&  )
privatedelete

◆ CBaroMonitorSwc() [3/3]

CBaroMonitorSwc::CBaroMonitorSwc ( )
privatedefault

◆ ~CBaroMonitorSwc()

CBaroMonitorSwc::~CBaroMonitorSwc ( )
privatedefault

Member Function Documentation

◆ getInstanceImpl()

CBaroMonitorSwc & CBaroMonitorSwc::getInstanceImpl ( unsigned  uInstanceIndex)
staticprivate

◆ Init()

void CBaroMonitorSwc::Init ( )
overridevirtual

Initialize the software component.

Implements CSoftwareComponent< CBaroMonitorSwc, 1U >.

◆ IsInitialized()

bool CBaroMonitorSwc::IsInitialized ( )
overridevirtual

Get initialization status of the software component.

Returns
True – the component is initialized, false otherwise.

Implements CSoftwareComponent< CBaroMonitorSwc, 1U >.

◆ isPressureMeasurementSafe()

bool CBaroMonitorSwc::isPressureMeasurementSafe ( NFusionLibCommon::ESensorId  eSensorId,
const NBaroMonitorApi::COutputData korMonitorOutput 
)
staticprivate

Check if pressure signal from a specified sensor is safe. A signal is safe if one of the following is fulfilled.

  1. Fault detection is available AND the monitor did not raise an alarm
  2. An alarm was raised, fault isolation is available AND succeeded, the query sensor is NOT faulty.

The function asserts if the query sensor is not supported by the monitor (configuration issue).

Parameters
eSensorIdQuery sensor ID.
korMonitorOutputResult of fault detection and isolation.
Returns
True if the measurement is safe, false otherwise.

◆ operator=() [1/2]

CBaroMonitorSwc & CBaroMonitorSwc::operator= ( CBaroMonitorSwc &&  orOther)
privatedelete

◆ operator=() [2/2]

CBaroMonitorSwc & CBaroMonitorSwc::operator= ( const CBaroMonitorSwc orOther)
privatedelete

◆ populateRedundantPressureDataObject()

void CBaroMonitorSwc::populateRedundantPressureDataObject ( const SBarometerMeasurement korPressureData,
NFusionLibCommon::ESensorId  eSensorId,
CRedundantPressureData &  orRedundantPressureData 
)
staticprivate

A helper function to populate redundant input data object.

Parameters
korPressureDataReference to a barometer measurement.
eSensorIdID of the sensor that the measurement originates from.
orRedundantPressureDataReference to an object being populated.

◆ Run()

void CBaroMonitorSwc::Run ( )

Run barometer monitor.

Friends And Related Function Documentation

◆ CSoftwareComponent< CBaroMonitorSwc, 1U >

friend class CSoftwareComponent< CBaroMonitorSwc, 1U >
friend

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