Commit Graph

596 Commits

Author SHA1 Message Date
Pat Hickey 3f1d9d7f69 AP_Param: #include <AP_Param.h> fixups for libraries & sketches
* I mostly went through with grep and added an #include <AP_Param.h> below
  every #include <AP_Common.h>. Not all of these example sketches might
  strictly need AP_Param.
2012-12-20 14:51:19 +11:00
Andrew Tridgell 2f8e467ab2 RangeFinder: fixed example build 2012-11-24 21:08:25 +11:00
rmackay9 4bfd3d5a29 AP_RangeFinder_MaxsonarI2CXL: fix compiler error re undefine I2c 2012-11-12 12:23:46 +09:00
rmackay9 f68523b39b AP_RangeFinder_MaxsonarI2CXL: resolve shadowed variable compiler warning 2012-11-12 10:41:09 +09:00
rmackay9 321d40f73a AP_RangeFinder: added support for MaxBotix XL I2C sonar 2012-11-12 00:25:29 +09:00
rmackay9 50a4838879 AP_Motors, AP_RangeFinder, Filter: fixes to example sketches 2012-11-08 00:29:43 +09:00
uncrustify c60cfb33f2 uncrustify libraries/AP_RangeFinder/AP_RangeFinder_SharpGP2Y.h 2012-08-21 19:04:10 -07:00
uncrustify 9c45c74d97 uncrustify libraries/AP_RangeFinder/AP_RangeFinder_MaxsonarXL.h 2012-08-21 19:04:10 -07:00
uncrustify c6f99a7b6e uncrustify libraries/AP_RangeFinder/RangeFinder.h 2012-08-21 19:04:10 -07:00
uncrustify b57832e19b uncrustify libraries/AP_RangeFinder/RangeFinder.cpp 2012-08-21 19:04:10 -07:00
uncrustify f8a27802f1 uncrustify libraries/AP_RangeFinder/AP_RangeFinder_SharpGP2Y.cpp 2012-08-21 19:04:10 -07:00
uncrustify 605b3b6de2 uncrustify libraries/AP_RangeFinder/AP_RangeFinder_MaxsonarXL.cpp 2012-08-21 19:04:10 -07:00
uncrustify 5abb025c9e uncrustify libraries/AP_RangeFinder/examples/AP_RangeFinder_test/AP_RangeFinder_test.pde 2012-08-21 19:04:10 -07:00
Andreas M. Antonopoulos d4a0cb5db1 Added Michael Pursifull's Maxsonar HRLV model support 2012-07-11 18:46:47 -07:00
rmackay9 4dd4c95d5c AP_AnalogSource_Arduino: fix to allow analog port to be read to be specified as a "channel" (i.e. A0)
Also fixed example range finder sketch to work with interrupt enabled AP_AnalogSource_Arduino class
2012-07-11 21:19:17 +09:00
rmackay9 2b6a10d18b AP_RangeFinder - changed example sketch to work with new Filter library 2012-02-28 21:02:10 +09:00
rmackay9 f264e29814 AP_RangeFinder - cut over to use new ModeFilter from Filter library 2012-02-26 15:34:50 +09:00
Randy Mackay ed19c25a97 Arduino 1.0 - changed all #includes of "WProgram.h", "wiring.h" and "WConstants.h to "Arduino.h".
Modified FastSerial's write function to return size_t (number of bytes written).
2012-01-28 12:25:47 +09:00
Randy Mackay 8dee001657 Sonar - changed default pin to A0 2012-01-26 22:50:48 +09:00
Jason Short b6fc8e519c AP Rangefinder had some bad characters in it. Converted and cleaned the text files. 2012-01-10 23:42:26 -08:00
Randy Mackay e070109e21 AP_RangeFinder - change sonar example sketch to use default Sonar PIN for APM2 (A1) 2011-12-18 14:15:50 +09:00
Randy Mackay 67855b207d Arducopter, RangeFinder - added SONAR_TYPE parameter and properly support the XL (default), LV and long distance XL (aka XLL) sonar types 2011-12-11 16:40:59 +09:00
Randy Mackay fa0723f115 ArduCopter - removed limitation on Maxbotix sonar type requiring ADC so it can work with APM2.
modified default analog pin in test sketch to be AN4 which is consistent with APM2 default
2011-12-10 18:33:30 +09:00
Randy Mackay df1e54ec79 RangeFinder - fixed example sketch so it works again 2011-12-10 16:32:34 +09:00
Randy Mackay 1f53c25577 RangeFinder - small bug fix to initialise prescale variable.
Fixed up example sketch so it compiles and works again!
2011-12-10 16:25:41 +09:00
Pat Hickey f36ded2854 RangeFinder: rework to use AnalogSource library
this removes the hacks that check for the ADC object, and instead
choose the method of getting the analog sonar value via the
AnalogSource API
2011-11-25 20:00:16 -08:00
James Goppert 0c7c508541 Optional recursion added. 2011-09-30 17:17:51 -04:00
James Goppert 5489b84f8e Improvements to cmake. 2011-09-29 21:23:26 -04:00
James Goppert d887a28b91 Added ArduBoat/ ArduRover/ and APO library. 2011-09-29 14:12:15 -04:00
Andrew Tridgell acb4538073 RangeFinder: use new ADC interface
the new interface gives values 8 times as large as previously
2011-09-17 14:58:02 +10:00
unknown a4e001bbcf Adding CMake support 2011-09-14 15:44:55 +02:00
rmackay9@yahoo.com 0e15cecfb4 AP_RangeFinder - removed LV version because we use XL which covers both types of sonars
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3237 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-04 06:55:58 +00:00
jasonshort e1b677a25d Reworked the filtering algorithm based on Maxbotics recommendations to use a Mode filter
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2965 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-30 20:35:36 +00:00
jasonshort c79ff4f583 doubled Slew rate limiter to 2 m/s max @ 10 hz.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2912 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-18 18:18:47 +00:00
jasonshort a1733ee901 Added a slew rate limit
reworked filter, same results, just wanted to get rid of modulus.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2900 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-17 19:05:18 +00:00
jasonshort 00222a2e20 temporally revert to prior version of Sonar class to narrow in on a bug.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2708 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-06-30 22:32:26 +00:00
jasonshort e2d5f7bf82 removed duplicate filter from ADC based input
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2562 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-06-16 16:30:37 +00:00
james.goppert 7809b0ca2a 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
jasonshort 0e8d3781d3 git-svn-id: https://arducopter.googlecode.com/svn/trunk@1953 f9c3cf11-9bcb-44bc-f272-b75c42450872 2011-05-01 04:54:15 +00:00
james.goppert@gmail.com c1b6032e7f Eclipse makefile support for examples.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1860 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-09 19:38:12 +00:00
rmackay9@yahoo.com 1448b6991e AP_RangeFinder_test.pde - corrected some inaccurate comments in the code
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1459 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-09 14:20:26 +00:00
rmackay9@yahoo.com e0607712a3 AP_RangeFinder - tiny bit of extra initialisation on table holding averages
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1419 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-04 14:33:29 +00:00
rmackay9@yahoo.com ef673e5162 AP_RangeFinder - changes to allow sonar to work using pitot tube. Also moved most functionality into RangeFinder class instead of child classes.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1404 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-03 04:17:43 +00:00
rmackay9@yahoo.com 9eb889d30d AP_RangeFinder - added support for MaxsonarLV and corrected some descriptions and links for the other rangefinders
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1234 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-23 01:23:10 +00:00
rmackay9@yahoo.com c2db64116a AP_RangeFinder - bug fix for cases when analog value is zero.
- addition of filter call which averages the past 4 values

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1224 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-21 12:34:24 +00:00
rmackay9@yahoo.com 173afc91d1 AP_RangeFinder library. Simple library to support the Sharpe IR range finder and the Maxsonic XL sonar
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1147 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-17 03:01:29 +00:00