drivers/sensors: Add support to mt6816 magnetic encoder#18807
Draft
acassis wants to merge 5 commits intoapache:masterfrom
Draft
drivers/sensors: Add support to mt6816 magnetic encoder#18807acassis wants to merge 5 commits intoapache:masterfrom
acassis wants to merge 5 commits intoapache:masterfrom
Conversation
42d5c5f to
ababa9a
Compare
Contributor
Author
|
@simbit18 do you have some idea about this error: |
Contributor
|
Hi @acassis It seems that this recent PR #18801 has broken the MSVC job @LingaoM @xiaoxiang781216 Can you check? |
Contributor
Author
Thank you @simbit18 ! Do you have some idea to fix the msvc? |
Contributor
Author
|
BTW I will convert this PR to Draft until #18798 get merge |
Contributor
|
oh, sorry for missing MSVC, please checkout this PR(#18809). |
NuttX uses Quadrature Encoder lower half driver to internal QE from MCUs and also with Magnetic Rotary Encoder sensors. But when the STM32 QE is not enabled, the board code will try to compile the stm32_qencoder.c because Magnetic Rotary Encoders enables the CONFIG_SENSORS_QENCODER. This patch fixes this issue. Signed-off-by: Alan C. Assis <acassis@gmail.com>
This definition is needed to have multiplese Magnetic Sensors in the same board. Signed-off-by: Alan C. Assis <acassis@gmail.com>
This commit adds support to MagTek MT6816 sensor Signed-off-by: Alan C. Assis <acassis@gmail.com>
This commit add support to use MagTek Magnetic Rotary Encoder MT6816 on STM32F4Discovery board. Signed-off-by: Alan C. Assis <acassis@gmail.com>
This commit explain that the QE encoder driver can be used to internal QE from microcontroller or external magnetic encoder. Also explains how to use the mt6816 board profile to STM32F4Discovery Signed-off-by: Alan C. Assis <acassis@gmail.com>
ababa9a to
b6f11d1
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.
Summary
This PR adds support mt6816 magnetic rotary encoder.
Impact
Users will be able to use this low cost magnetic encoder with NuttX.
Testing