![]() |
AMS Advanced Air Mobility Sensors UG
|
Public Member Functions | |
| void | Init () override |
| bool | IsInitialized () override |
| void | SetImuInput () |
| A wrapper around CBahrs::SetInput(). Has mutex protection. | |
| void | SetPressureInput () |
| A wrapper around CBahrs::SetInput(). Has mutex protection. | |
| void | Step (uint64_t uTimestampUs) |
| A wrapper arounf CBahrs::Step(). | |
Public Member Functions inherited from CSoftwareComponent< CBahrsFilterSwc, 3U > | |
| 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 Types | |
| typedef StaticSemaphore_t | osStaticMutexDef_t |
Private Member Functions | |
| CBahrsFilterSwc (CBahrsFilterSwc &)=delete | |
| CBahrsFilterSwc (CBahrsFilterSwc &&)=delete | |
| CBahrsFilterSwc & | operator= (const CBahrsFilterSwc &orOther)=delete |
| CBahrsFilterSwc & | operator= (CBahrsFilterSwc &&orOther)=delete |
| CBahrsFilterSwc (uint32_t uInstanceIndex) | |
| The constructor creates a mutex for shared BAHRS filter data. | |
| ~CBahrsFilterSwc ()=default | |
| bool | readImuDataPort (SImuMeasurement &orImuData, NFusionLibCommon::ESensorId &erSensorId) const |
| Read IMU data from input port. Selects input port based on SWC instance index. | |
| bool | readPressureDataPort (SBarometerMeasurement &orPressureData, NFusionLibCommon::ESensorId &erSensorId) const |
| Read pressure data from input port. Selects input port based on SWC instance index. | |
| void | writeOutputToPort (const CBahrsFilterOutput &korFilterOutput) const |
| Write BAHRS filter output to RTE port. Selects output port based on SWC instance index. | |
Static Private Member Functions | |
| static CBahrsFilterSwc & | getInstanceImpl (unsigned uInstanceIndex) |
Private Attributes | |
| const uint32_t | kuInstanceIndex_ |
| Index of the component instance. | |
| osMutexId_t | pMutexHandle_ |
| Mutex handle. | |
| osStaticMutexDef_t | sMutexControlBlock_ |
| Memory reserved for the mutex control block. | |
| const osMutexAttr_t | sMutexAttributes_ { NULL, 0, &sMutexControlBlock_, sizeof(sMutexControlBlock_) } |
| A structure with mutex attributes required for creation. | |
Friends | |
| class | CSoftwareComponent< CBahrsFilterSwc, 3U > |
Additional Inherited Members | |
Static Public Member Functions inherited from CSoftwareComponent< CBahrsFilterSwc, 3U > | |
| static CBahrsFilterSwc & | GetInstance (unsigned uInstanceIndex=0U) |
Static Public Attributes inherited from CSoftwareComponent< CBahrsFilterSwc, 3U > | |
| static constexpr unsigned | skuInstanceCount_ |
Protected Member Functions inherited from CSoftwareComponent< CBahrsFilterSwc, 3U > | |
| CSoftwareComponent ()=default | |
| ~CSoftwareComponent ()=default | |
|
private |
The typedef copied from a CMSIS_OS header.
|
privatedelete |
|
privatedelete |
|
private |
The constructor creates a mutex for shared BAHRS filter data.
| uInstanceIndex | Instance index of the software component. |
|
privatedefault |
|
staticprivate |
|
overridevirtual |
Initialize the software component.
Implements CSoftwareComponent< CBahrsFilterSwc, 3U >.
|
overridevirtual |
Get initialization status of the software component.
Implements CSoftwareComponent< CBahrsFilterSwc, 3U >.
|
privatedelete |
|
privatedelete |
|
private |
Read IMU data from input port. Selects input port based on SWC instance index.
| orImuData | Reference to IMU data object to be populated. |
| erSensorId | ID of the sensor used as input source. |
|
private |
Read pressure data from input port. Selects input port based on SWC instance index.
| orPressureData | Reference to pressure data object to be populated. |
| erSensorId | ID of the sensor used as input source. |
| void CBahrsFilterSwc::SetImuInput | ( | ) |
A wrapper around CBahrs::SetInput(). Has mutex protection.
| void CBahrsFilterSwc::SetPressureInput | ( | ) |
A wrapper around CBahrs::SetInput(). Has mutex protection.
| void CBahrsFilterSwc::Step | ( | uint64_t | uTimestampUs | ) |
A wrapper arounf CBahrs::Step().
| uTimestampUs | Time of the API call in microseconds. |
|
private |
Write BAHRS filter output to RTE port. Selects output port based on SWC instance index.
| korFilterOutput | Filter output data to write. |
|
friend |
|
private |
Index of the component instance.
|
private |
Mutex handle.
|
private |
A structure with mutex attributes required for creation.
|
private |
Memory reserved for the mutex control block.