mirror of
https://github.com/mck1117/wideband.git
synced 2026-11-05 03:46:30 -05:00
21 lines
417 B
C++
21 lines
417 B
C++
#include "wideband_config.h"
|
|
#include "wideband_controller.h"
|
|
|
|
static WidebandController controllers[AFR_CHANNELS];
|
|
|
|
WidebandController& GetController(size_t idx)
|
|
{
|
|
return controllers[idx];
|
|
}
|
|
|
|
WidebandController::WidebandController()
|
|
: heaterPid(
|
|
0.3f, // kP
|
|
0.3f, // kI
|
|
0.01f, // kD
|
|
3.0f, // Integrator clamp (volts)
|
|
HEATER_CONTROL_PERIOD
|
|
)
|
|
{
|
|
}
|