Skip to content
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

Add functionality to support two char layouts. Add OA layout. #113 #114

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

stylesuxx
Copy link
Contributor

This is a suggestion for 2 character layouts.

We would be able to add new layouts with new numbers basically arbitrarily. I think this is better than going in alphabetical order since we can relate new layouts. For example, the new OA layout is based on the O layout - the relationship is pretty clear just by the name.

Technically this implementation would also allow us to use longer layout names - basically all the additional space that is blocked by spaces in the end could be used as layout name - I would not do it for now, but it would be an option.

I also asked over at BLHeli if there are any plans of adding more layouts, if that would be the case we would need make sure to have them properly synced up (bitdump/BLHeli#698).

Open for suggestions here though - I am aware that it's not as elegant with the direct conversion from letter to ASCII code and such, but it seems like the most pragmatic solution.

@stylesuxx stylesuxx requested a review from damosvil June 14, 2023 16:03
@stylesuxx stylesuxx linked an issue Jun 14, 2023 that may be closed by this pull request
@stylesuxx stylesuxx marked this pull request as ready for review June 19, 2023 13:20
@stylesuxx
Copy link
Contributor Author

Test hardware should soon arrive, I will re-base and build a test hex asap.

@stylesuxx
Copy link
Contributor Author

OA-hex.zip

@stylesuxx stylesuxx requested a review from damosvil June 21, 2023 16:49
@stylesuxx stylesuxx merged commit 5d8a895 into v0.20 Jun 21, 2023
@stylesuxx stylesuxx added this to the v0.20.0 milestone Jun 21, 2023
@stylesuxx stylesuxx deleted the feature/more-layouts branch July 2, 2023 13:30
stylesuxx added a commit that referenced this pull request Jul 14, 2023
* Codebase splitted in modules
* Updated makefile for splitting
* 'Cherry picked' 0.19.2 bugfix.
* Update editorconfig
* Removed dangling ENDIF
* Open bootloader file with banner
* Add autoformatter and linting tool
* Initial pass with the formatter
* Disable comment formatting by default (except inline comments)
* Make sure all files end with an empty line
* Unified comments in layout files according to #96
* Unified comments in accordance to #96
* Unified pinouts in main and layout files #13
* Do not remove spaces in inline comments
* Last pass with the formatter
* This commit reduces the scheduler timebase from 16ms to 128ms to interfere the minimum with commutation
* Refactored duplicate assignments #99 (#101)
* Refactored duplicate assignments
* Refactored CSEG definitions into separate file
* Refactored MCU types and checks
* Fixed check time bug and replaced schedule time literals by macros
* Replaced Stop_Adc and Start_Adc macro calls by Reastart_Adc macro call
* Updated names to more descriptive.
Added parameter to select timebase depending on the needs. Scheduler cycle set to 1024ms by default.
* Add 'enums' for PWM frequency and resolution #103 (#104)
* Bugfix/bring back bidirectional 3d mode (#105)
* Fixed temperature limiting affecting to 3D mode.
* Fixed Pwm_Limit_By_Rpm to match comments concept
* Implemented EDT safety arm feature
* Disable temp protection by default #95 (#100)
* Add ENUM for DSHOT commands (#117)
* Refactored MCU specific offsets to separate module (#116)
* Use a single macro for values. (#120)
* Renamed functions to improve readability
* Update melody size and tag count to be a single macro
* Implemented lock and unlock flash macros (#121)
* Refactored 16 bit division by two into seperate macro #112 (#119)
* Initial draft for supporter section (#89)
* Bump version number and mark as DEV version #122 (#124)
* Add TuneRC and T-Motor to the supporter section #85
* Add functionality to support two char layouts. Add OA layout. #113 (#114)
* Removed relative jumps (#126)
* Added/improved a couple of comments to better explain what is going on. (#107)
* Improved documentation, unified formatting, added explanations where necessary.
* Disable dithering by default (#130)
* Allow version string to be passed to Makefile via buildscript (for naming resulting files) (#128)
* RC7 tag (#132)
* Apply version also if building all files
* Fixed RC version
* Further reducing motor speed before changing direction in 3D bidirectional mode (#138)
* RC10
* Add happymodel and weebleed to the 'Supporters' section #139 (#140)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add more layouts
2 participants