Commit Graph

81 Commits

Author SHA1 Message Date
rmackay9 9965dd8b1a HIL: changes to fix HIL for ArduCopter after recent timing changes.
Changes include using AP_PeriodicProcess and calling imu.init even in HIL mode
2012-09-15 18:42:56 +09:00
Michael Oborne f9c11627a5 fix AP attitude hil - with randys help 2012-09-15 16:47:18 +08:00
rmackay9 38feee9c61 AP_IMU: added num_samples_available to allow main loop timing to be synced with arrival of new data from IMU. 2012-09-10 11:37:38 +09:00
uncrustify 60aaea7bdb uncrustify libraries/AP_IMU/AP_IMU_Shim.h 2012-08-21 19:03:13 -07:00
uncrustify 37fd49d8de uncrustify libraries/AP_IMU/AP_IMU_INS.h 2012-08-21 19:03:13 -07:00
uncrustify 4aa6f1d7a3 uncrustify libraries/AP_IMU/IMU.h 2012-08-21 19:03:13 -07:00
uncrustify a704f06119 uncrustify libraries/AP_IMU/AP_IMU_INS.cpp 2012-08-21 19:03:13 -07:00
uncrustify af92d8a690 uncrustify libraries/AP_IMU/IMU.cpp 2012-08-21 19:03:13 -07:00
uncrustify c42f1260e0 uncrustify libraries/AP_IMU/examples/IMU_Oilpan_test/IMU_Oilpan_test.pde 2012-08-21 19:03:13 -07:00
uncrustify 0fce87c934 uncrustify libraries/AP_IMU/examples/IMU_MPU6000_test/IMU_MPU6000_test.pde 2012-08-21 19:03:13 -07:00
Andrew Tridgell e9d0ae3e7f AP_Param: update remaining libraries for new constructor syntax 2012-08-08 12:11:57 +10:00
rmackay9 ae119b08b3 AP_IMU_INS: added gx(), gy() and gz() methods to return gyro offsets 2012-07-28 14:15:23 +09:00
Amilcar Lucas e9226d6f0a Spellcheck 2012-06-13 20:44:35 +02:00
Craig Elder fe742f1c23 IMU: expose IMU_PRODUCT_ID as EEPROM Variable
this will allow us to log the Product ID in tlogs
2012-05-09 18:30:36 -07:00
Andrew Tridgell f4b1dae7cf IMU: added get_gyro_drift_rate() interface
this just calls down to the InertialSensor layer
2012-03-10 10:34:33 +11:00
Andrew Tridgell d1976449fd IMU: fixed a warning 2012-03-10 10:34:32 +11:00
Andrew Tridgell 2c279639a3 AP_IMU: fixed led flashing in gyro cal
thanks Pat!
2012-03-10 10:34:31 +11:00
Andrew Tridgell 934a05bbc6 fixed comment 2012-03-10 10:34:29 +11:00
Andrew Tridgell e33bb217bc AP_IMU: improved the gyro calibration code
this should give a much more accurate result
2012-03-10 10:34:29 +11:00
Andrew Tridgell 626f8598ed AP_IMU: added new_data_available() interface 2012-03-10 10:34:29 +11:00
Andrew Tridgell b32701e008 IMU: removed unused accel_filtered code 2012-02-28 09:43:49 +11:00
Andrew Tridgell 371a91cfcf IMU: move _sensor_cal to general IMU class
this makes it available both in shim and INS subclasses
2012-02-18 10:51:57 +11:00
Andrew Tridgell 6cf7015859 added indexes to group info structures 2012-02-13 16:22:52 +11:00
Andrew Tridgell dff75dba96 convert libraries to new typesafe macros 2012-02-13 16:22:51 +11:00
Andrew Tridgell 78564f6a92 modify the IMU code for AP_Param 2012-02-13 16:22:51 +11:00
Andrew Tridgell 4b8e2e701c fixed Oilpan test for new library structure 2012-01-18 20:31:58 +11:00
Andrew Tridgell 09c97bb367 removed dead test program
this one doesn't build, and has been replaced by IMU_MPU6000_test
2011-12-24 18:11:04 +11:00
Andrew Tridgell 614aeb274c fixed build of IMU_MPU6000_test 2011-12-21 23:31:38 +11:00
Andrew Tridgell 4bbd5392ef removed AperiodicProcess code
this code was never being used, and was more complex than it was
worth.
2011-12-17 07:29:09 +11:00
Andrew Tridgell 919ae17473 IMU: abstract the setting of the LEDs in IMU initialisation
we need this to cope with different LED pin assignments on APM1/APM2
2011-12-13 18:19:12 +11:00
Pat Hickey 8a0c6eba78 AP_IMU_INS: Eliminate init_accel from cold start.
* Bug reported by Jason, 10 Dec 11
2011-12-10 13:00:54 -08:00
Andrew Tridgell 1a8a1973a1 AP_IMU: fixed shim driver prototype 2011-11-25 20:00:18 -08:00
Pat Hickey 433caaedc0 purple: rework AP_IMU library to use AP_IntertialSensor library
the AP_IMU keeps the handling of the calibration, but most of the real
work happens in the lower level AP_IntertialSensor library
2011-11-25 20:00:16 -08:00
Michael Oborne b02c3608ef fix delta time in imu shim 2011-10-13 22:36:51 +08:00
Michael Oborne 392160314e Sensor hil fix's 2011-10-13 22:22:03 +08:00
Jason Short cf59e8ad82 Merge branch 'master' of https://code.google.com/p/ardupilot-mega 2011-09-30 18:40:40 -07:00
Jason Short 9a4bd31a8b Minimized the accel_filtered vector to be faster and more accurate.
Made the Filter include the Accels and moved from 8 to 4 terms in the filter
2011-09-30 18:40:29 -07:00
James Goppert ac3e73f5c0 Optional recursion added. 2011-09-30 17:17:51 -04:00
James Goppert 112d5e9531 Improvements to cmake. 2011-09-29 21:23:26 -04:00
James Goppert 3a00ceb593 Added ArduBoat/ ArduRover/ and APO library. 2011-09-29 14:12:15 -04: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 bb35fdec10 IMU: re-work the IMU library to take advantage of the ADC Ch6() call
This changes the IMU code to read 6 synchronised ADC channels at one
time, giving us matching values, and exposing the exact averaging time
to callers
2011-09-17 14:58:02 +10:00
unknown 9f028bb5a0 Adding CMake support 2011-09-14 15:44:55 +02:00
tridge60@gmail.com f951ffb602 IMU: fixed HIL init with callback
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2988 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-31 23:35:37 +00:00
tridge60@gmail.com 28cf3dfc79 IMU: added delay callback hooks to IMU initialisation
this allows the imu init() call to use a custom replacement for
delay(), which will allow for the processing of MAVLink packets during
IMU initialisation

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2986 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-31 22:34:25 +00:00
jasonshort d18262b729 Added heavily filtered Accelerometer values for experimentation.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2779 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-08 03:58:19 +00:00
jasonshort ebfb132f34 IMU speedup by shorting the temp calculation. If someone bothers to temp calibrate their sensors, they'll need to edit this shortcut.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2677 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-06-26 06:23:22 +00:00
jasonshort 350b2c5ea2 added optimization note
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2564 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-06-16 16:34:23 +00:00
james.goppert a840314b97 APO merge.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1935 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-01 02:05:17 +00:00
jasonshort 0f5505e529 just formatting
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1887 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-16 04:55:32 +00:00