APM:Libraries
Public Member Functions | Public Attributes | Private Attributes | List of all members
Variometer Class Reference

#include <Variometer.h>

Collaboration diagram for Variometer:
[legend]

Public Member Functions

 Variometer (AP_AHRS &ahrs, const AP_Vehicle::FixedWing &parms)
 
void update (const float polar_K, const float polar_CD0, const float polar_B)
 
float correct_netto_rate (float climb_rate, float phi, float aspd, const float polar_K, const float polar_CD0, const float polar_B)
 

Public Attributes

float alt
 
float reading
 
float filtered_reading
 
float displayed_reading
 
bool new_data
 

Private Attributes

AP_AHRS_ahrs
 
const AP_Vehicle::FixedWing_aparm
 
unsigned long _prev_update_time
 
float _last_alt
 
float _aspd_filt
 
float _last_aspd
 
float _last_roll
 
float _last_total_E
 

Detailed Description

Definition at line 17 of file Variometer.h.

Constructor & Destructor Documentation

◆ Variometer()

Variometer::Variometer ( AP_AHRS ahrs,
const AP_Vehicle::FixedWing parms 
)

Definition at line 7 of file Variometer.cpp.

Member Function Documentation

◆ correct_netto_rate()

float Variometer::correct_netto_rate ( float  climb_rate,
float  phi,
float  aspd,
const float  polar_K,
const float  polar_CD0,
const float  polar_B 
)

Definition at line 53 of file Variometer.cpp.

Referenced by update().

Here is the caller graph for this function:

◆ update()

void Variometer::update ( const float  polar_K,
const float  polar_CD0,
const float  polar_B 
)

Definition at line 14 of file Variometer.cpp.

Referenced by SoaringController::update_vario().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _ahrs

AP_AHRS& Variometer::_ahrs
private

Definition at line 19 of file Variometer.h.

Referenced by update().

◆ _aparm

const AP_Vehicle::FixedWing& Variometer::_aparm
private

Definition at line 20 of file Variometer.h.

Referenced by update().

◆ _aspd_filt

float Variometer::_aspd_filt
private

Definition at line 27 of file Variometer.h.

Referenced by update().

◆ _last_alt

float Variometer::_last_alt
private

Definition at line 25 of file Variometer.h.

Referenced by update().

◆ _last_aspd

float Variometer::_last_aspd
private

Definition at line 28 of file Variometer.h.

Referenced by update().

◆ _last_roll

float Variometer::_last_roll
private

Definition at line 29 of file Variometer.h.

Referenced by update().

◆ _last_total_E

float Variometer::_last_total_E
private

Definition at line 30 of file Variometer.h.

Referenced by update().

◆ _prev_update_time

unsigned long Variometer::_prev_update_time
private

Definition at line 23 of file Variometer.h.

Referenced by update().

◆ alt

float Variometer::alt

◆ displayed_reading

float Variometer::displayed_reading

Definition at line 37 of file Variometer.h.

Referenced by SoaringController::get_vario_reading(), and update().

◆ filtered_reading

float Variometer::filtered_reading

◆ new_data

bool Variometer::new_data

Definition at line 38 of file Variometer.h.

Referenced by update(), and SoaringController::update_thermalling().

◆ reading

float Variometer::reading

Definition at line 35 of file Variometer.h.

Referenced by update(), and SoaringController::update_thermalling().


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