Michael Oborne
e1659b62d2
AP remove debug include
2012-11-26 19:02:17 +08:00
Michael Oborne
b2976c1114
AP: fix ap hil.
2012-11-26 18:53:51 +08:00
rmackay9
5a3645d36a
AP_ADC: added num_samples_available to allow main loop to be synced with arrival of new sensor data for Oilpan.
2012-09-10 11:37:43 +09:00
uncrustify
520ab058a7
uncrustify libraries/AP_ADC/AP_ADC_HIL.h
2012-08-21 18:59:13 -07:00
Andrew Tridgell
404a4e4896
ADC: use floats for ADC averaging
...
this costs almost nothing and improved accel/gyro calibration
2012-03-10 10:34:32 +11:00
Andrew Tridgell
61d649e7ac
AP_ADC: added new_data_available() interface
...
returns true if more samples are available
2012-03-10 10:34:28 +11:00
Jason Short
ecaf5ac461
sensorSign swicth
2012-01-10 23:43:44 -08:00
Andrew Tridgell
f6a7ad9fa6
Revert "ADC: fixed HIL build"
...
This reverts commit 86c1a6a5fdd929516cf0f64f4d610cfcd4b4f774.
ADC will now be disabled on APM2
2011-12-17 07:29:09 +11:00
Andrew Tridgell
04ec569313
ADC: fixed HIL build
2011-12-16 20:58:04 +11:00
Andrew Tridgell
47da2ec992
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
2011-12-12 15:14:55 +11:00
Pat Hickey
6d876bc54d
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
2011-11-25 20:00:16 -08:00
Andrew Tridgell
cc4bae4b42
fixed inconsistent linefeeds in ADC code
...
the linefeeds had bacome inconsistent in this library, making some
editors fail to load the code
2011-09-19 11:04:02 +10:00
Andrew Tridgell
1c5e8f0381
change ADC sample rate to 1kHz
...
this costs us about 9% of our CPU, but should make aliasing much less
of a problem.
2011-09-17 14:58:02 +10:00
Andrew Tridgell
8a31af801f
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
2011-09-17 14:58:02 +10:00
jasonshort
5c3837757a
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
2011-07-30 20:33:45 +00:00
james.goppert
e6c4595d3c
Massive warning fixes.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2089 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-04 19:12:27 +00:00
james.goppert
7a0fcd6f59
Full HIL working!
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@963 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-11-28 01:58:53 +00:00
james.goppert
40f1d184a1
Cleaned up AP_ADC_HIL
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@961 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-11-28 00:28:01 +00:00
james.goppert
cce122d387
Moved APM_ADC to AP_ADC
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@954 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-11-27 05:36:19 +00:00