![]() |
AMS Advanced Air Mobility Sensors UG
|
Public Member Functions | |
| void | Init () override |
| bool | IsInitialized () override |
| void | Run () |
| Run attitude monitor. | |
Public Member Functions inherited from CSoftwareComponent< CAttitudeMonitorSwc, 1U > | |
| CSoftwareComponent (CSoftwareComponent &)=delete | |
| CSoftwareComponent (CSoftwareComponent &&)=delete | |
| CSoftwareComponent & | operator= (const CSoftwareComponent &orOther)=delete |
| CSoftwareComponent & | operator= (CSoftwareComponent &&orOther)=delete |
| virtual void | Init ()=0 |
| virtual bool | IsInitialized ()=0 |
Private Member Functions | |
| CAttitudeMonitorSwc (CAttitudeMonitorSwc &)=delete | |
| CAttitudeMonitorSwc (CAttitudeMonitorSwc &&)=delete | |
| CAttitudeMonitorSwc & | operator= (const CAttitudeMonitorSwc &orOther)=delete |
| CAttitudeMonitorSwc & | operator= (CAttitudeMonitorSwc &&orOther)=delete |
| CAttitudeMonitorSwc ()=default | |
| ~CAttitudeMonitorSwc ()=default | |
Static Private Member Functions | |
| static CAttitudeMonitorSwc & | getInstanceImpl (unsigned uInstanceIndex) |
| static bool | isAttitudeDataSafe (NFusionLibCommon::ESensorId eSensorId, const NAttitudeMonitorApi::COutputData &korMonitorOutput) |
| Check if attitude dataset from a specified source is safe. A dataset is safe if one of the following is fulfilled for both roll and pitch signals. | |
| static SSafeAttitudeData | convertAttitudeToSafeAttitude (const SAttitudeData &korAttitude, CSerialProtocol::ESignalHealthInfo eHealth) |
| A helper function for converting related types. If input attitude is marked invalid, then the function returns safe attitude with health status "unavailable". Otherwise the function copies data fields from the input attitude object to the output safe attitude object and sets the health status to provided value. | |
| static SSafeAttitudeData | computeUnsafeAttitudeOutput (const NAttitudeMonitorApi::COutputData &korMonitorOutput) |
| Construct attitude output when no safe data is available. The function will set health status to "integrity risk", assign large standard deviations for roll and pitch, and populate roll and pitch fields with any valid data from the monitor output struct. | |
| static void | populateRedundantInputDataObject (const SAttitudeData &korAttitudeData, NFusionLibCommon::ESensorId eSensorId, NAttitudeMonitorApi::CRedundantInputData &orRedundantInputData) |
| A helper function to populate redundant input data object. | |
Friends | |
| class | CSoftwareComponent< CAttitudeMonitorSwc, 1U > |
Additional Inherited Members | |
Static Public Member Functions inherited from CSoftwareComponent< CAttitudeMonitorSwc, 1U > | |
| static CAttitudeMonitorSwc & | GetInstance (unsigned uInstanceIndex=0U) |
Static Public Attributes inherited from CSoftwareComponent< CAttitudeMonitorSwc, 1U > | |
| static constexpr unsigned | skuInstanceCount_ |
Protected Member Functions inherited from CSoftwareComponent< CAttitudeMonitorSwc, 1U > | |
| CSoftwareComponent ()=default | |
| ~CSoftwareComponent ()=default | |
|
privatedelete |
|
privatedelete |
|
privatedefault |
|
privatedefault |
|
staticprivate |
Construct attitude output when no safe data is available. The function will set health status to "integrity risk", assign large standard deviations for roll and pitch, and populate roll and pitch fields with any valid data from the monitor output struct.
|
staticprivate |
A helper function for converting related types. If input attitude is marked invalid, then the function returns safe attitude with health status "unavailable". Otherwise the function copies data fields from the input attitude object to the output safe attitude object and sets the health status to provided value.
|
staticprivate |
|
overridevirtual |
Initialize the software component.
Implements CSoftwareComponent< CAttitudeMonitorSwc, 1U >.
|
staticprivate |
Check if attitude dataset from a specified source is safe. A dataset is safe if one of the following is fulfilled for both roll and pitch signals.
The function asserts if the query sensor is not supported by the monitor (configuration issue).
| eSensorId | Query sensor ID. |
| korMonitorOutput | Result of fault detection and isolation. |
|
overridevirtual |
Get initialization status of the software component.
Implements CSoftwareComponent< CAttitudeMonitorSwc, 1U >.
|
privatedelete |
|
privatedelete |
|
staticprivate |
A helper function to populate redundant input data object.
| korAttitudeData | Reference to an attitude data structure. |
| eSensorId | ID of the sensor that the measurement originates from. |
| orRedundantInputData | Reference to an object being populated. |
| void CAttitudeMonitorSwc::Run | ( | ) |
Run attitude monitor.
|
friend |