2021-06-27 15:51:34 -07:00
|
|
|
#pragma once
|
|
|
|
|
2021-10-13 21:47:26 -07:00
|
|
|
#include "ac_control_generated.h"
|
2023-08-30 20:11:24 -07:00
|
|
|
#include <rusefi/timer.h>
|
2021-06-27 15:51:34 -07:00
|
|
|
|
2023-09-26 04:12:11 -07:00
|
|
|
class AcController : public ac_control_s, public EngineModule {
|
2021-10-13 21:47:26 -07:00
|
|
|
public:
|
2023-09-26 04:12:11 -07:00
|
|
|
using interface_t = AcController;
|
|
|
|
|
2021-11-25 04:59:31 -08:00
|
|
|
void onSlowCallback() override;
|
|
|
|
|
2023-09-26 04:12:11 -07:00
|
|
|
virtual bool isAcEnabled() const;
|
2021-10-13 21:47:26 -07:00
|
|
|
|
|
|
|
private:
|
2021-11-16 01:15:29 -08:00
|
|
|
bool getAcState();
|
2021-11-25 04:59:31 -08:00
|
|
|
|
2022-08-31 16:01:42 -07:00
|
|
|
Timer m_timeSinceNoAc;
|
2021-10-13 21:47:26 -07:00
|
|
|
};
|