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

Replace vbat_max_cell_voltage by the new vbat_cell_detect_voltage setting for detecting number of battery cells #3166

Merged

Conversation

shellixyz
Copy link
Collaborator

No description provided.

@@ -79,6 +79,7 @@ PG_RESET_TEMPLATE(batteryConfig_t, batteryConfig,

.voltage = {
.scale = VBAT_SCALE_DEFAULT,
.cellDetect = 430,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remember to increase version when adding new parameters to PGs
PG_REGISTER_WITH_RESET_TEMPLATE(batteryConfig_t, batteryConfig, PG_BATTERY_CONFIG, 1);

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed I forgot about the PG version. I think we could also set vbat_max_cell_voltage default to 4.20V now since it is not used for the cell count detection anymore and lower VBATT_CELL_FULL_MAX_DIFF default accordingly to 0.10V.

@digitalentity digitalentity added this to the 2.0 milestone May 5, 2018
@digitalentity
Copy link
Member

Also, MSP API and Configurator will have to be modified.

@shellixyz shellixyz force-pushed the add_vbat_cell_detect_voltage branch from fabd9be to 4b286f6 Compare May 5, 2018 23:55
@shellixyz shellixyz force-pushed the add_vbat_cell_detect_voltage branch from 4b286f6 to 49b3444 Compare May 5, 2018 23:56
@shellixyz
Copy link
Collaborator Author

Should be good for the firmware part

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