1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-13 03:19:56 +03:00
Commit graph

7199 commits

Author SHA1 Message Date
Mark Haslinghuis
04ea058b30
Fix OSD search (#4533) 2025-06-30 14:55:50 +02:00
Mark Haslinghuis
bc1bb3e096
Fix virtual modes / messages (#4532) 2025-06-30 14:54:25 +02:00
David Anson
183e89419d
Replace all 4 instances of jBox-style modal dialog boxes with HTML dialog element (#4484)
* Replace all 4 instances of jBox-style modal dialog boxes with HTML dialog element

Notes:
- The Power & Battery (2), OSD, and CLI tabs have been updated accordingly
- HTML default control behavior was used whereever possible
- HTML indent for the dialog tag is deliberately off to minimize diff noise in GitHub
- Layout is not 100% identical, but spiratually the same - in most cases no changes were needed
- OSD’s Font Manager dialog didn’t transition cleanly, so includes some slight restyling
- OSD Font Manager previously had a green background/color for the graphic - that “just works” now
- Specific cleanup (i.e., calling destroy()) does not seem necessary and was removed
- Removal of jBox from setup.js and global scope seems not to affect jBox tooltips
- Replacement of single quotes with double in main.js was done automatically by Prettier

* Fix unclickable "Select custom image..." button in OSD tab due to overlapping layout; replace with CSS grid.

* Update OSD's Font Manager dialog to not have scroll bars by default (PR feedback).

* Update OSD's Font Manager dialog to remove overflow-y:scroll in order to avoid even a disabled scroll bar on some platforms/browsers (PR feedback).
2025-06-27 21:29:10 +02:00
Mark Haslinghuis
f068b1a67c
Add support for IMU3+ (Gyro Fusion) (#4490)
Add support for IMU3+
2025-06-23 21:35:30 +02:00
Mark Haslinghuis
c45a72e6ea
Fix webserial device not found (#4529)
* Fix webserial device not found

* Remove webserial portcounter
2025-06-23 20:30:02 +02:00
github-actions[bot]
9864ab7b34
Update translations (#4531)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-06-23 20:27:50 +02:00
Syahmi Zul
a571c78db2
UI : Preset positioning for elements in OSD (#4516)
* feat : Added preset positioning for elements in OSD

* fix : Memory leak fix

* fix : Global click handler is (re)bound once per field – memory-leak & duplicate callback risk

* feat & fix : made this actually work with advanced elements and now it should account the height

* refactor : reverted the change done on searchLimitsElement

* refactor : css cleanup

* fix : modified the z-index value since the tooltip was blocking it

* fix : some more missing fixes

* fix : more coderabbit fixes

* refactor : moved the menu hiding function to the module scope ,also renamed the function

* fix : coderabbit changes suggestion

* feat: recoded everything.

* fix : coderabbit changes

* refactor: modularize grid setup functions for better readability and maintainability

* refactor : coderabbit changes

* fix: clarify comments for inclusive range calculation and offset adjustments in OSD positioning

* fix: improve null checks and simplify error logging in OSD position application

* fix : fixed an issue where this didn't work on an actual device

* fix : fixed an issue where it was firing applyPosition multiple times

- It seems that if applyPosition is fired multiple times,the decode function would randomly fail.
2025-06-21 22:15:19 +02:00
Jay Blackman
3052b32966
PICO: Adding USB serial filter for PICO boards (#4521)
* PICO: Adding USB serial filter for PICO boards

* Updating based on coderabbit suggestion

* Devices may need updating once permissions are granted

* Checks for refresh
2025-06-20 20:58:16 +02:00
MikeNomatter
338c2d4444
Show vtx tab only when vtx build option used (#4526)
Move vtx from defaultAllowedTabs to defaultCloudBuildTabOptions
2025-06-20 20:57:13 +02:00
Mark Haslinghuis
4d8d3fd133
Fix auto-connect (#4523)
* Fix auto-connect

* Simplify

* Remove unneeded condition
2025-06-19 23:23:26 +02:00
Jay Blackman
5da844f020
REFACTOR: Removing a number of tracking events (superfluous) and combining others. (#4524)
* REFACTOR: Removing a number of tracking events (superfluous) and combining others.

* Removed unused dec
2025-06-19 23:23:04 +02:00
Jay Blackman
ed2e939e78
UI: Reduce size of switchery selectors (#4525) 2025-06-19 23:22:14 +02:00
github-actions[bot]
b52b4fea66
Update translations (#4519)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-06-17 20:32:36 +02:00
Mark Haslinghuis
7dd84f4cb8
Make loading GL transform less verbose (#4520)
* Make loading GL transform less verbose

* coderabbit strikes again
2025-06-17 17:54:36 +02:00
Vitroid
d8d5612ba7
Feature: Add modified loader to load arbitrary html as Vue apps (#4518)
* Refactor: Move Vue components to a dedicated module

* Feature: Add Vue component loader for tabs

* Refactor: Use agnostic loader naming

* Chore: Fix SonarCloud issue

* Enhancement: Improve Vue app cleanup process, add logging

* Refactor: Simplify Vue app mounting and enhance callback handling
2025-06-17 17:33:29 +02:00
Mark Haslinghuis
01503dc4fe
Fix missing callback (#4509)
* Add missing callback

* Add missing callback for bluetooth

* Fix async error handling and timing issues

* Fix bytesSent
2025-06-15 23:01:49 +02:00
Mark Haslinghuis
16ae2ac65f
cleanup and explicit use web prefix for protocols (#4500)
* cleanup

* more cleanup

* Reset connectionInfo

* Fix todo

* Fix default

* More explicit
2025-06-14 23:40:40 +02:00
Vitroid
52d3b8dbc5
Fix: Add null checks for search parameters, allowing proper functiona… (#4517)
* Fix: Add null checks for search parameters, allowing proper functionality

* Refactor: CodeRabbit nitpick to add array check
2025-06-14 00:51:39 +02:00
Mark Haslinghuis
a2474d9aec
Fix intermittent mouseover handler undefined issue (#4507)
* Fix intermittent mouseover handler handling

* Use optional chain expression
2025-06-13 23:10:34 +02:00
Mark Haslinghuis
a6f744d1a3
Fix range for angle_limit (#4512) 2025-06-13 23:09:29 +02:00
Mark Haslinghuis
f4f704ad34
Add IMM42652 (#4513) 2025-06-13 23:08:26 +02:00
Mark Haslinghuis
1457bccb76
Fix violation in motor slider events (#4514)
* Fix violation in motor slider events

* Fixes per review coderabbit
2025-06-13 23:06:34 +02:00
David Anson
dafacbd8e4
Represent OSD font characters using text/SVG instead of canvas/PNG for better performance (OSD tab loads in roughly half the time on an older Chromebook). (#4497) 2025-06-09 20:08:38 +02:00
Mark Haslinghuis
bbd99ea3ca
Fix duplicate ID (#4503) 2025-06-09 20:05:29 +02:00
github-actions[bot]
52ca9ebcaf
Update translations (#4506)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-06-09 19:38:40 +02:00
github-actions[bot]
1ff56c407b
Update translations (#4491)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-06-04 19:20:02 +02:00
Mark Haslinghuis
e85dbb71fd
Update sensor_types.js (ICM40609D) (#4492)
* Update sensor_types.js

* Fix quotation mark
2025-06-04 19:19:02 +02:00
Anwar Minarso
08e174821c
Upgrade Three.js to r176 & Adopt GLTF for 3-D Assets (#4496)
* Upgrade Three.js to r176 and migrate assets to GLTF

###  What’s new
* **Three.js** bumped from **r97 → r176**
* **All existing 3D assets converted to GLTF**
  * Smaller payloads, PBR-ready, future-proof.
* **New assets**
  * `resources/models/airplane.gltf` – ready for immediate use in demos.
  * `resources/models/car.gltf` – base mesh & materials; reserved for upcoming feature work.

* fix: rewrite src/js/model.js per CodeRabbitAI review

* fix: rewrite src/js/model.js per CodeRabbitAI review

Remove redundant Three.js imports

* Fix: Typo in comments

Corrected "modifie" to "modified" in various code comments.

* fix: Include missing fallback.gltf 3D model

This commit adds the 'resources/models/fallback.gltf' file, which was inadvertently excluded from a previous commit. This GLTF file is a converted version of the legacy 'fallback.json' 3D model.

* refactor: Recompress 3D models to reduce file size

This commit replaces existing 3D model assets with newly compressed versions. The recompression aims to significantly reduce file sizes without compromising visual quality, thereby improving overall application efficiency and resource loading.

* feat: Re-enable legacy 3D renderer for low-performance device compatibility

This commit reactivates the legacy 3D renderer, ensuring continued functionality for low-performance devices. This prevents the renderer from becoming a blocking issue for users with less powerful hardware.

Additionally, this update incorporates the latest 'Projector' import from the Three.js examples library into the CanvasRenderer, improving compatibility and leveraging recent advancements
2025-06-04 19:18:13 +02:00
Mark Haslinghuis
1809bb8f92
Add support for ICM45605 and ICM45686 (#4432)
* Add support for ICM45686

* Add ICM45605
2025-05-26 12:00:59 +02:00
Mark Haslinghuis
0214ba32a6
Fix camera angle not being saved (#4487)
* Fix camera angle not being saved

* Make sonar happy, maybe
2025-05-24 22:40:29 +02:00
Mark Haslinghuis
e8841f94f3
Reduce confusion selecting VTX (#4489) 2025-05-24 22:35:57 +02:00
LarryKarhu
b361b00024
adding TFNOVA - which requires firmware update (#4485)
* add switch TF-NOVA

* add sonar checkbox, icons sonar and language localization

* a little cleaning

* Duplication fixed

* changed locales/

* add png osd and delete "TFNOVA"

* add lidar TFNOVA

* add support TFNOVA on firmware >= 1.47

* delete icon 'lidar'

* // delete

* correction
2025-05-24 21:37:44 +02:00
Mark Haslinghuis
0349f3e02a
Include support ID when saving to file (#4483)
* Include support ID when saving to file

* Update src/js/tabs/cli.js

Co-authored-by: nerdCopter <56646290+nerdCopter@users.noreply.github.com>

---------

Co-authored-by: nerdCopter <56646290+nerdCopter@users.noreply.github.com>
2025-05-21 23:08:35 +02:00
Mark Haslinghuis
7108ed7bb8
Fix alignment backwards compatibility (#4481)
Fix backwards compatibility
2025-05-21 13:51:10 +02:00
Mark Haslinghuis
e26ba79c8e
Fix throttle curve backwards compatibility (#4478) 2025-05-21 13:26:21 +02:00
Jay Blackman
9f72b8a8b5
Update .coderabbit.yaml to remove initial placeholder comment 2025-05-17 08:56:37 +10:00
Jay Blackman
36fd8f57c9
Update deploy-preview.yml for short sha (#4475)
* Update deploy-preview.yml for short sha

* Fixing to use pages-deployment-alias-url
2025-05-16 23:32:42 +02:00
nerdCopter
16c3b2ee4a
fix preview checkout (#4468)
* fix preview checkout

* coderabbit recommended issues: write permission

* coderabbitAI implement security improvement

* newline
2025-05-15 20:58:02 +02:00
Mark Haslinghuis
9baef76904
Allow execution when either Web Serial, Bluetooth or USB API is present (#4470)
* Allow execution when either webserial, webbluetooth or webusb API is available

* Fix todo

* Add passing missing properties

* Update browser detection

* Remove commented code

* Indentation

* Update presentation of errorMessage

* cleanup

* Consistency

* Nitpicks

* Remove writeValueWithResponse

* More nitpicks
2025-05-15 19:03:53 +02:00
Mark Haslinghuis
77a719dd2d
Remove last references to chrome.app (#4469)
* Remove last references to chrome.app

* Update reference

* Remove unused import
2025-05-15 00:32:37 +02:00
ke deng
1cecebc8e4
Fix AT32 Configuration can't be saved on MacOS (#4455)
* Fix AT32 Configuration can't be saved on MacOS

* Update src/js/protocols/WebSerial.js

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Change the location of the macOS judgment

* Adding logging for batch write mode detection

* Refactoring for MacOS detection

* fix GUI is not exported

* Change this.logHead to logHead

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-05-13 00:03:25 +02:00
Marc Frank
6696b93371
add x sampling to throttle curve preview to match firmware (#4439)
* add x sampling to throttle curve preview to match firmware

* Clamp throttle value to the range [0, 1] in PID tuning initialization to avoid  senseless output

* revert previous change and clamp expothr to 0..100

* fix throttle curve preview when throttle limit is scale

* ¯\_(ツ)_/¯ AI rewrite of the  redrawThrottleCurve() function. Could not get the Throttle Limit type Clip to draw correctly. This works perfectly.

* revert control point movent to 4.5 method

* conciseify comments
2025-05-09 22:33:24 +02:00
Mark Haslinghuis
c5f5e15a6a
Fix backwards compatibility for sensor info (#4464) 2025-05-06 22:45:58 +02:00
github-actions[bot]
6f35f09114
Update translations (#4463)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-05-05 16:39:52 +02:00
David Anson
7e807c8d5c
Update Setup tab to hide build type/info/firmware when not available (#4459) (#4460)
Update Setup tab to hide build type/info/firmware when not available
2025-05-05 15:57:25 +02:00
Mark Haslinghuis
1a3a94938a
Fix GNSS status icon when fix is attained without sat info (#4461)
Fix GNSS status when fix is attained without sat info
2025-05-05 15:23:01 +02:00
Jay Blackman
27791d909e
Add coderabbit config (#4458)
* Add coderabbit config

- removing netlify.toml

* Request changes?
2025-05-03 23:21:28 +02:00
Jay Blackman
b65506458c
Ensure single comment is created (#4457)
* Ensure single comment is created

* Give it a branch name
2025-05-03 20:12:34 +10:00
Mark Haslinghuis
fe72268dbd
Update OS check (#4456)
* Update OS check

* Add MacOS
2025-05-02 22:22:16 +02:00
Mark Haslinghuis
5af689616f
Fix serial (#4449)
* Improve serial

* Add autodetect changes
2025-05-02 21:26:15 +02:00