APM:Libraries
libraries
AP_HAL_Empty
AnalogIn.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
AP_HAL_Empty.h
"
4
5
class
Empty::AnalogSource
:
public
AP_HAL::AnalogSource
{
6
public
:
7
AnalogSource
(
float
v
);
8
float
read_average
();
9
float
read_latest
();
10
void
set_pin
(uint8_t p);
11
void
set_stop_pin
(uint8_t p);
12
void
set_settle_time
(uint16_t settle_time_ms);
13
float
voltage_average
();
14
float
voltage_latest
();
15
float
voltage_average_ratiometric
() {
return
voltage_average
(); }
16
private
:
17
float
_v
;
18
};
19
20
class
Empty::AnalogIn
:
public
AP_HAL::AnalogIn
{
21
public
:
22
AnalogIn
();
23
void
init
();
24
AP_HAL::AnalogSource
* channel(int16_t n);
25
float
board_voltage(
void
);
26
};
Empty::AnalogIn
Definition:
AnalogIn.h:20
Empty::AnalogSource::set_stop_pin
void set_stop_pin(uint8_t p)
Definition:
AnalogIn.cpp:28
Empty::AnalogSource::AnalogSource
AnalogSource(float v)
Definition:
AnalogIn.cpp:5
Empty::AnalogSource::voltage_average_ratiometric
float voltage_average_ratiometric()
Definition:
AnalogIn.h:15
AP_HAL::AnalogIn
Definition:
AnalogIn.h:40
Empty::AnalogSource
Definition:
AnalogIn.h:5
Empty::AnalogSource::read_average
float read_average()
Definition:
AnalogIn.cpp:9
Empty::AnalogSource::read_latest
float read_latest()
Definition:
AnalogIn.cpp:21
Empty::AnalogSource::set_pin
void set_pin(uint8_t p)
Definition:
AnalogIn.cpp:25
Empty::AnalogSource::voltage_latest
float voltage_latest()
Definition:
AnalogIn.cpp:17
AP_HAL_Empty.h
v
float v
Definition:
Printf.cpp:15
AP_HAL::init
void init()
Generic board initialization function.
Definition:
system.cpp:136
AP_HAL::AnalogSource
Definition:
AnalogIn.h:7
Empty::AnalogSource::voltage_average
float voltage_average()
Definition:
AnalogIn.cpp:13
Empty::AnalogSource::set_settle_time
void set_settle_time(uint16_t settle_time_ms)
Definition:
AnalogIn.cpp:31
Empty::AnalogSource::_v
float _v
Definition:
AnalogIn.h:17
Generated on Sun Jun 17 2018 14:18:48 for APM:Libraries by
1.8.13