fome-fw/firmware/controllers/algo/algo.cpp

45 lines
1.3 KiB
C++
Raw Normal View History

2014-08-29 07:52:33 -07:00
/*
* @file algo.cpp
*
* @date Mar 2, 2014
2015-01-12 15:04:10 -08:00
* @author Andrey Belomutskiy, (c) 2012-2015
2014-08-29 07:52:33 -07:00
*
*
* This file is part of rusEfi - see http://rusefi.com
*
* rusEfi is free software; you can redistribute it and/or modify it under the terms of
* the GNU General Public License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* rusEfi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "global.h"
#include "algo.h"
#include "advance_map.h"
#include "fuel_math.h"
#include "settings.h"
#include "signal_executor.h"
#include "speed_density.h"
2014-11-25 08:04:15 -08:00
EXTERN_ENGINE;
void initDataStructures(DECLARE_ENGINE_PARAMETER_F) {
2015-02-27 22:04:17 -08:00
prepareFuelMap(PASS_ENGINE_PARAMETER_F);
2014-11-25 08:04:15 -08:00
prepareTimingMap(PASS_ENGINE_PARAMETER_F);
2015-02-27 22:04:17 -08:00
initSpeedDensity(PASS_ENGINE_PARAMETER_F);
2014-08-29 07:52:33 -07:00
}
2015-02-14 19:04:03 -08:00
void initAlgo(Logging *sharedLogger, engine_configuration_s *engineConfiguration) {
initInterpolation(sharedLogger);
2014-08-29 07:52:33 -07:00
#if EFI_PROD_CODE || EFI_SIMULATOR
2014-09-20 11:03:33 -07:00
initSettings(engineConfiguration);
2014-08-29 07:52:33 -07:00
initSignalExecutor();
#endif
}