mirror of
https://github.com/SlimeVR/SlimeVR-Tracker-ESP.git
synced 2026-04-05 17:51:57 +02:00
* Update readme to mention BMI270 support. * Soft fusion sensor initial code, wip * Soft fusion ICM-42688-P lazy WIP implementation. * sfusion: Cleanup, implemented sensor frequency calibration * icm42688: add more comments, basic driver (no hw filtering) should be working * sfustion: compilation fix * sfusion: start calibration when upside down * cleanup: remove confusing had data flag * sensor manager: use unique_ptr instead of raw pointers * sfusion: big refactoring wip * sfusion: make aux work, at least sfusion sensors should now be functional * sfusion: lightweight implementation of BMI270 sensor, no sensitivity cal yet * sfusion: BMI270: added CRT and gyro zx factor. should be functionally equivalent to the old driver * Added lsm6dsv * Trying to work around esp32c3 compilation problem, not liking that solution * sfusion: fix problems found after rebase * Update README.md * Bump Arduino core to 3.0 to match GCC12 * Remove fast pin swapping that is no longer compatible with arduino core v3 * Bring back fast pin swapping * Update platformio-tools.ini * Fix accel timescale (calibration no longer takes forever) * Fix non-sfusion sensors * Added LSM6DSO and DSR support and refactored DSV support * Removed template float param from the implementation * sfusion: port MPU6050 driver wip, not expecting to be functional yet * sfusion: add headers specifying main code owners * connection: fix warning * update README.md * fshelper: fixed ESP8266 regression caused by abstracting FS access * sfusion: fix error on merge * bno080: differentiate bno080, bno085, bno086 again * sfusion: final touches * restore hadData functionality, implementing it in every sensor, made configured flag bno-only * fix address supplement in non-sfusion sensors, do i2c bus reset for all sensors * sfusion: make MPU6050 driver use normal MPU6050 ImuID, change eatSamplesAndReturn function to take ms instead of seconds * sfusion: hotfix, don't apply sensorOffset, it's applied in sensor base * Log FIFO overruns on LSMs * Reset the soft watchdog while eating or collecting calibration samples Resolves an issue where the soft watchdog would trigger. * Fix missing word in comment, switch to constexpr * Update esp32/esp8266 --------- Co-authored-by: Gorbit99 <gorbitgames@gmail.com> Co-authored-by: nekomona <nekomona@nekomona.com> Co-authored-by: nekomona <nekomona@163.com> Co-authored-by: unlogisch04 <98281608+unlogisch04@users.noreply.github.com> Co-authored-by: kounocom <meia@kouno.xyz> Co-authored-by: Kubuxu <oss@kubuxu.com>
109 lines
4.1 KiB
INI
109 lines
4.1 KiB
INI
; PlatformIO Project Configuration File
|
|
;
|
|
; Build options: build flags, source filter
|
|
; Upload options: custom upload port, speed and extra flags
|
|
; Library options: dependencies, extra library storages
|
|
; Advanced options: extra scripting
|
|
;
|
|
|
|
; ================================================
|
|
; See docs for configuration options and examples:
|
|
; https://docs.slimevr.dev/firmware/configuring-project.html#1-configuring-platformioini
|
|
; ================================================
|
|
|
|
[env]
|
|
lib_deps=
|
|
https://github.com/SlimeVR/CmdParser.git
|
|
https://github.com/SlimeVR/base64_arduino.git
|
|
monitor_speed = 115200
|
|
monitor_echo = yes
|
|
monitor_filters = colorize
|
|
;monitor_rts = 0
|
|
;monitor_dtr = 0
|
|
framework = arduino
|
|
build_flags =
|
|
!python scripts/get_git_commit.py
|
|
;If you want to set hardcoded WiFi SSID and password, uncomment and edit the lines below
|
|
;To uncomment, only remove ";" and leave the two spaces in front of the tags
|
|
; '" - quotes are necessary!
|
|
; -DWIFI_CREDS_SSID='"SSID"'
|
|
; -DWIFI_CREDS_PASSWD='"PASSWORD"'
|
|
|
|
;If you want to set a static IP address, uncomment and edit the lines below
|
|
; -DWIFI_USE_STATICIP
|
|
; -DWIFI_STATIC_IP=192,168,XXX,XXX
|
|
; -DWIFI_STATIC_GATEWAY=192,168,XXX,XXX
|
|
; -DWIFI_STATIC_SUBNET=255,255,255,0
|
|
|
|
; -DSERVER_IP='"192.168.XXX.XXX"'
|
|
; -DSERVER_PORT=6969
|
|
|
|
; Uncomment below if your board are using 40MHz crystal instead of 26MHz for ESP8266
|
|
; -DF_CRYSTAL=40000000
|
|
|
|
; Enable -O2 GCC optimization
|
|
-O2
|
|
-std=gnu++2a
|
|
|
|
build_unflags = -Os -std=gnu++11 -std=gnu++17
|
|
|
|
; If you want to enable OTA Updates, uncomment and set OTA password here and in credentials.h
|
|
; You can set upload_port to device's ip after it's set up for the first time
|
|
; Use the same password in SlimeVR Server to let it OTA Update the device
|
|
;upload_protocol = espota
|
|
;upload_port = 192.168.1.49
|
|
;upload_flags =
|
|
; --auth=SlimeVR-OTA
|
|
|
|
; Settings for different boards
|
|
|
|
[env:esp12e]
|
|
platform = espressif8266 @ 4.2.1
|
|
board = esp12e
|
|
; Comment out this line below if you have any trouble uploading the firmware
|
|
; and if it has a CP2102 on it (a square chip next to the usb port): change to 3000000 (3 million) for even faster upload speed
|
|
upload_speed = 921600
|
|
|
|
; Uncomment below if you want to build for ESP-01
|
|
;[env:esp01_1m]
|
|
;platform = espressif8266 @ 4.2.1
|
|
;board = esp01_1m
|
|
;board_build.arduino.ldscript = "eagle.flash.1m64.ld"
|
|
|
|
; Uncomment below if you want to build for ESP8285 (ESP8266 with embedded Flash)
|
|
;[env:esp8285]
|
|
;platform = espressif8266 @ 4.2.1
|
|
;board = esp8285
|
|
;board_build.arduino.ldscript = "eagle.flash.1m64.ld"
|
|
;board_build.flash_mode = dout
|
|
|
|
; Uncomment below if you want to build for esp32
|
|
; Check your board name at https://docs.platformio.org/en/latest/platforms/espressif32.html#boards
|
|
; [env:esp32]
|
|
; platform = espressif32 @ 6.7.0
|
|
; platform_packages =
|
|
; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.1
|
|
; framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.1/esp32-arduino-libs-3.0.1.zip
|
|
; board = esp32dev
|
|
; Comment out this line below if you have any trouble uploading the firmware - and if it has a CP2102 on it (a square chip next to the usb port): change to 3000000 (3 million) for even faster upload speed
|
|
;upload_speed = 921600
|
|
|
|
; If you want to use a ESP32C3, you can use this (experimental)
|
|
; Check your board name at https://docs.platformio.org/en/latest/platforms/espressif32.html#boards
|
|
; There are 2 main Boardtypes:
|
|
; 1. Boards that use a USB 2 Serial Chipset ( esp32-c3-devkitm-1, ttgo-t-oi-plus )
|
|
; 2. Boards that relay on the USB interface of the ESP32C3 ( lolin_c3_mini , dfrobot_beetle_esp32c3)
|
|
; On this board there are 2 type some of them need to have set the build flag (menuconfig)
|
|
; -DARDUINO_USB_MODE=1
|
|
; -DARDUINO_USB_CDC_ON_BOOT=1
|
|
|
|
;[env:esp32c3]
|
|
;platform = espressif32 @ 6.7.0
|
|
;platform_packages =
|
|
; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.1
|
|
; framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.1/esp32-arduino-libs-3.0.1.zip
|
|
;build_flags =
|
|
; ${env.build_flags}
|
|
; -DESP32C3
|
|
;board = lolin_c3_mini
|