rusefi-1/firmware/controllers/algo/algo.cpp

47 lines
1.4 KiB
C++
Raw Normal View History

2015-07-10 06:01:56 -07:00
/*
* @file algo.cpp
*
* @date Mar 2, 2014
2017-01-03 03:05:22 -08:00
* @author Andrey Belomutskiy, (c) 2012-2017
2015-07-10 06:01:56 -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"
#include "fsio_impl.h"
2015-07-10 06:01:56 -07:00
EXTERN_ENGINE;
2017-05-15 20:33:22 -07:00
void initDataStructures(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
prepareFuelMap(PASS_ENGINE_PARAMETER_SIGNATURE);
prepareTimingMap(PASS_ENGINE_PARAMETER_SIGNATURE);
initSpeedDensity(PASS_ENGINE_PARAMETER_SIGNATURE);
prepareFsio();
2015-07-10 06:01:56 -07:00
}
2017-05-07 17:40:10 -07:00
void initAlgo(Logging *sharedLogger) {
2015-07-10 06:01:56 -07:00
initInterpolation(sharedLogger);
#if EFI_SIMULATOR
// todo: this is a mess, remove code duplication with PROD
2017-05-07 17:40:10 -07:00
initSettings();
2015-07-10 06:01:56 -07:00
#endif
}