Andrew Tridgell
90cf1b0386
AP_ADC: removed unused setHIL method
12 years ago
Andrew Tridgell
5667f5d817
AP_ADC: fixed APM1 HIL_SENSORS Ch6() return
12 years ago
Pat Hickey
30deb76ea3
AP_ADC: ported to AP_HAL
...
AP_ADC_test run on bench with APM1, looks ok.
12 years ago
Michael Oborne
1a3a7d173a
AP remove debug include
12 years ago
Michael Oborne
ed61ef61ed
AP: fix ap hil.
12 years ago
rmackay9
6ea5c21f7c
AP_ADC: added num_samples_available to allow main loop to be synced with arrival of new sensor data for Oilpan.
13 years ago
uncrustify
fc11f7e3f0
uncrustify libraries/AP_ADC/AP_ADC_HIL.h
13 years ago
Andrew Tridgell
a0a360f955
ADC: use floats for ADC averaging
...
this costs almost nothing and improved accel/gyro calibration
13 years ago
Andrew Tridgell
c80ec9a55c
AP_ADC: added new_data_available() interface
...
returns true if more samples are available
13 years ago
Jason Short
354d9588bf
sensorSign swicth
13 years ago
Andrew Tridgell
99eafbbe38
Revert "ADC: fixed HIL build"
...
This reverts commit 86c1a6a5fdd929516cf0f64f4d610cfcd4b4f774.
ADC will now be disabled on APM2
13 years ago
Andrew Tridgell
d4b66139dc
ADC: fixed HIL build
13 years ago
Andrew Tridgell
5d503fd65e
ADC: change adc.Ch() to return a float
...
this gives us a bit more precision in airspeed measurement, and costs
us virtually nothing as we are converting to float immediately after
getting the value
13 years ago
Pat Hickey
017f121566
AP_ADC: rework ADC library to use PeriodicProcess and ISR_Register
...
this makes it possible to build the ADC library when another driver
may also want that interrupt
13 years ago
Andrew Tridgell
f375258699
fixed inconsistent linefeeds in ADC code
...
the linefeeds had bacome inconsistent in this library, making some
editors fail to load the code
14 years ago
Andrew Tridgell
9af7021a98
change ADC sample rate to 1kHz
...
this costs us about 9% of our CPU, but should make aliasing much less
of a problem.
14 years ago
Andrew Tridgell
70bf945d40
ADC: re-work for ADC code for full resolution and accurate timing
...
this changes the ADC code to return the full resolution of the
sensors. It also adds a new Ch6() interface that returns 6 channels at
once, so the IMU can read 3 accelerometers and 3 gyros at once, and
get the exact time that the values were accumulated over
14 years ago
jasonshort
eb39d2d53a
Added ability to grab an unfiltered value from the ADC
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2963 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
james.goppert
7809b0ca2a
Massive warning fixes.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2089 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
james.goppert
7a0fcd6f59
Full HIL working!
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@963 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
james.goppert
40f1d184a1
Cleaned up AP_ADC_HIL
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@961 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
james.goppert
cce122d387
Moved APM_ADC to AP_ADC
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@954 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
james.goppert
e865622f66
Added generic ADC library.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@946 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago