Skip to content

Commit

Permalink
nc wss scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Nov 7, 2024
1 parent cb4c490 commit 1072297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/controllers/can/can_vss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ expected<WssResult> processBMW_e90Wss(const CANRxFrame& frame) {
}

static constexpr float NcWss(uint16_t data) {
return (SWAP_UINT16(data) - 10000);
return 0.01f * SWAP_UINT16(data) - 100;
}

expected<WssResult> processMx5NcWss(const CANRxFrame& frame) {
Expand Down

0 comments on commit 1072297

Please sign in to comment.