-
-
Notifications
You must be signed in to change notification settings - Fork 23
Therm Broadcast Fixes + ... #2092
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
base: master
Are you sure you want to change the base?
Changes from 13 commits
cc9d12b
ab3fcea
deb5977
85c7632
e08294f
3b8235b
7faa5fe
6343e5e
51468cf
cb32e23
51ec0e9
b62d613
f524305
a8e1199
32bd18a
e8e3504
594bb48
9d2fe4e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,7 +23,7 @@ namespace balancingState | |
| (io::irs::negativeState() == app::can_utils::ContactorState::CONTACTOR_STATE_OPEN); | ||
| const bool balancing_enabled = app::can_rx::Debug_CellBalancing_Request_get(); | ||
|
|
||
| if (balancing_enabled && !ir_negative_open) | ||
| if (balancing_enabled && ir_negative_open) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think ir negative has to be closed for balancing by rules
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we gotta be hv up, but yeah ir negative closed is closer to rules |
||
| { | ||
| app::segments::balancing::tick(); | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ | |
| #include <expected> | ||
|
|
||
| // Physical daisy-chain dimensions for this ECU. | ||
| inline constexpr uint8_t NUM_SEGMENTS = 10; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. revert |
||
| inline constexpr uint8_t NUM_SEGMENTS = 1; | ||
| inline constexpr uint8_t CELLS_PER_SEGMENT = 14; | ||
| inline constexpr uint8_t THERMISTORS_PER_SEGMENT = 14; | ||
| inline constexpr uint8_t THERM_GPIOS_PER_SEGMENT = 8; | ||
|
|
@@ -238,6 +238,7 @@ namespace read | |
| [[nodiscard]] Segments<result<int16_t>> segVoltage(); | ||
| [[nodiscard]] ThermGpios<result<int16_t>> thermGpioVoltage(); | ||
| [[nodiscard]] Segments<StatusGroupsRes> status(); | ||
| [[nodiscard]] Segments<result<uint64_t>> serialNum(); | ||
| } // namespace read | ||
|
|
||
| namespace command | ||
|
|
@@ -267,7 +268,6 @@ namespace command | |
| [[nodiscard]] result<void> pollAuxAdc(); | ||
| [[nodiscard]] result<void> startBalance(); | ||
| [[nodiscard]] result<void> stopBalance(); | ||
|
|
||
| [[nodiscard]] result<void> owcCells(OpenWireSwitch owcSwitch); | ||
| } // namespace command | ||
|
|
||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is breaking, make sure to merge asap |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,11 @@ enum class ErrorCode | |
| INVALID_READING, | ||
| ERROR_INDETERMINATE, | ||
| POLL_INVALID, | ||
| THERM_OUT_OF_RANGE, | ||
| NUM_EXIT_CODES, | ||
| LUT_INVALID, | ||
| LUT_OVERSHOOT, | ||
| LUT_UNDERSHOOT | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also surely num at the end |
||
| }; | ||
|
|
||
| template <typename T> using result = std::expected<T, ErrorCode>; | ||
|
|
@@ -47,6 +51,8 @@ constexpr const char *error_code_to_string(const ErrorCode code) | |
| return "Indeterminate error"; | ||
| case ErrorCode::POLL_INVALID: | ||
| return "Poll invalid"; | ||
| case ErrorCode::THERM_OUT_OF_RANGE: | ||
| return "Therm out of range"; | ||
| case ErrorCode::NUM_EXIT_CODES: | ||
| default: | ||
| return "Unknown error code"; | ||
|
|
||
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.
revert this