Commit Graph

55 Commits

Author SHA1 Message Date
Lorow
dbcee66fa8 Fix getLEDCurrentCommand after rebase, cleanup todos, add current monitoring to setup script 2025-10-19 19:29:04 +02:00
Lorow
d67c0251fa cleanup after rebasing 2025-10-18 21:23:40 +02:00
Lorow
f241603a82 Remove heartbeats in favor of ping command 2025-10-18 19:51:27 +02:00
Lorow
cf9eecc822 Configure nlohmann-json to suit espidf environment 2025-10-18 19:24:20 +02:00
Lorow
4ae552abca Revert stopping serial manager in wifi mode 2025-10-18 19:09:29 +02:00
Lorow
1a06c1a053 Merge branch 'main' into main 2025-10-18 19:02:41 +02:00
PhosphorosVR
e47735c720 Changes made based on pr feedback. 2025-09-23 01:46:53 +02:00
PhosphorosVR
6f926306b5 Adding new Kconfig options and updating LEDManager code for conditional debug LED and external error mirroring 2025-09-07 12:59:18 +02:00
Lorow
2ac49fcd02 Add support for keeping serial manager alive when in WiFi mode but connected to serial, fix resolving heartbeats 2025-09-07 00:06:24 +02:00
PhosphorosVR
e4881ef5a0 Refactor configuration settings: rename UVC delay to startup delay, add enable wireless option, and update LED GPIO configuration 2025-09-05 01:40:51 +02:00
PhosphorosVR
83d7805e9e - Updated README to reflect changes in device mode terminology from "Auto" to "Setup".
- Changed configuration macros from CONFIG_GENERAL_DEFAULT_WIRED_MODE to CONFIG_GENERAL_INCLUDE_UVC_MODE across multiple files.
- Introduced new command for retrieving LED current in CommandManager.
- Added MonitoringManager and CurrentMonitor classes to handle LED current monitoring.
- Updated Kconfig to include options for LED current monitoring.
- Modified main application logic to integrate MonitoringManager and handle new device modes.
- Adjusted CMakeLists and source files to include new monitoring components.
2025-09-05 01:08:11 +02:00
PhosphorosVR
d73958530a removed test 2025-09-05 00:33:46 +02:00
PhosphorosVR
f3434c5306 test 2025-09-05 00:33:32 +02:00
Lorow
68998ad727 Refactor the startup flow, cleanup old progress logs, cleanup globals 2025-09-03 00:39:22 +02:00
Lorow
0c9e254aba Initial CDC implementation 2025-09-03 00:39:22 +02:00
PhosphorosVR
cb569c9e47 60fps Limit + GENERAL_DEFAULT_WIRED_MODE can be set in sdkconfig 2025-08-26 01:39:40 +02:00
PhosphorosVR
3f96e468f0 Refactor global state management for startup commands and USB handover (no Race-Condition); enhance SerialManager shutdown process and buffer handling in UVCStream. 2025-08-23 19:12:53 +02:00
PhosphorosVR
4778ae6c52 Update README and improve LEDManager and StreamServer functionality
- Enhanced LEDManager state update logic to allow recovery from error states
- Fixed buffer declaration in StreamServer for multipart headers
- Updated LEDManager instantiation to use shared_ptr for better memory management
2025-08-23 15:28:55 +02:00
PhosphorosVR
5a201d875e Added PWM live control and get_led_duty_cycle 2025-08-22 01:01:49 +02:00
Lorow
21e8dbe264 Add PoC PWN duty cycle adjustment command for FaceFocus 2025-08-19 00:03:31 +02:00
Lorow
ee5a73895c Merge remote-tracking branch 'origin/main' into mutimodal
# Conflicts:
#	components/CameraManager/CameraManager/CameraManager.cpp
#	dependencies.lock
#	main/openiris_main.cpp
#	sdkconfig
2025-08-13 23:46:13 +02:00
Lorow
5a86ae042f Improvements and refactors after CR, add option to modify mdns name and simplify setup tool 2025-08-12 23:48:44 +02:00
PhosphorosVR
4c2e183f11 - Changed return; to return ESP_FAIL; to match esp_err_t return type
- Prevent build errors by properly handling missing wired mode configuration
2025-08-09 20:42:36 +02:00
PhosphorosVR
0c4a300647 - Applied changes based on PR feedback
- Remove redundant menu entries from default config (will be set by Kconfig.projbuild)
2025-08-09 17:13:04 +02:00
PhosphorosVR
a5d4ac3c7d Added Camera_USB_XCLK_FREQ and CONFIG_GENERAL_UVC_DELAY 2025-08-08 22:45:28 +02:00
PhosphorosVR
5c5d32b083 Fix: ensure SerialManager task handle is stored correctly for timer callback
- Replaced TaskHandle_t* with TaskHandle_t to allow xTaskCreate() to store the task handle
- Passed the actual handle to the start_video_streaming timer callback
- Prevented potential null/invalid handle issues when deleting the SerialManager task
2025-08-08 21:37:57 +02:00
PhosphorosVR
2346d0ec6c -Add configurable PWM frequency and duty cycle for external LED control
-Reworked Kconfig menu structure for better organization
2025-08-08 21:26:06 +02:00
Lorow
9326746e1d Fix device config redefinition issue 2025-07-29 23:10:24 +02:00
Summer
d9ace4bc05 upload mutimodal 2025-07-29 23:02:29 +02:00
Lorow
9479c1c592 Set the tinyusb version to 0.15.0~10 to fix uvc becoming unresponsive, add missing proper device mode handling, update progress docs 2025-06-27 22:10:29 +02:00
Lorow
ec4369df7f Add support for setting a custom device name and per-board serial number for UVC 2025-06-17 22:21:22 +02:00
Lorow
b7bae7fb3e Add Proof of concept switching between UVC and Wi-Fi streaming based on the presence of Wi-Fi creds, rewrite restart task to esp_timer
TODO: Think about letting people set the mode explicitly so the board comes online faster
2025-05-20 23:09:06 +02:00
Lorow
4f0ab541cb Modernize the code a bit, clean up most compilation warnings 2025-05-18 17:35:39 +02:00
Lorow
db7d4fa8b0 Serial manager cleanup 2025-05-10 15:38:25 +02:00
Lorow
1eeba31efd Add PoC Serial communication implementation 2025-05-09 19:45:05 +02:00
Lorow
4095f00bb0 Rewrite state manager, clean up states, fixup typos - todo test state display 2025-04-21 23:50:41 +02:00
Lorow
a580d0f097 Move REST API poll and led manager state display to tasks, beginng led manager refactor 2025-04-19 16:28:10 +02:00
Lorow
2aec0aaacd Add proper support for Babble illuminator LEDS 2025-04-13 21:22:52 +02:00
Lorow
eaa60cb877 Refactor command system - remove BaseCommand class implementation in favour of std::function 2025-04-09 21:43:49 +02:00
Lorow
d483a3eecb Fix UVC failing to compile 2025-04-02 19:50:51 +02:00
Lorow
cb41038181 Refactor project config - simplify the implementation, move out the logic into separate modules 2025-04-01 23:29:38 +02:00
Lorow
fff9ce422f Add RESTART_CAMERA, RESET_CONFIG, RESTART_DEVICE commands and implement related endpoints 2024-12-07 22:02:49 +01:00
Lorow
6b603f5574 Fix compilation issues, change ProjectConfig into a shared_ptr with updated definitions
// todo implement the API and missing features
2024-11-23 21:00:05 +01:00
Lorow
c96e1c9042 Add basic rest_api handler 2024-11-02 19:21:34 +01:00
Lorow
b27037d04b Add missing project config options 2024-10-29 20:53:43 +01:00
Lorow
2e76dd0276 Add support for AP and provisioned wifi networks 2024-10-27 16:01:13 +01:00
Lorow
19a2c25ce3 Cleanup UVC implementation 2024-10-22 23:42:03 +02:00
Lorow
23bb930255 PoC wired mode over UVC, add logs over websockets, needs cleanup 2024-10-19 14:24:50 +02:00
Lorow
5aec63c86b Add basic HTTP MJPEG stream server 2024-09-27 21:09:56 +02:00
Lorow
43b7386ac9 WIP port of camera manager 2024-09-25 21:34:42 +02:00