Andrew Tridgell
5e77119377
AP_InertialSensor: fixed stub driver to work correctly with sensors HIL
12 years ago
Andrew Tridgell
b237c0583d
AP_InertialSensor: Added INS_MPU6K_FILTER option
...
this allows the user to select the MPU6000 filtering frequency
12 years ago
Andrew Tridgell
4f868e04cc
AP_InertialSensor: return the example sample count in Oilpan
12 years ago
Andrew Tridgell
089ae0f9f3
AP_InertialSensor: allow specification of sample rate in init() call
...
this lets the caller not need to know the underlying sample rate. They
just ask for what rate updates happen.
This also changes the MPU6k filtering to be less than half the sample
rate
12 years ago
Andrew Tridgell
7ea18d5a61
AP_InertialSensor: fixed example build
12 years ago
rmackay9
74daf73c49
AP_InertialSensor: increase acceptable Z accel offset to be 3.0 G
...
Note: Z offsets do tend to be larger than x and y offsets
12 years ago
Andrew Tridgell
11141d0af0
INS: make it possible to do accel cal on a different serial port
12 years ago
Andrew Tridgell
f843705da3
INS: switch to SREG = oldSREG pattern for interrupt mask/restore
12 years ago
Andrew Tridgell
a7e537d6c0
INS: set the acceptable calibration error equal on all axes
12 years ago
Andrew Tridgell
40fc0feaf9
INS: show calibration values on failure
...
this will help debug bad calibrations
12 years ago
Andrew Tridgell
85e050f16c
INS: get check for send_msg the right way around!
...
I broke this in my previous commit
12 years ago
Andrew Tridgell
fd3993287d
INS: disable accel calibration on the 1280
...
this would put us well over 128k in sketch size
12 years ago
Andrew Tridgell
9c811671f1
INS: make calibrate_accel() return a bool
...
this will allow APM to auto set MANUAL_LEVEL to 1
12 years ago
Andrew Tridgell
152c12c283
INS: fixed raw accel offset for APM1
...
we now get reasonable offset values
12 years ago
Andrew Tridgell
3776e6108f
INS: use vector subtraction to make code clearer
12 years ago
rmackay9
8ccac5da3d
AP_InertialSensor: correct typo to datasheet's filename
12 years ago
rmackay9
d9b4407e64
AP_InertialSensor: changes after review with Tridge.
...
sanity checking added to accelerometer calibration routine.
user feedback is sent using gcs_send_text_fmt instead of Serial.printf.
moved ins parameters to new eeprom number to avoid conflicts with older parameters.
other small changes including renaming of functions and parameters.
12 years ago
rmackay9
49de46a548
AP_InertialSensor: merge in calibration features from IMU library
...
add gauss-newton method of accelerometer calibration
12 years ago
rmackay9
8c6fd340d7
AP_AHRS: added scheduler parameter to init
...
Required by the AP_AHRS_MPU6000 class which needs to disable timed processes that could interfere with it's communication with the mpu6000
13 years ago
rmackay9
41fbb19cf5
AP_InertialSensor_MPU6000: replaced _cs_pin parameter with #define and saved 1 byte of memory
...
Updated ArduCopter, ArduPlane and example sketches in AP_InertialSensor, AP_IMU and AP_AHRS libraries because they no longer need to pass in cs_pin to the constructor
13 years ago
rmackay9
921ab3fe12
ArduCopter: bug fix to DMP initialisation (it was freezing due to SPI bus conflicts)
13 years ago
Andrew Tridgell
7e544e8ead
MPU6k: save 72 bytes of memory
...
the buffer can be on the stack
13 years ago
rmackay9
9f1033dc42
AP_InertialSensor_Stub: added num_samples_available method to fix HIL build
13 years ago
rmackay9
130f3b0030
AP_InertialSensor_MPU6000: move _last_sample_time_micros to capture time data_interrupt was called
13 years ago
rmackay9
7a265dbf61
AP_InertialSensor: use AP_TimerProcess's queue_process to run read from MPU6000 after any currently running processes complete
13 years ago
rmackay9
0a6219695b
AP_InertialSensor: changed read of sensor from MPU6000 to happen immediately
...
This reduces the delay between when data arrives and when it is used
by up to 1ms.
Added num_samples_available method to all InertialSensors to allow
main loop timing to be synced with sensors.
13 years ago
rmackay9
c965963d7b
AP_InertialSensor_MPU6000: bug fix. DMP was being enabled by default so although the results were not being used, this caused a delay in the main loop
13 years ago
uncrustify
ad51ac5e11
uncrustify libraries/AP_InertialSensor/AP_InertialSensor_MPU6000.h
13 years ago
uncrustify
323ab9acf4
uncrustify libraries/AP_InertialSensor/AP_InertialSensor_Oilpan.h
13 years ago
uncrustify
8e5a031987
uncrustify libraries/AP_InertialSensor/AP_InertialSensor_Stub.h
13 years ago
uncrustify
ac3960b3e7
uncrustify libraries/AP_InertialSensor/AP_InertialSensor.h
13 years ago
uncrustify
e6c2616769
uncrustify libraries/AP_InertialSensor/AP_InertialSensor_MPU6000.cpp
13 years ago
uncrustify
77729b847f
uncrustify libraries/AP_InertialSensor/AP_InertialSensor_Oilpan.cpp
13 years ago
uncrustify
0c322fb18a
uncrustify libraries/AP_InertialSensor/AP_InertialSensor_Stub.cpp
13 years ago
uncrustify
25eaeff6a8
uncrustify libraries/AP_InertialSensor/examples/MPU6000/MPU6000.pde
13 years ago
Andrew Tridgell
0763bbd1af
MPU6000: fixed some build warnings
13 years ago
Andrew Tridgell
518d6365ff
AP_Param: update remaining libraries for new constructor syntax
13 years ago
rmackay9
5077674043
AP_InertialSensor_MPU6000: another attempt at fixing the SITL build
13 years ago
rmackay9
7683e9d870
AP_InertialSensor_MPU6000: changed DMP memory definition (dmpMem) to const uint8_t to remove SITL compile errors (hopefully)
...
Removed unused 'dump' variable from dmp_load_mem to reduce compiler warnings
13 years ago
rmackay9
48074f4766
AP_InertialSensor_Oilpan: changed initialisation order of parameters to remove compiler warning
13 years ago
rmackay9
6cd0918134
AP_InertialSensor: methods added to access DMP functionality
13 years ago
Jason Short
c9d3ab5413
Oilpan ADC parameters added
...
including a function that configures each Accel Axis
Defaults matching old behavior
Added param group
13 years ago
Andrew Tridgell
acc6adf6e9
MPU6k: removed an unused variable
13 years ago
Craig Elder
69bf5700cd
IMU: expose IMU_PRODUCT_ID as EEPROM Variable
...
this will allow us to log the Product ID in tlogs
13 years ago
Craig Elder
4a1d8b0875
AP_InertialSensor: Return product ID from sensor initialization
...
this exposes the product ID to the IMU Layer
13 years ago
Craig Elder
ed99940bee
MPU6000: Fixed Scaling on Accelerometers Rev C vs Rev D
...
Rev C have non standard scaling factor that is 1/2 of the data sheet
Rev D chips conform to the specification
13 years ago
Andrew Tridgell
2dd655d87d
MPU6k: added suspend/resume on init
13 years ago
Andrew Tridgell
b02ca58901
InertialSensor: fixed HIL build
13 years ago
Andrew Tridgell
9296ac494d
AP_InertialSensor: added a get_gyro_drift_rate() interface
...
this returns the expected max drift rate for the particular type of
gyro being used
13 years ago
Andrew Tridgell
3e960f8ef9
InertionSensor: update for new Ch6() interface
13 years ago