Skip to content

Battery protection (#888)#7

Merged
sshane merged 1 commit intosshane:stock_develfrom
commaai:devel
Dec 4, 2019
Merged

Battery protection (#888)#7
sshane merged 1 commit intosshane:stock_develfrom
commaai:devel

Conversation

@sshane
Copy link
Copy Markdown
Owner

@sshane sshane commented Dec 4, 2019

  • Battery protection

If your car battery voltage is lower than 0% switch off charging to stop the Eon from damaging the 12v car battery. Leaving you with a car that can not start but has a fully charged eon ;-)

  • add rbiasini comment && !ignition

  • Update Offroad_ChargeDisabled with voltage low

  • simplify alert

  • non-temporal hysteresis from @rbiasini

And up the start charge limit to 12v. i.e. 50% car battery voltage

  • once battery power recovers to 11.500 volts charge

This leaves 1v inbetween for any fluctuations that could occur.

  • fix indent

  • Fix indent of whole block

It looks like sometimes when you copy and paste into the github web interface some white spacing gets added or removed. BE AWARE!

Choose one of the templates below:

Fingerprint

This pull requests adds a fingerprint for <Make - Model - Year - Trim>.

This is an explorer link to a drive with the stock system enabled: ...

Car support

This pull requests adds support for <Make - Model - Year - Trim>.

This is an explorer link to a drive with the stock system enabled: ...
This is an explorer link to a drive with openpilot system enabled: ...

Feature

This pull requests adds feature X

Description

Explain what the feature does

Testing

Explain how the feature was tested. Either by the added unit tests, or what tests were performed while driving.

* Battery protection

If your car battery voltage is lower than 0% switch off charging to stop the Eon from damaging the 12v car battery. Leaving you with a car that can not start but has a fully charged eon ;-)

* add rbiasini comment && !ignition

* Update Offroad_ChargeDisabled with voltage low

* simplify alert

* non-temporal hysteresis from @rbiasini

And up the start charge limit to 12v. i.e. 50% car battery voltage

* once battery power recovers to 11.500 volts charge

This leaves 1v inbetween for any fluctuations that could occur.

* fix indent

* Fix indent of whole block

It looks like sometimes when you copy and paste into the github web interface some white spacing gets added or removed. BE AWARE!
@sshane sshane merged commit dbf323e into sshane:stock_devel Dec 4, 2019
Aragon7777 referenced this pull request in Aragon7777/openpilot Jun 21, 2021
* spacing ? tabs? which one is it lol

* Update ui.hpp
Aragon7777 referenced this pull request in Aragon7777/openpilot Oct 1, 2021
sshane pushed a commit that referenced this pull request Jan 17, 2023
Update interface.py for Bolt lateral and stop and go
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.

3 participants