Andrew Tridgell
44ad850542
InertialSensor: latch the data ready pin high on new data
...
this ensures we don't miss a sample due to another source of delay
12 years ago
Andrew Tridgell
fcb09c3993
InertialSensor: fixed example app for new syntax
12 years ago
Andrew Tridgell
e2edad8a3f
InertialSensor: fixed last sample time in MPU6000
...
we lost this in the final work on the DTR bug
12 years ago
Andrew Tridgell
1a53bc783c
InertialSensor: poll data ready pin instead of an interrupt for MPU6k
12 years ago
Andrew Tridgell
9548e7e79e
InertialSensor: simplify the data_ready interrupt handling
...
this avoids using the defer process code, and fixes a nasty bug that
caused the APM to lockup on reset
12 years ago
Andrew Tridgell
f504e2ec67
InertialSensor: removed sample rate in example
...
not needed any more
12 years ago
Pat Hickey
6437bd3a08
AP_InertialSenor MPU6000 test: fixed for user interact changes
12 years ago
Pat Hickey
9055681b3a
AP_InertialSensor: use AP_InertialSensor_UserInteract
...
* permits polymorphic user interaction, so we can plug in a
pure mavlink interface
12 years ago
Pat Hickey
a2cf47e769
AP_InertialSensor: start implementing UserInteract
...
* untested implementation in terms of BetterStream
12 years ago
Andrew Tridgell
bada70d871
InertialSensor: fixed example build on 1280
12 years ago
Andrew Tridgell
3c0440b0b4
Math: use common degrees() and radians() functions
12 years ago
Andrew Tridgell
7277d4934d
AP_InertialSensor: move constructor into cpp
12 years ago
Andrew Tridgell
b06e072c87
AP_InertialSensor: fixed example build
12 years ago
Pat Hickey
eb530b86e8
move Arduino.mk to /mk/Arduino.mk
12 years ago
Andrew Tridgell
44f860e102
InertialSensor: fixed some compiler warnings
12 years ago
Pat Hickey
b502732249
AP_InertialSensor: rewrite basic code for spi device transactions
...
* I'm not touching that DMP stuff because I'm pretty convinced it should
instead be deprecated
12 years ago
Pat Hickey
a4f41c1d29
AP_InertialSensor: MPU6000 uses scheduler panic
12 years ago
Andrew Tridgell
7d27e420ae
AP_HAL: remove unnecessary Arduino.h includes
12 years ago
Andrew Tridgell
2c1682f310
InertialSensor: use AP_HAL progmem
12 years ago
Andrew Tridgell
c064becf28
AP_InertialSensor: updates for new AP_Param API
12 years ago
Pat Hickey
475da4eca4
CONFIG_HAL_BOARD - test sketches fixed up, build all passes
12 years ago
Andrew Tridgell
38031edc9d
AP_InertialSensor: removed spurious init() method
12 years ago
Andrew Tridgell
c9a81d7de6
AP_InertialSensor: fixed sign of 16 bit SPI transfer
...
this gets accels and gyros working again
12 years ago
Pat Hickey
dbcc4fc6a5
AP_InertialSensor: variable wibble
12 years ago
Pat Hickey
9aca19415a
AP_InertialSensor: robust semaphores
12 years ago
Pat Hickey
1019fb45e7
AP_InertialSensor: remove sei in data interrupt handler
12 years ago
Pat Hickey
a4f1f6a5db
AP_Progmem: fix dependencies for all sketches touched by AP_HAL_AVR
12 years ago
Pat Hickey
4acf2c8591
AP_InertialSensor: ported to AP_HAL
12 years ago
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.
12 years ago
rmackay9
b4e5176e2a
ArduCopter, AP_InertialSensor: restore mpu6k sample rate to 200hz but keep default filtering at 42hz.
12 years ago
rmackay9
8b5f66255e
AP_InertialSensor: add comments to give credit for accel calibration method to Rolfe Schmidt
12 years ago
rmackay9
a92b7f3477
AP_InertialSensor: add comments to give credit for accel calibration method to Rolfe Schmidt
12 years ago
Andrew Tridgell
3b18c57691
AP_InertialSensor: removed axis getters for accel/gyro
...
these were only being used in one place, and in that place were used
incorrectly!
12 years ago
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