Skip to content

Conversation

@chatelao
Copy link
Contributor

@chatelao chatelao commented Nov 3, 2025

This commit adds the most common CV registers to the project and initializes them with standard default values as specified by the NMRA. This provides a more robust and standards-compliant default configuration for the decoder.

The following changes were made:

  • Added and initialized CVs for consist addressing, function control, and other common features.
  • Updated existing CVs to align with NMRA standards where they differed.
  • Improved readability by using decimal values for CVs and adding descriptive comments.

This commit adds the most common CV registers to the project and initializes them with standard default values as specified by the NMRA. This provides a more robust and standards-compliant default configuration for the decoder.

The following changes were made:
- Added and initialized CVs for consist addressing, function control, and other common features.
- Updated existing CVs to align with NMRA standards where they differed.
- Improved readability by using decimal values for CVs and adding descriptive comments.
@gab-k
Copy link
Owner

gab-k commented Nov 29, 2025

The values are deliberately written as binary, also it looks like some of the default value comments are removed.

Additionally some of the CVs are not implemented so i think this would cause more confusion than clarity.

Take "1, //CV_28 - RailCom Configuration - Default: RailCom enabled" as an example, railcom is not implemented at all.

I get what you were trying to do here, its just that i dont think it improves clarity or readability.

@gab-k gab-k closed this Nov 29, 2025
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.

2 participants