Feat(#3): Add TMC anticogging slewratedetector#169
Open
manoukianv wants to merge 27 commits into
Open
Conversation
7a6ae9e to
e4df0e7
Compare
6a08cf6 to
a0d9a73
Compare
a0d9a73 to
dbdc12d
Compare
ab2f2ae to
e7ac16a
Compare
96d5c8d to
5cc4464
Compare
06a8e72 to
eac8b73
Compare
eac8b73 to
8fcc460
Compare
- Change forces array from int64_t to int32_t to avoid unnecessary 64-bit math overhead. - Deduplicate sine phase calculation using MATH_PI and MATH_SIN macros. - Restore magnitude/offset assignment in HidFFB instead of EffectsCalculator to maintain separation of concerns.
- Prevents breaking SerialFFB and other sources that don't push samples to the reconstruction filter.
- Use MATH_PI, MATH_SIN, and MATH_COS macros to remove duplicate ifdef blocks for direction calculations. - Fix Z-axis calculation missing DSP optimizations.
8fcc460 to
a413fde
Compare
…tial anti-cogging and code simplification
…nd command handler - Implement anti-cogging calibration using DFT frequency analysis. - Optimize RAM usage by reducing the flash write buffer from 32KB to 1KB. - Update STM32 Flash linker scripts (.ld) to allocate a safe, dedicated sector for cogging tables. - Optimize CommandHandler performance by preventing implicit std::string allocations (using append instead of +=) and removing costly vector shrink_to_fit calls. - Add linear interpolation on cogging samples and synchronize read processes.
a413fde to
71f0312
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.