Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Head tracker #158

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open

Head tracker #158

wants to merge 43 commits into from

Conversation

pkendall64
Copy link
Contributor

Gigantic PR to add head-tracker support to the VRx.
This allows you to connect an IMU to the VRx ESP device (ESP8285, ESP32, ESP32C3, ESP32S3) via I2C and an interrupt pin.

Supported IMUs/Compasses are...

  • MPU6050 (6-dof IMU)
  • ICM42607P, ICM42607C, ICM42670P, ICM42670S, ICM42670T (6-dof IMU)
  • QMI8658C (6-dof IMU)
  • QMC8553L (compass)

The type of IMU/Compass is auto-detected at runtime.

The web-UI for the VRx has an extra tab for configuration of the board orientation and shows a model when the VRx board is in motion, as in the video below.

IMG_0896.mp4
IMG_0899.mp4

TODO:

Add max angle to each axis in the web UI so you can get full range of motion on the servos. As can be seen from the video the range of motion is not full because who is going to want 360degrees of motion normally!

reset centre on enable
# Conflicts:
#	html/elrs.css
#	html/scan.js
#	html/vrx_index.html
#	lib/CrsfProtocol/crsf_protocol.h
#	lib/WIFI/devWIFI.cpp
#	lib/config/config.cpp
#	lib/config/config.h
# Conflicts:
#	lib/WIFI/devWIFI.cpp
#	python/build_html.py
#	src/module_base.cpp
#	targets/common.ini
#	targets/debug.ini
targets/rx5808.ini Outdated Show resolved Hide resolved
@pkendall64 pkendall64 marked this pull request as ready for review September 26, 2024 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants