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

#include <AnalogIn.h>

Inheritance diagram for Empty::AnalogSource:
[legend]
Collaboration diagram for Empty::AnalogSource:
[legend]

Public Member Functions

 AnalogSource (float v)
 
float read_average ()
 
float read_latest ()
 
void set_pin (uint8_t p)
 
void set_stop_pin (uint8_t p)
 
void set_settle_time (uint16_t settle_time_ms)
 
float voltage_average ()
 
float voltage_latest ()
 
float voltage_average_ratiometric ()
 

Private Attributes

float _v
 

Detailed Description

Definition at line 5 of file AnalogIn.h.

Constructor & Destructor Documentation

◆ AnalogSource()

AnalogSource::AnalogSource ( float  v)

Definition at line 5 of file AnalogIn.cpp.

Referenced by Empty::AnalogIn::channel().

Here is the caller graph for this function:

Member Function Documentation

◆ read_average()

float AnalogSource::read_average ( )
virtual

Implements AP_HAL::AnalogSource.

Definition at line 9 of file AnalogIn.cpp.

◆ read_latest()

float AnalogSource::read_latest ( )
virtual

Implements AP_HAL::AnalogSource.

Definition at line 21 of file AnalogIn.cpp.

◆ set_pin()

void AnalogSource::set_pin ( uint8_t  p)
virtual

Implements AP_HAL::AnalogSource.

Definition at line 25 of file AnalogIn.cpp.

◆ set_settle_time()

void AnalogSource::set_settle_time ( uint16_t  settle_time_ms)
virtual

Implements AP_HAL::AnalogSource.

Definition at line 31 of file AnalogIn.cpp.

◆ set_stop_pin()

void AnalogSource::set_stop_pin ( uint8_t  p)
virtual

Implements AP_HAL::AnalogSource.

Definition at line 28 of file AnalogIn.cpp.

◆ voltage_average()

float AnalogSource::voltage_average ( void  )
virtual

Implements AP_HAL::AnalogSource.

Definition at line 13 of file AnalogIn.cpp.

Referenced by voltage_average_ratiometric().

Here is the caller graph for this function:

◆ voltage_average_ratiometric()

float Empty::AnalogSource::voltage_average_ratiometric ( void  )
inlinevirtual

Implements AP_HAL::AnalogSource.

Definition at line 15 of file AnalogIn.h.

Here is the call graph for this function:

◆ voltage_latest()

float AnalogSource::voltage_latest ( void  )
virtual

Implements AP_HAL::AnalogSource.

Definition at line 17 of file AnalogIn.cpp.

Member Data Documentation

◆ _v

float Empty::AnalogSource::_v
private

Definition at line 17 of file AnalogIn.h.

Referenced by read_average(), read_latest(), voltage_average(), and voltage_latest().


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