Randy Mackay
42bca90676
INS: add calibrated check
...
Checks is the scaling vector has been updated. Required for pre-arm
checks for ArduCopter
12 years ago
Andrew Tridgell
17d7f1fbe5
AP_InertialSensor: make some interfaces const
12 years ago
Andrew Tridgell
76e20150e9
AP_InertialSensor: ensure parent class is initialised in instance classes
12 years ago
Randy Mackay
86fe79a662
INS: updated MPU6K_FILTER parameter description
12 years ago
Andrew Tridgell
8d992ae615
InertialSensor: added OilPan INS example
12 years ago
Randy Mackay
af13f6795c
INS: switch to global definition of GRAVITY_MSS
...
saves 4 bytes of RAM
12 years ago
Randy Mackay
777c6a308e
AP_InertialNav: use shared GRAVITY_MSS constant
12 years ago
Michael Oborne
87292e0a4a
Init hil accel with gravity
12 years ago
Randy Mackay
318a831b57
INS: set default filter to 20hz for APM2.x and PX4
12 years ago
Randy Mackay
963231a19b
AHRS: fix example sketch to use roll/pitch trim
12 years ago
Randy Mackay
21de9f5f47
AP_InertialSensor: return roll and pitch trim angles
12 years ago
Andrew Tridgell
a63275d284
AP_InertialSensor: expand register range in MPU6000 _dump_registers()
12 years ago
zlite
4800c57fb4
Fixed cosmetic typo in user display message
...
Corrected "it's" to "its". Just one of those grammar things that drives me crazy ;-)
12 years ago
Andrew Tridgell
1121254606
AP_InertialSensor: added filter frequency support to PX4 driver
12 years ago
Andrew Tridgell
5643c371b9
AP_InertialSensor: removed unused new_data_available() and temperature() APIs
12 years ago
Andrew Tridgell
7b1245937c
AP_InertialSensor: always sample at 200Hz in MPU6000
...
this changes the sampling to 200Hz regardless of requested rate, and
it is downsampled inside num_samples_available() using a shift. This
gives better noise resistance in ArduPlane.
This patch also makes it possible to update the filter frequency while
running, which is very useful for bench testing with a vibration
source
12 years ago
Randy Mackay
6f5050a8b9
Copter: minor casting fixup for wp_distance
12 years ago
Randy Mackay
bad81a5113
AP_InertialSensor_MPU6k: remove unnecessary check of sign when receiving fifo packet from dmp
12 years ago
Andrew Tridgell
f60d657f72
AP_InertialSensor: added timer for accumulating samples for PX4
...
this makes the driver much more tolerant of sketch timing errors
12 years ago
Andrew Tridgell
3d0cb755d2
AP_InertialSensor: user a timer to drive data collection on PX4
...
this reduces the chance of missing a sample if the main sketch is a
bit slow
12 years ago
Andrew Tridgell
16d72ca160
AP_InertialSensor: update PX4 driver to use read() method
12 years ago
James Bielman
5631f865b2
Update floating point calculations to use floats instead of doubles.
...
- Allows use of hardware floating point on the Cortex-M4.
- Added "f" suffix to floating point literals.
- Call floating point versions of stdlib math functions.
12 years ago
Andrew Tridgell
d844a1ba3c
AP_InertialSensor: fixed PX4 example build
12 years ago
Andrew Tridgell
d7996acdf7
AP_InertialSensor: added set_board_orientation() method
12 years ago
Andrew Tridgell
6142eac4b4
AP_InertialSensor: simplify get_delta_time() API
...
use a single float return rather than two APIs.
This also changes the MPU6k driver to match the new 2.9 behaviour of
using the MPU6k sample timing instead of micros()
12 years ago
Pat Hickey
910e09fc96
AP_InertialSensor_MPU6000: fix sync/async semaphore usage with new scheduler
12 years ago
Andrew Tridgell
dbad61816b
AP_InertialSensor: only build Oilpan driver on APM1
12 years ago
James Bielman
8e38ef6567
MPU6000: Flip Y and Z axes for SMACCM_HAL.
...
- The accelerometer is upside-down on the PX4FMU vs the APM2.
12 years ago
James Bielman
1309b7332a
MPU6000: Use signed addition when accumulating readings.
...
- Fixes very erratic accel readings on the PX4 board.
12 years ago
Andrew Tridgell
f48790a56e
AP_InertialSensor: poll for new data in num_samples_available()
...
this lowers the latency for new data
12 years ago
Andrew Tridgell
4ab1cddd15
AP_InertialSensor: ensure we always have the SPI semaphore for MPU6k
12 years ago
Andrew Tridgell
b39166b71a
MPU6000: fixed minor timing bug
...
if we miss a sample due to SPI contention we shouldn't update last
sample time
12 years ago
Andrew Tridgell
fd23f6bd33
InertialSensor: added PX4 example sketch
12 years ago
Andrew Tridgell
ae09b31176
AP_InertialSensor: added PX4 gyro/accel driver
12 years ago
James Bielman
d84ba8ef59
Use HAL suspend/resume timer procs rather than atomic.
...
- Preparation for removing begin/end atomic.
12 years ago
Pat Hickey
d808c19c10
AP_InertialSensor_MPU6000: uses new semaphores
...
* some refactoring to fix differences between timerprocess
and non-timerprocess usage
12 years ago
James Bielman
acf05a29ee
AP_InertialSensor_MPU6000: Poll status register if there is no data ready pin.
12 years ago
rmackay9
e594f18b75
AP_InertialSensor: added parameter descriptions
12 years ago
Andrew Tridgell
374af1cd14
build: change from Arduino.mk to apm.mk
12 years ago
Andrew Tridgell
3f6f0b6d79
Oilpan: removed reference to DESKTOP_BUILD
12 years ago
rmackay9
a76aec675a
AP_InertialSensor: resolved compile warning re uninitialised variable
12 years ago
Andrew Tridgell
0adc4afcb5
InertialSensor: add reboot option in MPU6000 test
12 years ago
Andrew Tridgell
212728be34
InertialSensor: ensure MPU6000 is out of sleep mode before configuring
...
the MPU6000 starts in sleep mode, and can take a while to wakeup
12 years ago
Andrew Tridgell
122b8716a7
InertialSensor: added auto reset of MPU6000 on startup failure
...
this works around the problem of the MPU6000 failing to come up on DTR
reset or warm reboot
12 years ago
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