fome-fw/firmware/controllers/core/engine_module.h

26 lines
619 B
C
Raw Normal View History

2022-09-01 08:21:00 -07:00
/**
* @file engine_module.h
*/
#pragma once
2022-09-07 13:25:50 -07:00
#include "engine_configuration.h"
class EngineModule {
public:
2022-04-15 19:56:23 -07:00
// Called when 'Burn' is invoked
virtual void onConfigurationChange(engine_configuration_s const * /*previousConfig*/) { }
// Called approx 20Hz
virtual void onSlowCallback() { }
// Called approx 200Hz
virtual void onFastCallback() { }
// Called whenever the ignition switch state changes
virtual void onIgnitionStateChanged(bool /*ignitionOn*/) { }
// Queried to determine whether this module needs a delayed shutoff, defaults to false
virtual bool needsDelayedShutoff() { return false; }
};