![]() |
AMS Advanced Air Mobility Sensors UG
|
The class implements a SW component that applies pressure offsets to barometer measurements. More...
Public Types | |
| enum class | ESensorId : uint8_t { ePressureInput1 = 0U , ePressureInput2 = 1U , ePressureInput3 = 2U } |
| Pressure sensor ID for compensator instances. More... | |
Public Member Functions | |
| void | Init () override |
| bool | IsInitialized () override |
| void | CompensateMeasurements () |
| Apply pressure offsets to barometer measurements. | |
| Public Member Functions inherited from CSoftwareComponent< CPressureCompensator, 3U > | |
| CSoftwareComponent (CSoftwareComponent &)=delete | |
| CSoftwareComponent & | operator= (const CSoftwareComponent &orOther)=delete |
Private Member Functions | |
| CPressureCompensator (CPressureCompensator &)=delete | |
| CPressureCompensator (CPressureCompensator &&)=delete | |
| CPressureCompensator & | operator= (const CPressureCompensator &orOther)=delete |
| CPressureCompensator & | operator= (CPressureCompensator &&orOther)=delete |
| CPressureCompensator (ESensorId eSensorId) | |
| Create a compensator for a specific pressure sensor. | |
| ~CPressureCompensator ()=default | |
| bool | readPressureDataPort (SBarometerMeasurement &orInput) const |
| Read pressure data from the input port. | |
| void | writePressureDataPort (const SBarometerMeasurement &orOutput) const |
| Write pressure data to the compensated output port. | |
Static Private Member Functions | |
| static CPressureCompensator & | getInstanceImpl (unsigned uInstanceIndex) |
| static constexpr uint32_t | toIndex (ESensorId eSensorId) |
| Convert sensor ID to a zero-based index. | |
Private Attributes | |
| const ESensorId | keSensorId_ |
| Pressure sensor ID assigned to this instance. | |
| bool | bIsInitialized_ { false } |
| True – SWC is initialized, false otherwise. | |
| float | fPressureOffsetPa_ { 0.0F } |
| Pressure offset in Pascals. | |
Friends | |
| class | CSoftwareComponent< CPressureCompensator, 3U > |
Additional Inherited Members | |
| Static Public Member Functions inherited from CSoftwareComponent< CPressureCompensator, 3U > | |
| static CPressureCompensator & | GetInstance (unsigned uInstanceIndex=0U) |
| Static Public Attributes inherited from CSoftwareComponent< CPressureCompensator, 3U > | |
| static constexpr unsigned | skuInstanceCount_ |
| Protected Member Functions inherited from CSoftwareComponent< CPressureCompensator, 3U > | |
| ~CSoftwareComponent ()=default | |
The class implements a SW component that applies pressure offsets to barometer measurements.
|
strong |
|
privatedelete |
|
privatedelete |
|
explicitprivate |
Create a compensator for a specific pressure sensor.
| eSensorId | Pressure sensor ID. |
|
privatedefault |
| void CPressureCompensator::CompensateMeasurements | ( | ) |
Apply pressure offsets to barometer measurements.
|
staticprivate |
|
overridevirtual |
Initialize the software component.
Implements CSoftwareComponent< CPressureCompensator, 3U >.
|
overridevirtual |
Get initialization status of the software component.
Implements CSoftwareComponent< CPressureCompensator, 3U >.
|
privatedelete |
|
privatedelete |
|
private |
Read pressure data from the input port.
| orInput | Pressure measurement read from the port. |
|
inlinestaticconstexprprivate |
Convert sensor ID to a zero-based index.
| eSensorId | Pressure sensor ID. |
|
private |
Write pressure data to the compensated output port.
| orOutput | Pressure measurement to write. |
|
friend |
|
private |
True – SWC is initialized, false otherwise.
|
private |
Pressure offset in Pascals.
|
private |
Pressure sensor ID assigned to this instance.