mirror of https://github.com/rusefi/wideband.git
send heater duty
This commit is contained in:
parent
4f2fd95c46
commit
6557809da2
|
@ -128,5 +128,6 @@ void SendRusefiFormat(uint8_t idx)
|
|||
frame.get().NernstDc = GetNernstDc() * 1000;
|
||||
frame.get().PumpDuty = GetPumpOutputDuty() / 4;
|
||||
frame.get().Status = GetCurrentFault();
|
||||
frame.get().HeaterDuty = GetHeaterDuty() / 4;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -204,3 +204,8 @@ void SetHeaterAllowed(bool allowed)
|
|||
{
|
||||
heaterAllowed = allowed;
|
||||
}
|
||||
|
||||
uint16_t GetHeaterDuty()
|
||||
{
|
||||
return heaterPwm.GetLastDuty();
|
||||
}
|
||||
|
|
|
@ -6,3 +6,4 @@ void StartHeaterControl();
|
|||
bool IsRunningClosedLoop();
|
||||
void SetBatteryVoltage(float vbatt);
|
||||
void SetHeaterAllowed(bool allowed);
|
||||
uint16_t GetHeaterDuty();
|
||||
|
|
|
@ -38,7 +38,8 @@ struct DiagData
|
|||
uint8_t PumpDuty;
|
||||
Fault Status;
|
||||
|
||||
uint16_t pad;
|
||||
uint8_t HeaterDuty;
|
||||
uint8_t pad;
|
||||
};
|
||||
|
||||
static const char* describeFault(Fault fault) {
|
||||
|
|
Loading…
Reference in New Issue