-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
fixed wrong gravity setting, added option for no trail #4665
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
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThe changes focus exclusively on the Changes
Possibly related PRs
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ast-grep (0.31.1)wled00/FX.cpp📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
wled00/FX.cpp (1)
9387-9387: Separated colorful mode flag from trail option.The condition for colorful mode now uses SEGMENT.check1 instead of SEGMENT.check2, which properly separates these features. This allows users to independently control both the colorful mode and trail options.
There's a small typo in the comment: "colorufl" should be "colorful".
- if (SEGMENT.check1) // colorufl mode + if (SEGMENT.check1) // colorful mode
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
wled00/FX.cpp(5 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (18)
- GitHub Check: wled_build / Build Environments (usermods)
- GitHub Check: wled_build / Build Environments (esp32_wrover)
- GitHub Check: wled_build / Build Environments (esp32c3dev)
- GitHub Check: wled_build / Build Environments (esp32s3dev_8MB_opi)
- GitHub Check: wled_build / Build Environments (esp32s3dev_16MB_opi)
- GitHub Check: wled_build / Build Environments (esp32s3_4M_qspi)
- GitHub Check: wled_build / Build Environments (esp32_eth)
- GitHub Check: wled_build / Build Environments (esp32dev_V4)
- GitHub Check: wled_build / Build Environments (lolin_s2_mini)
- GitHub Check: wled_build / Build Environments (esp32dev)
- GitHub Check: wled_build / Build Environments (esp01_1m_full_compat)
- GitHub Check: wled_build / Build Environments (esp8266_2m)
- GitHub Check: wled_build / Build Environments (esp01_1m_full_160)
- GitHub Check: wled_build / Build Environments (nodemcuv2_160)
- GitHub Check: wled_build / Build Environments (nodemcuv2)
- GitHub Check: wled_build / Build Environments (nodemcuv2_compat)
- GitHub Check: wled_build / Build Environments (esp01_1m_full)
- GitHub Check: wled_build / Build Environments (esp8266_2m_160)
🔇 Additional comments (5)
wled00/FX.cpp (5)
9311-9311: LGTM - comment clarification.The comment update clarifies that this is an advanced particle system.
9327-9328: Fixed gravity calculation.The gravity calculation has been improved by separating the computation and conditional application. This fixes the issue mentioned in the PR title and makes the code more readable.
9343-9344: Improved rocket lifetime parameters for trail option.The changes reduce the minimum lifetime from 100 to 30 and make the maximum lifetime conditional:
- When trail option is enabled (SEGMENT.check2): 400 (longer trail)
- When trail option is disabled: 40 (shorter/no trail)
This directly addresses the PR objective "added option for no trail".
9383-9383: Dynamic particle size based on intensity.Changed from a fixed size of 64 to a randomized size based on SEGMENT.intensity, which allows more variation and control over the visual effect.
9407-9407: Updated effect metadata for new options.The metadata string was updated to include "Colorful" and "Trail" parameters, with corresponding option flags (o1=1,o2=1). This properly documents the new functionality added to the effect.
Summary by CodeRabbit