Daniel Agar
8b4ecc6947
icm20948 move to px4 work queue
2019-05-24 12:58:55 -04:00
Daniel Agar
fc7f1ca598
fxos8701cq move to px4 work queue
2019-05-24 12:58:55 -04:00
Daniel Agar
d4ece2c7bb
fxas21002c move to px4 work queue
2019-05-24 12:58:55 -04:00
Daniel Agar
9fa865d490
bmi160 move to px4 work queue
2019-05-24 12:58:55 -04:00
Daniel Agar
370f0f73ce
bma180 move to px4 work queue
2019-05-24 12:58:55 -04:00
Daniel Agar
e27a8e1010
bmi055 move to px4 work queue
2019-05-24 12:58:55 -04:00
Daniel Agar
be3653f761
l3gd20 move to px4 work queue
2019-05-24 12:58:55 -04:00
Daniel Agar
427c49ac43
adis16477 move to px4 work queue
2019-05-24 12:58:55 -04:00
Daniel Agar
6113caaa33
adis16448 move to px4 work queue
2019-05-24 12:58:55 -04:00
Daniel Agar
16b26c1927
mpu6000 move to px4 work queue
2019-05-24 12:58:55 -04:00
Daniel Agar
ea734f634d
mpu9250 move to px4 work queue
2019-05-24 12:58:55 -04:00
Beat Küng
c3ac1497c0
mpu9250: fix mag publishing garbage on IMU failure (SPI only)
...
The Pixhawk cube as an internal mag on SPI. If there was a bad register
read (e.g. on an IMU failure), _register_wait was non-zero and there was
no transfer but _mag still published mpu_report.mag.
2019-04-26 18:49:28 +02:00
Thijs Raymakers
33fe69a3e8
adis16497: fix TEMP_OUT conversion according to the datasheet
2019-04-26 15:22:06 +02:00
Dennis Millard
70681f990f
BMI055 IMU driver fix temperature reporting
2019-04-16 22:53:16 -04:00
Thijs Raymakers
52542f9802
adis16497: fix TEMP_OUT scaling
2019-03-29 00:43:16 -04:00
Beat Küng
c9d32578e3
fix bmi055: increase DLPF from 62.5 to 500
...
With a DLPF of 62.5 Hz, the sampling rate is apperently not 1 kHz anymore,
because the driver got duplicate samples and published only at 128 Hz.
We have to increase the filter back to 500 Hz so that we get 1 kHz sampling
rate, with 250 Hz publications.
2019-03-21 11:50:37 -04:00
Mark Sauder
4c228eaf4a
cmake whitespace fixes to quiet git hook.
2019-03-16 14:48:44 -04:00
Daniel Agar
b35d048566
cmake enable -Wcast-align and disable per module
2019-03-16 11:47:15 -04:00
Mohammed Kabir
20e44aa320
Analog Device ADIS16497 IMU initial support
2019-02-25 09:34:58 -05:00
Beat Küng
75bb3e9bac
bmi055: add support for IMU_GYRO_CUTOFF and IMU_ACCEL_CUTOFF
2019-02-21 12:30:44 -05:00
Beat Küng
ba6ef19314
bmi055: fixes for on-chip filter
...
- Accel: use cutoff of 62.5 Hz instead of 500 Hz
- Gyro: the cutoff frequency is coupled with the ODR and is fixed to 116 Hz
at 1 kHz readout rate. So this patch does not change anything for the
gyro.
2019-02-21 12:30:44 -05:00
bazooka joe
7bac0e03de
Fixed using myoptarg instead of optarg
2019-02-21 09:45:45 +01:00
Beat Küng
e639a8834c
Fixed using myoptarg instead of optarg
...
Co-Authored-By: BazookaJoe1900 <BazookaJoe1900@gmail.com >
2019-02-21 09:45:45 +01:00
Beat Küng
1ffacdc3c0
Fixed using myoptarg instead of optarg
...
Co-Authored-By: BazookaJoe1900 <BazookaJoe1900@gmail.com >
2019-02-21 09:45:45 +01:00
bazooka joe
922c19aa9c
using only px4_getopt() and never the unsafe getopt()
...
using only <px4_getopt.h> as include, cleanup related includes
added check that all the option are valid (myoptind >= argc). if there are invalid options on some script that might now lead not to run commands
2019-02-21 09:45:45 +01:00
Beat Küng
0acdffad90
fix MPU6000: restore orb priority
...
Fixes regression from https://github.com/PX4/Firmware/pull/11216 .
2019-02-11 12:16:46 +01:00
Daniel Agar
8dc0509989
mpu9250: split icm20948 support out into new separate driver
2019-01-30 09:29:08 +01:00
mcsauder
cced80edf9
Correct the mpu6000 temperature correction scalar value to match the datasheet.
2019-01-28 12:48:03 +01:00
Daniel Agar
2ffb49b734
delete px4_includes.h header and update boards/ to use syslog
2019-01-23 18:25:18 -05:00
Daniel Agar
52c848a556
mpu6000 split into separate main, header, implementation
2019-01-18 10:39:15 -05:00
Daniel Agar
d299d439c6
mpu6000 use new PX4Accelerometer and PX4Gyroscope classes
2019-01-18 10:39:15 -05:00
Jacob Dahl
29f034c53e
mpu9250 fix hardfaults if attempting to start an already running driver ( #11190 )
...
* removed bus options that were essentially duplicates, causing hardfaults if attempting to start an already running driver. Changed NULL to nullptr. Removed bus options that were unused
* removed condition from if statement that was unnecessary
* fixed style
2019-01-14 09:59:36 -05:00
Daniel Agar
92ca26b111
mpu9250 fix code style
2019-01-09 10:27:19 -05:00
Florian Olbrich
fb386580b8
Fixed failure notices on mpu9250 startup by adding back device probing on I2C interface init.
2019-01-09 09:54:45 -05:00
Florian Olbrich
280a60c86f
Fixed unreliable ICM20948 detection.
...
Fixed ICM20948 magnetometer only option.
Specified bus for internal mpu9250 on Pixhawk 2.1 to avoid premature detection of
other device.
2019-01-09 09:54:45 -05:00
Jacob Dahl
a492d1cfdb
MPU9250 driver fix to preserve bus+device plug-and-play capabilities ( #11020 )
2019-01-03 08:10:23 -05:00
Julian Oes
5b9dea5604
Replacing usleep with px4_usleep
...
This is a step towards isolating time from the system.
2018-12-22 10:32:18 +01:00
flochir
ab9e9793a0
ICM20948 integration into MPU9250 driver ( #10116 )
...
* Integrated preliminary ICM20948 support into MPU9250 driver.
Fixed temperature conversion for MPU9250/ICM20948.
* Included missing check for PX4_I2C_OBDEV_MPU9250 in main.cpp.
* Added explicit bus for internal MPU9250 on Pixhawk 2.1 to avoid implicit start
of an externally attached device with wrong orientation.
2018-12-04 22:15:02 -05:00
Daniel Agar
b0caea9edc
mpu9250 remove interface IOCTLs
2018-11-06 07:43:43 +08:00
Daniel Agar
e164281a2e
mpu6000 remove interface IOCTLs
2018-11-06 07:43:43 +08:00
Daniel Agar
dd0baaee91
delete IOCTL SENSORIOCSQUEUEDEPTH
...
- only used in test routines
2018-11-06 07:43:43 +08:00
Daniel Agar
d2ed091a1d
delete IOCTL SENSOR_POLLRATE_MAX
...
- only SENSOR_POLLRATE_DEFAULT is needed
2018-11-06 07:43:43 +08:00
Daniel Agar
556a9422b5
delete IOCTL SENSOR_POLLRATE_MANUAL
...
- only used in self tests
2018-11-06 07:43:43 +08:00
Daniel Agar
8dfd55fc9e
delete unused IOCTL SENSORIOCGPOLLRATE
2018-11-06 07:43:43 +08:00
Daniel Agar
d76155107c
delete unused IOCTL MAGIOCGRANGE
2018-11-06 07:43:43 +08:00
Daniel Agar
0ea18b2b73
delete unused IOCTL MAGIOCGSAMPLERATE
2018-11-06 07:43:43 +08:00
Daniel Agar
60a40ec131
delete unused IOCTL MAGIOCSSAMPLERATE
2018-11-06 07:43:43 +08:00
Daniel Agar
04972d196a
delete unused IOCTL MAGIOCTYPE
2018-11-06 07:43:43 +08:00
Daniel Agar
acc24da0c2
delete gyro_report (alias for sensor_gyro_s)
2018-11-06 07:43:43 +08:00
Daniel Agar
aaf1667b09
delete unused GYRO_SAMPLERATE_DEFAULT
2018-11-06 07:43:43 +08:00