Andrew Tridgell
6af00027ab
AP_InertialSensor: removed unused variables
...
thanks to Francisco for noticing
8 years ago
Pierre Kancir
86c8145bd9
SITL: Change Flighgear port with instance number
8 years ago
Pierre Kancir
c4b5bd4bd9
SITL: revert fg view to activate by default and use flag to disable it
8 years ago
Pierre Kancir
e2b939df39
SITL: rename simin to rcin for better readability
8 years ago
Pierre Kancir
59c84c637e
SITL: make fg view optional
8 years ago
Francisco Ferreira
bfbb275577
AP_InertialSensor: on accel cal failure don't save values to zero
...
When the accel calibration fails leave the previous values saved but set them to defaults (scale default is ones, not zeros) and notify the GCS
This fixes an arithmetic exception when doing a second accel cal after the first one failed
8 years ago
Francisco Ferreira
a3fcebc501
AP_Param: add set_and_notify to vectors
8 years ago
Francisco Ferreira
e763896b6a
AP_AccelCal: send and receive MAV_CMD_ACCELCAL_VEHICLE_POS
...
Message is sent at a maximum of 1Hz
Status text is sent, but if command is received it stops and only uses commands
8 years ago
Francisco Ferreira
7463d4c8f7
GCS_MAVLink: add function to send command requesting vehicle position during accel cal
8 years ago
Francisco Ferreira
bc661f013e
AP_AccelCal: use vehicle position values from MAVLink enum
8 years ago
Francisco Ferreira
c07f377eb1
AP_AccelCal: make collect_sample responsible for state changes
...
Also only set the snoop if the step has changed
8 years ago
Andrew Tridgell
624178f3be
AP_InertialSensor: added INS_FAST_SAMPLE parameter
...
this allows enable/disable of fast sampling per IMU, making
experimentation easier.
It also fixes the fast sampling to always average over 8 samples, and
fixes the 9250 to use the correct accumulator when not doing fast
sampling
8 years ago
Andrew Tridgell
c0303ffe8a
AP_InertialSensor: temporarily disable fast sampling
...
a problem has been found with the filtering with fast sampling on
ICM-20608 and MPU9250. Disable until it is solved.
8 years ago
Andrew Tridgell
ae2dc5570e
AP_Proximity: added SITL proximity backend
...
using fence points for avoidance
8 years ago
Andrew Tridgell
b16226dddf
AP_Baro: fixed a bug with corrupted conversions in MS5611 driver
...
the datasheet says that if you get back zero in an ADC read that the
next value can be corrupt. I have seen this happen on the FMUv1,
leading to bad altitude readings
8 years ago
Andrew Tridgell
ac4b100ae4
AP_BoardConfig: use in-tree drivers for FMUv1
8 years ago
Andrew Tridgell
14a26bee6c
AP_HAL: fixed ms5611 address on FMUv1
8 years ago
Andrew Tridgell
00938f7dbb
HAL_PX4: fixed enabled channels in init
...
now this is called from AP_BoardConfig we need to not clear enabled
channels
8 years ago
Andrew Tridgell
0502eca7fc
HAL_PX4: removed unused variable
8 years ago
Andrew Tridgell
c794ad9ee8
AP_InertialSensor: use smaller FIFO buffers
...
this allows for reading multiple chunks from the fifo per callback
8 years ago
Michael Oborne
c62050dc1b
AP_GPS_SBF: fix accuracy reported by driver
8 years ago
Andrew Tridgell
5f3c14ea01
AP_RangeFinder: fixed tabs -> spaces
8 years ago
Andrew Tridgell
41018feb3a
HAL_PX4: split I2C transfers
...
this avoids SCL low with a stop condition, which doesn't work with
some devices
8 years ago
Andrew Tridgell
0c7dd99d7e
AP_RangeFinder: support LidarLite V2 using in-tree driver
...
needs to run in continuous mode
8 years ago
Andrew Tridgell
fd7b313e34
AP_RangeFinder: removed pwm_input_main
...
thanks to Francisco
8 years ago
Andrew Tridgell
a69ff34c80
AP_RangeFinder: try bus 0 and 1 for PulsedLightI2C rangefinder
8 years ago
Andrew Tridgell
516141edf3
AP_RangeFinder: start PX4 rangefinder drivers on demand
8 years ago
Andrew Tridgell
0fb959a309
AP_RPM: make pwm_input driver start on demand
8 years ago
Andrew Tridgell
08f770125e
AP_BoardConfig: moved optional sensor startup out of AP_BoardConfig
8 years ago
Andrew Tridgell
8d19808152
AP_InertialSensor: fixed missing checked register goto
...
thanks to Francisco for spotting
8 years ago
Andrew Tridgell
49856c37f2
AP_InertialSensor: reduce checked register count
...
thanks to Francisco for spotting this
8 years ago
Andrew Tridgell
4be8f05ad4
AP_InertialSensor: added register checking for LSM9DS0
8 years ago
Andrew Tridgell
77a83c091a
AP_InertialSensor: added register checking for MPU6000/ICM20608
8 years ago
Andrew Tridgell
95a849f472
AP_InertialSensor: added register checking for MPU9250
8 years ago
Andrew Tridgell
3289e90134
AP_InertialSensor: added error count increments in drivers
8 years ago
Andrew Tridgell
bc614de4b3
AP_HAL: added checked registers interface
...
allow drivers to easily monitor and correct critical registers
8 years ago
Andrew Tridgell
4ebf3309f7
AP_InertialSensor: auto-handle invensense sensor changes
...
some boards swap out MPU6000 for MPU9250 or ICM20608
8 years ago
Andrew Tridgell
8e61b15384
HAL_PX4: added ICM20608_EXT SPI device
8 years ago
Andrew Tridgell
e4454c5056
AP_Compass: setup for new PX4 board IDs
8 years ago
Andrew Tridgell
41b132e576
AP_Baro: setup for new board PX4 IDs
8 years ago
Andrew Tridgell
4f50d67790
AP_BoardConfig: added board type auto-detection
...
using SPI probing
8 years ago
Andrew Tridgell
c565c9df35
AP_HAL: added ICM20608 external SPI name
8 years ago
Andrew Tridgell
af0ec41652
AP_InertialSensor: fixed accel clip detection with fast sampling
...
we need to check on every sample at the full rate
8 years ago
Andrew Tridgell
0eac781559
AP_Compass: don't run the AK8963 on the external MPU9250
...
this saves us one mag slot for another external mag, and leaves the
primary MPU9250 undisturbed by the mag traffic on the bus
8 years ago
Andrew Tridgell
70c27a85de
AP_InertialSensor: on PH2 run the first MPU9250 at 8kHz
8 years ago
Andrew Tridgell
73122adb78
AP_BoardConfig: removed unused startup functions for Pixracer
8 years ago
Andrew Tridgell
3d5c57c5dc
AP_Compass: fixed orientation of PH2 in-tree compass drivers
8 years ago
Andrew Tridgell
4ba00720aa
AP_Compass: make init() private
...
not called from frontend
8 years ago
Andrew Tridgell
1ea4c6938c
AP_InertialSensor: allow auxiliary bus with fast sampling
8 years ago
Andrew Tridgell
8da42b7a8b
AP_InertialSensor: fixed temperature for fast sampling case
8 years ago