MAV'RIC
Public Member Functions
Airspeed_analog Class Reference

List of all members.

Public Member Functions

 Airspeed_analog (Adc &adc, airspeed_analog_conf_t config=airspeed_analog_default_config())
 Constructor.
void start_calibration (void)
 Calibrates the airspeed sensor offset at 0 speed. It will continue calibrating until it is asked to stop.
void stop_calibration (void)
 Stop the calibration procedure and keep the last offset.
bool update (void)
 Updates the values in the airspeed structure.
const float & get_airspeed () const
 Gets the current estimated airspeed.
const float & get_last_airspeed () const
 Gets the previous estimated airspeed.

Constructor & Destructor Documentation

Airspeed_analog::Airspeed_analog ( Adc adc,
airspeed_analog_conf_t  config = airspeed_analog_default_config() 
)

Constructor.

Parameters:
adcReference to analog to digital converter
configConfiguration

Here is the call graph for this function:


Member Function Documentation

const float & Airspeed_analog::get_airspeed ( ) const

Gets the current estimated airspeed.

Returns:
The current estimated airspeed

Here is the caller graph for this function:

const float & Airspeed_analog::get_last_airspeed ( ) const

Gets the previous estimated airspeed.

Returns:
The previous estimated airspeed

Here is the caller graph for this function:

Calibrates the airspeed sensor offset at 0 speed. It will continue calibrating until it is asked to stop.

Parameters:
airspeed_analogpointer to the structure containing the airspeed sensor's data

Here is the caller graph for this function:

Stop the calibration procedure and keep the last offset.

Parameters:
airspeed_analogpointer to the structure containing the airspeed sensor's data
bool Airspeed_analog::update ( void  )

Updates the values in the airspeed structure.

Parameters:
airspeed_analogpointer to the structure containing the airspeed sensor's data
Returns:
The result of the task execution

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines