77 Commits

Author SHA1 Message Date
Yury
aac00d813d Update i2cdev lib (#157)
* Update I2Cdev library
2022-06-28 20:08:00 +03:00
Eiren Rain
44a9c55413 Merge pull request #135 from LETS-BEE/main
MPU9250: Calibration Routine Optimization
2022-03-31 16:54:34 +03:00
unlogisch04
b0b264479a Using avr/pgmspace for ESP8266 for DMP 2022-03-31 04:28:13 +02:00
LETBBI
52f1010e17 Calibration routine optimization
and fix register in MPU9250 library
2022-03-30 00:27:37 +09:00
LETBBI
befeb3e972 Fix MAG Device ID 2022-03-29 00:34:26 +09:00
Eiren Rain
58638027d2 Report last error for BNO08X if it times out 2022-03-05 20:09:07 +02:00
Yury
9a00c6ba67 Improve CalculateCalibration
* Allocate long-living arrays on heap and deallocate them ASAP
* Scope short-living arrays and variables to deallocate them from stack ASAP
* Refactor code to avoid unused variables and better variables reuse
2022-02-27 02:34:15 +03:00
Yury
51f21dca40 Remove unused variables, init arrays 2022-02-27 02:30:54 +03:00
LETBBI
550c59f457 Communicate mag as I2C slave 2022-02-24 00:46:45 +09:00
Kamilake
2738cc2b7b Clean up Serial log 2022-02-16 08:40:24 +09:00
LETBBI
0f9deb3762 MPU9250 : Add FIFO Corrupted
and return DMP's gyro setting. that was wrong.
2022-02-08 00:29:21 +09:00
LETBBI
fbd74e9a97 Fix dmp sample rate 2022-02-05 23:34:56 +09:00
Yury
a80534e144 Use inverse square root function with better precision 2022-02-03 12:49:25 +03:00
Yury
8e1bba7633 Refactor mahony functions 2022-02-03 12:49:15 +03:00
Eiren Rain
2e88f06aae Merge branch 'main' of https://github.com/ThreadOfFate/SlimeVR-Tracker-ESP-ICM20948 into ThreadOfFate-main
# Conflicts:
#	src/consts.h
#	src/defines.h
#	src/main.cpp
#	src/sensor.h
2022-02-02 19:07:54 +02:00
Yury
cacbc47651 Use strict device ID check for MPUs 2022-02-02 18:52:33 +03:00
LETBBI
6f3feae76e Change testConnection function
getDeviceID() > 0; to
getDeviceID() == 0x71;
2022-02-01 21:30:21 +09:00
LETBBI
7f797d035c Fix mahony param 2022-02-01 18:29:39 +09:00
LETBBI
2f2d23e27c Change mahony filter code and Orientations of axies
see https://github.com/jremington/MPU-9250-AHRS
2022-02-01 18:24:07 +09:00
LETBBI
b5374035e5 Merge remote-tracking branch 'upstream/main' into upstream_code 2022-02-01 17:55:34 +09:00
LETBBI
dd923a77e8 upgrade DMP 4.1 to 6.12 with raw mag
Original SilmeVR-Tracker-ESP code. but add something
2022-01-31 20:50:21 +09:00
LETBBI
3599b23d9d Merge remote-tracking branch 'upstream/main' into upstream_code 2022-01-31 20:29:34 +09:00
Yury
0830faf9ef Fix compilation with multiple usage of magneto library 2022-01-31 14:14:34 +03:00
Yury
d12cca6e03 Add BMI160 support 2022-01-31 14:14:19 +03:00
Boronare
02a7f354c2 fix ESP32 define errors 2022-01-30 20:01:47 +09:00
Boronare
2963068c78 remove Adjustments params. Matrix can replace. 2022-01-30 19:59:00 +09:00
Boronare
b545d1dd8d Merge remote-tracking branch 'upstream/main' 2022-01-30 17:39:59 +09:00
LETBBI
d3f60929a7 Add 6Axis MotionApps v6.12 Driver for MPU9250
modify MPU6050's 6Axis motion Apps v6.12 files. can use raw mag.
and add Boronare's code(using DMP quat and raw mag)

now 3 options
DMP RAW(DMP acc, gyro and raw mag)
DMP QUAT(DMP quat and raw mag)
RAW FILTER(raw acc, gyro, mag)
2022-01-30 01:54:22 +09:00
LETBBI
7c55ae63e3 fix some codes for new firmware 2022-01-28 16:45:33 +09:00
LETBBI
7932388a96 Merge remote-tracking branch 'upstream/main' into main 2022-01-28 09:37:27 +09:00
Eiren Rain
f10395991b Allow to use any MPU in 6050 mode 2022-01-28 00:07:16 +02:00
Eiren Rain
3d6ea0806b Cleanup namespace and file structure (WIP) 2022-01-20 17:46:38 +02:00
LETBBI
57e3c5efa8 Using Mahony filter with DMP
Using Accelerometer, Gyroscope with DMP and magnetomter.
Be Careful! This code is not stable.
2022-01-19 21:29:00 +09:00
LETBBI
e578dd2f43 Cleanup old files
clean and merge Boronare's codes
2022-01-17 20:03:06 +09:00
LETBBI
e3435373bd Auto stash before rebase of "Boronare/dmpfusion" 2022-01-17 19:44:40 +09:00
Boronare
932ca57b4a Move magnetometer calculation issue files to lib 2021-12-24 23:49:32 +09:00
Boronare
c17a7416c8 change 9250 motionapps to 41 2021-12-24 13:04:57 +09:00
Boronare
8e9654a51c Merge remote-tracking branch 'deiteris/improved-mag' into combine-deiteris 2021-12-19 10:52:59 +09:00
Boronare
376d3c42d2 support Second MPU 2021-12-18 11:43:32 +09:00
Boronare
d6b1236f6a MPU9250 : dmp quaternion + DCM based correction 2021-12-18 09:56:29 +09:00
Yury
90ed57f620 Improve magnetometer operation
* Enable mag in 16-bit 100hz continuous reading mode and apply 16-bit scaling factor
* Set up magnetometer as MPU9250 I2C slave to avoid conflicts with second MPU
* Read factory sensitivity adjustments and apply to scaling
2021-12-17 11:36:17 +03:00
Yury
e6938ecac2 Use inverse square root to speed up calculations 2021-12-17 11:28:54 +03:00
Yury
9503ab9763 Improve DMP FIFO packet reader 2021-12-16 15:14:53 +03:00
Eiren Rain
491056749f Added new feature to send less network updates when there is less movement or no movement detected 2021-10-20 04:13:37 +03:00
Eiren Rain
9e03d7b01e Minor messages update 2021-10-13 16:49:47 +03:00
Eiren Rain
4dda39999b Added gravity reading to BNO08X lib, send accel packet if separate reading of it is enabled 2021-10-13 16:41:57 +03:00
masterex1000
f947bc5e07 Merge branch 'mx-firm' into mx-firm-moapp-6_12 2021-09-14 01:29:02 -06:00
Eiren Rain
5cf5af6e30 Can now set separate rotations for primary and secondary IMUs
Removed SECOND_IMU define, because it gets auto-discovered any way
Minor cleanups
2021-08-23 21:52:40 +03:00
Eiren Rain
4e32b1ca40 Don't scan GPIO 12 during I2C discovery for ESP32, #18 2021-08-22 14:52:17 +03:00
Eiren Rain
fc1f3cb1ed Merge branch 'main' into mpu6050-integration 2021-08-10 09:04:11 +03:00