Andrew Tridgell
565f1986e0
AP_Baro: fixed FMUv1 baro and enable in-tree driver for PHMINI
8 years ago
Andrew Tridgell
fcf0a4ea59
AP_BoardConfig: use in-tree drivers for PHMINI
8 years ago
Andrew Tridgell
b363a65c2e
AP_Compass: enable in-tree drivers for PHMINI
8 years ago
Andrew Tridgell
03b7bc9e65
AP_InertialSensor: use internal drivers for PHMINI
...
this gets us fast sampling
8 years ago
Andrew Tridgell
af1c5fd6d3
AP_InertialSensor: always use FIFO on MPU6000
...
and enable fast sampling on ICM20608 if on SPI
8 years ago
Andrew Tridgell
96e42696b7
HAL_PX4: added icm20608-am SPI device
8 years ago
Andrew Tridgell
d778ee2db0
AP_HAL: define device for icm20608 on ACCEL_MAG CS line on px4
...
for PHMINI
8 years ago
Andrew Tridgell
b34ab2956b
HAL_PX4: added access to external SPI connector on FMUv2
8 years ago
Andrew Tridgell
fde80a9408
AP_InertialSensor: modify LSM303D settings to match PX4 driver
...
this allows existing accel calibration to be used
8 years ago
Andrew Tridgell
875fa60452
AP_Compass: fixed external I2C HMC5983 rotation on pixhawk
8 years ago
Andrew Tridgell
01fadb6e90
HAL_PX4: added per-device perf counter for I2C devices
8 years ago
Andrew Tridgell
a9a5e50bd1
AP_InertialSensor: removed timer callback for MPU6000
...
Thanks to Lucas for pointing out this is not needed
8 years ago
Andrew Tridgell
42f242a07b
HAL_PX4: fixed build on PX4-v1
8 years ago
Andrew Tridgell
bd8867be38
AP_Compass: cope with NULL dev pointer in driver probe functions
8 years ago
Andrew Tridgell
ba9b475782
AP_HAL: added MS5611 on I2C for px4-v1
8 years ago
Andrew Tridgell
4cf6dd1818
HAL_Linux: removed panic on bad SPI device
8 years ago
Andrew Tridgell
20cd165476
HAL_PX4: allow for missing SPIDevice table entries
...
removed panic
8 years ago
Andrew Tridgell
bd84e592f8
AP_InertialSensor: check for NULL device pointer in probe()
...
handle missing devices
8 years ago
Andrew Tridgell
3b53caad87
AP_Compass: keep old hmc5843 ID
...
prevent re-use. thanks to Lucas
8 years ago
Andrew Tridgell
02c2ba1331
AP_Compass: fixed dup semaphore bug
...
thanks to Lucas for spotting this!
8 years ago
Andrew Tridgell
f31a017ace
AP_Compass: changes to HMC5843 driver
...
this makes the HMC5843 use single-shot mode, which makes it more
robust to bus resets. It also adds WHOAMI checking and enables
automatic temperature compensation.
Unfortunately this makes existing calibration values incompatible, so
a re-cal is required. The device ID has been changed to reflect the
driver change.
8 years ago
Andrew Tridgell
f62851f780
GCS_MAVLink: added remote device operations
...
this makes debugging devices much easier. You can even write a
primitive SPI or I2C device driver over mavlink.
Support for this is in the devop MAVProxy module
8 years ago
Andrew Tridgell
922d5a74f7
HAL_PX4: print msg when I2C device is closed
8 years ago
Andrew Tridgell
da7ed73051
GCS_MAVLlink: added handle_common_message()
...
this will make it easier to add common functions for mavlink messages
without having to do a commit for each vehicle
8 years ago
Andrew Tridgell
e5a4dd4e56
HAL_PX4: added perf counter on SPI devices
8 years ago
Andrew Tridgell
8bca8545a2
HAL_PX4: removed unused devname field in SPIDevice
8 years ago
Andrew Tridgell
05769640d1
AP_Compass: support rotations on AK8963
8 years ago
Andrew Tridgell
2716ab8408
AP_Compass: added support for per-instance rotations
8 years ago
Andrew Tridgell
fac895b0e6
AP_Compass: setup read flag for SPI transfers
8 years ago
Andrew Tridgell
18df213069
HAL_PX4: fixed initial SPI bus speed and report new SPI instances
8 years ago
Andrew Tridgell
3d7d773883
AP_InertialSensor: added support for ICM20608 on Pixracer
8 years ago
Andrew Tridgell
4dc5dc87b5
HAL_PX4: added ICM20608 to SPI table
8 years ago
Andrew Tridgell
ea74f8c12c
AP_HAL: added ICM20608 INS name
8 years ago
Andrew Tridgell
2c1e9024f1
AP_InertialSensor: detect missing accels or gyros
8 years ago
Andrew Tridgell
106a91c64c
AP_InertialSensor: use init_gyro() on startup
...
this saves the calibration parameters which should be done on
calibration
8 years ago
Andrew Tridgell
408593465f
AP_InertialSensor: fixed rotation for mpu9250 on pixracer
8 years ago
Andrew Tridgell
790dd4769b
AP_InertialSensor: simplify rotations for MPU9250
8 years ago
Andrew Tridgell
38a1f51b53
AP_HAL: define rotations for the MPU9250 in board/linux.h
8 years ago
Andrew Tridgell
147b253e65
AP_Compass: make device IDs match PX4 drivers
...
match in-tree drivers to PX4Firmware drivers
8 years ago
Andrew Tridgell
aa4025bdf9
AP_InertialSensor: make INS sensor IDs match for PX4
...
in-tree driver IDs now match PX4Firmware driver IDs on Pixhawk2
8 years ago
Andrew Tridgell
76b2759317
AP_OpticalFlow: fixed shadowed variable build warning
8 years ago
Andrew Tridgell
9e7e1b2f01
AP_InertialSensor: fixed merge conflicts with patches from Lucas
8 years ago
Andrew Tridgell
1990aa96e1
AP_HAL: added get_bus_id_devtype()
...
used to do versioning on device types
8 years ago
Lucas De Marchi
104e29acf2
AP_InertialSensor: MPU6000: change accel scale to 16G
...
Also change the ID of MPU6000 so previous calibration values are not
considered valid.
8 years ago
Lucas De Marchi
dc09661b9e
AP_InertialSensor: MPU6000: save driver version
...
When registering accel and gyro we use the upper 16bits of the id to
store the driver version. When changing the driver behavior in
non-compatible ways, changing this version will trigger a request for
calibration.
8 years ago
Lucas De Marchi
0d3adef8b2
AP_InertialSensor: MPU6000: remove TODO leftover
...
This will never be done as blindly changing speed is not the way to fix
communication issues.
8 years ago
Andrew Tridgell
0a1616cc71
AP_InertialSensor: use correct device IDs on PX4 driver
8 years ago
Lucas De Marchi
469efb00f6
AP_InertialSensor: save id for gyro and accel instances
...
This allows each sensor to be uniquely identified in the system by using
either the index inside the backend or for those that use the Device
interface, to use the bus type, location, and device id.
We leave 16-bit for each sensor to be able to change its own
identification in future, which allows them to be changed in an
incompatible manner forcing a re-calibration.
8 years ago
Lucas De Marchi
bbb9bfa95e
AP_InertialSensor: save only gyro calibration
...
When we are initializing the gyro and then saving the calibration we are
also saving the calibration values for the accelerometers. Right now
this is non-problematic, but we want to check that the ID of the
accelerometer corresponds to the ID of the sensor detected. If we also
save accel calibrations we would actually override the ID of the
accelerometer.
Rename the method to _save_gyro_calibration() and save only on gyro
values.
8 years ago
Lucas De Marchi
f81dba2100
AP_InertialSensor: add doc to get_id() of backend
...
This is different from get_id() of Device and ultimately from each
sensor this this is identifying the backend, not the sensor.
8 years ago