mirror of https://github.com/rusefi/rusefi.git
wideband magic numbers
This commit is contained in:
parent
ac1450487b
commit
d4db234cf6
|
@ -5,6 +5,7 @@
|
|||
#include "ch.h"
|
||||
#include "can_msg_tx.h"
|
||||
#include "rusefi_wideband.h"
|
||||
#include "wideband_firmware/for_rusefi/wideband_can.h"
|
||||
|
||||
// This file contains an array called build_wideband_noboot_bin
|
||||
// This array contains the firmware image for the wideband contoller
|
||||
|
@ -49,7 +50,7 @@ void updateWidebandFirmware() {
|
|||
for (int i = 0; i < 2; i++) {
|
||||
{
|
||||
// Send bootloader entry command
|
||||
CanTxMessage m(CanCategory::WBO_SERVICE, 0xEF0'0000, 0, bus, true);
|
||||
CanTxMessage m(CanCategory::WBO_SERVICE, WB_BL_ENTER, 0, bus, true);
|
||||
}
|
||||
|
||||
if (!waitAck()) {
|
||||
|
@ -115,7 +116,7 @@ void setWidebandOffset(uint8_t index) {
|
|||
efiPrintf("Setting all connected widebands to index %d...", index);
|
||||
|
||||
{
|
||||
CanTxMessage m(CanCategory::WBO_SERVICE, 0xEF4'0000, 1, getWidebandBus(), true);
|
||||
CanTxMessage m(CanCategory::WBO_SERVICE, WB_MSG_SET_INDEX, 1, getWidebandBus(), true);
|
||||
m[0] = index;
|
||||
}
|
||||
|
||||
|
@ -127,7 +128,7 @@ void setWidebandOffset(uint8_t index) {
|
|||
}
|
||||
|
||||
void sendWidebandInfo() {
|
||||
CanTxMessage m(CanCategory::WBO_SERVICE, 0xEF5'0000, 2, getWidebandBus(), true);
|
||||
CanTxMessage m(CanCategory::WBO_SERVICE, WB_MGS_ECU_STATUS, 2, getWidebandBus(), true);
|
||||
|
||||
float vbatt = Sensor::getOrZero(SensorType::BatteryVoltage) * 10;
|
||||
|
||||
|
|
Loading…
Reference in New Issue