Skyward boardcore
Loading...
Searching...
No Matches
Boardcore::ADA Class Reference

#include <ADA.h>

Public Types

using KalmanFilter = Kalman< float, 3, 1 >
 

Public Member Functions

 ADA (const KalmanFilter::KalmanConfig &kalmanConfig)
 
void update (const float pressure)
 Update the Kalman filter.
 
void update ()
 Update the Kalman filter, skipping the correct step.
 
ADAState getState ()
 
void setReferenceValues (const ReferenceValues &reference)
 Changes the reference values.
 
void setKalmanConfig (const KalmanFilter::KalmanConfig &config)
 Changes the kalman filter configuration.
 
ReferenceValues getReferenceValues ()
 Returns the current reference values.
 

Detailed Description

Definition at line 33 of file ADA.h.

Member Typedef Documentation

◆ KalmanFilter

using Boardcore::ADA::KalmanFilter = Kalman<float, 3, 1>

Definition at line 36 of file ADA.h.

Constructor & Destructor Documentation

◆ ADA()

Boardcore::ADA::ADA ( const KalmanFilter::KalmanConfig &  kalmanConfig)
explicit

Definition at line 31 of file ADA.cpp.

Member Function Documentation

◆ getReferenceValues()

ReferenceValues Boardcore::ADA::getReferenceValues ( )

Returns the current reference values.

Definition at line 68 of file ADA.cpp.

◆ getState()

ADAState Boardcore::ADA::getState ( )
Parameters
stateADA state with altitude and Kalman parameters.

Definition at line 56 of file ADA.cpp.

◆ setKalmanConfig()

void Boardcore::ADA::setKalmanConfig ( const KalmanFilter::KalmanConfig &  config)

Changes the kalman filter configuration.

Definition at line 63 of file ADA.cpp.

◆ setReferenceValues()

void Boardcore::ADA::setReferenceValues ( const ReferenceValues reference)

Changes the reference values.

Definition at line 58 of file ADA.cpp.

◆ update() [1/2]

void Boardcore::ADA::update ( )

Update the Kalman filter, skipping the correct step.

Definition at line 47 of file ADA.cpp.

◆ update() [2/2]

void Boardcore::ADA::update ( const float  pressure)

Update the Kalman filter.

Parameters
pressureMeasured pressure [Pa].

Definition at line 37 of file ADA.cpp.


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