-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration for AEA3 encoder (#214)
* added new aea projx files * ems: added test project for the aea3 * added project for AEA3 test. it uses macro TEST_AEA3 to shape used code. * Added support for aea3. Code cleaup is work in progress (look at TODO marker) * bug fix mentioned in: sgiraz@562eb54#r54428766 * mc4plus: moved the tests for aea3 into a dedicated project and also added more heap * Add new target hal-mc4plus-ethdbg-aea3 with AEA3 macros * add missing code for aea3 in EOappEncodersReader.c and others. Edit the way to save the bits retrieved from the sensor in hal_spiencoder.c * Bugfix: EOappEncodersReader now init correctly with AEA * Add missing AEA3_SUPPORT macros * Fix minor improvements to hal * Update: disable TEST_AEA3 macro. Minor refactoring. * Add: define AEA3_MIN_SPIKE for AbsEncoder * Update the AEA3 reading compliant to the datasheet (1x16 consecutives clock cycles) * Fix temporarily spike detection algorithm when zero-crossing has been detected. Now it will not rise a spike when the encoder complete a turn. * Update zero-cross detection condition. Now it is more accurate * Update: AbsEncoder spike detection performed using int16_t overflow as a feature * Update: project settings * Update comments in both AbsEncoder and hal2 * ems: added test project for the aea3 * added project for AEA3 test. it uses macro TEST_AEA3 to shape used code. * Added support for aea3. Code cleaup is work in progress (look at TODO marker) * mc4plus: moved the tests for aea3 into a dedicated project and also added more heap * Add new target hal-mc4plus-ethdbg-aea3 with AEA3 macros * add missing code for aea3 in EOappEncodersReader.c and others. Edit the way to save the bits retrieved from the sensor in hal_spiencoder.c * Fix minor improvements to hal * Update: disable TEST_AEA3 macro. Minor refactoring. * Add: define AEA3_MIN_SPIKE for AbsEncoder * Update the AEA3 reading compliant to the datasheet (1x16 consecutives clock cycles) * Update: project settings * Update comments in both AbsEncoder and hal2 * Update configuration sources and delete test.aea3 project folder * adjusted merge conflicts of hal + appliciation after rebase vs robotology::devel * Removed macro HAL_SYS_VERIFY_STACK_HEAP_SIZES, updated libraried and FW version * Add test AEA2 and AEA3 in overridden_configurator under ifdef macros (disabled by default). * ems, mc4plus, mc2plus: enabled the second RAM bank to be able to increase HEAP to 63K and STACK to 12K increased application version to be one more than latest devel * mc4plus: removed the second RAM bank * ems, mc4plus, mc2plus: adjustment after the rebase vs latest robotology/devel Co-authored-by: marco.accame <[email protected]>
- Loading branch information
1 parent
f0c76ab
commit c9e9b37
Showing
32 changed files
with
447 additions
and
126 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.