-
Notifications
You must be signed in to change notification settings - Fork 25
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
WB-MAI6: Add supply voltage channel #846
Conversation
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the WalkthroughThis pull request updates the Changes
Possibly related PRs
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
templates/config-wb-mai6.json.jinja
Outdated
"name": "Supply Voltage", | ||
"reg_type": "input", | ||
"address": 121, | ||
"type": "voltage", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"type": "voltage", | |
"type": "value", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Во всех местах нужно поменять voltage на value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Существующие не надо менять, а при добавлении новых уже использовать value.
Подробнее тут https://github.com/wirenboard/conventions?tab=readme-ov-file#specific-value-type-control:
WARNING: These control types are deprecated. It is recommended to use units property instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сломалась генерация шаблона для ONI. Он делается из этого шаблона
unknown file: Failure
C++ exception with description "Failed to parse JSON test/../build/templates/config-oni-plc-w-ema-06u00.json:* Line 5391, Column 17
Missing ',' or '}' in object declaration
" thrown in the test body.
test/utils/testlog.cpp:58: Failure
templates/config-wb-mai6.json.jinja
Outdated
@@ -1058,6 +1069,7 @@ | |||
"IN_P_title": "Channel P", | |||
"IN_N_title": "Channel N", | |||
"external_voltage_divider_description": "External voltage divider is used to measure voltage higher than 30V and to get higher input resistance. Output voltage of the divider should be in the range from 0 to 4V (better to 2V). Supported since firmware version 2.1.0." | |||
"Supply Voltage": "5V Supply", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Supply Voltage": "5V Supply", | |
"Supply Voltage": "5V Supply" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
templates/config-wb-mai6.json.jinja
Outdated
@@ -1058,6 +1069,7 @@ | |||
"IN_P_title": "Channel P", | |||
"IN_N_title": "Channel N", | |||
"external_voltage_divider_description": "External voltage divider is used to measure voltage higher than 30V and to get higher input resistance. Output voltage of the divider should be in the range from 0 to 4V (better to 2V). Supported since firmware version 2.1.0." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"external_voltage_divider_description": "External voltage divider is used to measure voltage higher than 30V and to get higher input resistance. Output voltage of the divider should be in the range from 0 to 4V (better to 2V). Supported since firmware version 2.1.0." | |
"external_voltage_divider_description": "External voltage divider is used to measure voltage higher than 30V and to get higher input resistance. Output voltage of the divider should be in the range from 0 to 4V (better to 2V). Supported since firmware version 2.1.0.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
templates/config-wb-mai6.json.jinja
Outdated
@@ -1057,7 +1068,8 @@ | |||
"baud_rate_description": "Make sure that communication with device is established before changing this parameter. Select required baud rate, save configuration and then change port baud rate to the same value.", | |||
"IN_P_title": "Channel P", | |||
"IN_N_title": "Channel N", | |||
"external_voltage_divider_description": "External voltage divider is used to measure voltage higher than 30V and to get higher input resistance. Output voltage of the divider should be in the range from 0 to 4V (better to 2V). Supported since firmware version 2.1.0." | |||
"external_voltage_divider_description": "External voltage divider is used to measure voltage higher than 30V and to get higher input resistance. Output voltage of the divider should be in the range from 0 to 4V (better to 2V). Supported since firmware version 2.1.0.", | |||
"Supply Voltage": "5V Supply" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я за то, чтобы топик сразу назвать правильно. К Supply Voltage (напряжение питания) он не имеет никакого отношения.
Internal 5V Bus Voltage
- как-то так. И перевод не потребуется.
Потому что тут непонятки, а на МАПе скорее всего неправильное название заткнули переводом.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
Добавил контрол Supply Voltage (регистр 121)
Summary by CodeRabbit
New Features
Bug Fixes
min_request_interval
parameter.Documentation