Giter VIP home page Giter VIP logo

Comments (6)

Tanamichi avatar Tanamichi commented on August 19, 2024 1

It can be in official documentaion...

Found on Discord group:
Solder HMC SDA to BMI160 SDX, and solder HMC SCL to BMI160 SCX. Do not forget solder VCC and GND.
Check chip orientation via datasheet(do not use silkscreen printing on HMC pcb, it maybe can incorrect.
For woking HMC with BMI160 you need download firmware source and build manually(do not use online firmware builders) you need prepare firmware, here is 2 links from official wiki can help you.
Setting up the Environment
Configuring the Firmware Project
After setting building environment and configure firmware you need to go next steps:

  1. Open debug.h and find
#define USE_6_AXIS true

change to

#define USE_6_AXIS false
  1. Next step you need to go defines_bmi160.h and find this line. Uncomment this :)
#define BMI160_MAG_TYPE BMI160_MAG_TYPE_HMC

These 2 lines enables magnetometer support for HMC5883L and BMI160
3. Build & Flash firmware.
4. After flashing do calibration.

if you feel with wrong magnetometer axes you can remap them:
Open defines.h and find Axis remapping example.
Place this code after example:

  #define BMI160_AXIS_REMAP_PRIMARY AXIS_REMAP_BUILD( \
  AXIS_REMAP_USE_X, \
  AXIS_REMAP_USE_Y, \
  AXIS_REMAP_USE_Z, \
  \
  AXIS_REMAP_USE_XN, \ 
  AXIS_REMAP_USE_YN, \
  AXIS_REMAP_USE_Z \
)

where AXIS_REMAP_USE_XN used for negation of X axis as example.

If you use default calibration methods(gyro calibrate 5 secs, 6 sided accelerometer calibration) you will have a more one step for calibrate your HMC. This step includes describing the infinity sign in the air for 20 seconds (with a tracker in hand)

if you finished calibration, tracker will be use magnetometer for drift correction.
I will close this issue.

from slimevr-tracker-esp.

C9Glax avatar C9Glax commented on August 19, 2024

@Tanamichi Hey there, has this significantly improved tracking? Currently as soon as you leave the calibrated position, the drift gets very bad on the chnaged axis...

from slimevr-tracker-esp.

Tanamichi avatar Tanamichi commented on August 19, 2024

@C9Glax, Yeah, because magnetic environment is poor at your place. I have same issue, but if i'm stay in place were i'm calibrated i have stable results..
Also i have return to origin rotation were i pressed "Full Reset" in slime server.
For now best way use trackers without HMC or QMC with BMI160.
Cheers.

from slimevr-tracker-esp.

C9Glax avatar C9Glax commented on August 19, 2024

Just to clarify:
It's better to not use HMC/QMC?
Thanks for the answer :)

from slimevr-tracker-esp.

Tanamichi avatar Tanamichi commented on August 19, 2024

@C9Glax Yes. For now do not use it :)

from slimevr-tracker-esp.

C9Glax avatar C9Glax commented on August 19, 2024

Okay thank you! ❤️

from slimevr-tracker-esp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.