mirror of https://github.com/rusefi/wideband.git
heater too
This commit is contained in:
parent
fb66c03ac7
commit
495819659d
|
@ -12,6 +12,10 @@
|
|||
// 400khz / 1024 = 390hz PWM
|
||||
Pwm heaterPwm(PWMD1, 0, 400'000, 1024);
|
||||
|
||||
uint16_t GetHeaterDuty() {
|
||||
return heaterPwm.GetLastDuty();
|
||||
}
|
||||
|
||||
enum class HeaterState
|
||||
{
|
||||
Preheat,
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
void StartHeaterControl();
|
||||
bool IsRunningClosedLoop();
|
||||
uint16_t GetHeaterDuty();
|
||||
|
|
Loading…
Reference in New Issue