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

Per-user config implementation #9

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

ntoivola
Copy link

@ntoivola ntoivola commented Nov 6, 2023

Here's a proposed implementation for the per-user customization functionality mentioned in the README. That's a brilliant idea.

I think my approach is better than just adding the custom user directory at the beginning of INCLUDES as suggested by a comment in build.sh, as this allows one to override individual settings without having to replicate the entire config-defaults.h and/or anduril.h.

I don't know if this is at all what you had in mind but let me know what you think!

@Fescron
Copy link

Fescron commented Nov 29, 2023

This seems to be well documented and working fine. I can now create a .hex-file for my TS10 with all my preferred settings without having to actually configure them after flashing (new) firmware, thank you!

@Fescron
Copy link

Fescron commented Nov 29, 2023

On 2023/11/29 22:14 CET SammysHP wrote:
This makes the assumption that the personal configuration applies to all targets in the same way. Well, for me that's definitely not the case. There are many (subtle) differences between my lights, for example floor/ceiling, the number of steps to get exactly MAX_7135, configuration of channels etc.

I keep common options in a file that I can include in my customized target configurations.

I don't think this is (completely) correct? From his documentation I read the following:

To customize the configuration for a specific model, create a users/<username>/<manufacturer>/<model>/config.h file (same directory structure as that under hw, just replace hw with users/<username>).

And as far as I can tell it works as expected. When doing this in my case with users/brecht/wurkkos/ts10/rgbaux/config.h and running ./make wurkkos ts10 rgbaux I get only one .hex file (for the TS10) with my correct configuration-settings. I have not tested merging config.h files though.

@ntoivola
Copy link
Author

Hey, thanks for the comments. Indeed, the global user customizations are included first followed by the model-specific ones, so you can have a combination of customized defaults common to all lights and model-specific settings. I'm sure there are some scenarios that this approach cannot handle, but so far this is working well for me.

@SammysHP
Copy link
Contributor

Yeah, I've seen that just a second later. That's why I had removed my comment immediately.

gretel added a commit to gretel/anduril that referenced this pull request Dec 20, 2023
gretel added a commit to gretel/anduril that referenced this pull request Dec 20, 2023
gretel added a commit to gretel/anduril that referenced this pull request Dec 20, 2023
gretel added a commit to gretel/anduril that referenced this pull request Dec 20, 2023
gretel added a commit to gretel/anduril that referenced this pull request Dec 20, 2023
gretel added a commit to gretel/anduril that referenced this pull request Dec 20, 2023
gretel added a commit to gretel/anduril that referenced this pull request Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants