This commit is contained in:
rusefi 2019-01-01 14:05:11 -05:00
parent ff6f653ece
commit 6360719ed0
18 changed files with 16 additions and 17 deletions

View File

@ -28,7 +28,6 @@
*/
#include "global.h"
#include "trigger_decoder.h"
#include "thermistors.h"
#include "honda_accord.h"
#include "engine_math.h"

View File

@ -24,7 +24,6 @@
#include "engine_configuration.h"
#include "interpolation.h"
#include "allsensors.h"
#include "trigger_decoder.h"
#include "event_registry.h"
#include "efiGpio.h"
#include "fuel_math.h"

View File

@ -7,7 +7,7 @@
#ifndef TRIGGER_BMW_H_
#define TRIGGER_BMW_H_
#include "trigger_decoder.h"
#include "trigger_structure.h"
void configureMiniCooperTriggerShape(TriggerShape *s);

View File

@ -6,7 +6,6 @@
*/
#include "trigger_chrysler.h"
#include "trigger_decoder.h"
#include "trigger_universal.h"
void initDodgeRam(TriggerShape *s) {

View File

@ -8,7 +8,7 @@
#ifndef TRIGGER_CHRYSLER_H_
#define TRIGGER_CHRYSLER_H_
#include "trigger_decoder.h"
#include "trigger_structure.h"
#define CHRYSLER_NGC4_GAP 1
#define CHRYSLER_NGC6_GAP 1.5

View File

@ -8,7 +8,7 @@
#ifndef TRIGGER_GM_H_
#define TRIGGER_GM_H_
#include "trigger_decoder.h"
#include "trigger_structure.h"
void configureGmTriggerShape(TriggerShape *s);
void initGmLS24(TriggerShape *s);

View File

@ -8,7 +8,7 @@
#ifndef CONTROLLERS_TRIGGER_TRIGGER_HONDA_H_
#define CONTROLLERS_TRIGGER_TRIGGER_HONDA_H_
#include "trigger_decoder.h"
#include "trigger_structure.h"
void configureHondaAccordCDDip(TriggerShape *s);
void configureHondaAccordShifted(TriggerShape *s);

View File

@ -8,7 +8,7 @@
#ifndef TRIGGER_MAZDA_H_
#define TRIGGER_MAZDA_H_
#include "trigger_decoder.h"
#include "trigger_structure.h"
#define MIATA_NA_GAP 1.4930f

View File

@ -8,7 +8,7 @@
#ifndef CONTROLLERS_TRIGGER_DECODERS_TRIGGER_MISC_H_
#define CONTROLLERS_TRIGGER_DECODERS_TRIGGER_MISC_H_
#include "trigger_decoder.h"
#include "trigger_structure.h"
void configureFiatIAQ_P8(TriggerShape * s);

View File

@ -7,7 +7,7 @@
#ifndef TRIGGER_MITSUBISHI_H_
#define TRIGGER_MITSUBISHI_H_
#include "trigger_decoder.h"
#include "trigger_structure.h"
void initializeMitsubishi4g18(TriggerShape *s);
void configureFordAspireTriggerShape(TriggerShape * s);

View File

@ -8,7 +8,7 @@
#ifndef CONTROLLERS_TRIGGER_TRIGGER_NISSAN_H_
#define CONTROLLERS_TRIGGER_TRIGGER_NISSAN_H_
#include "trigger_decoder.h"
#include "trigger_structure.h"
void initializeNissanSR20VE_4(TriggerShape *s);
void initializeNissanSR20VE_4_360(TriggerShape *s);

View File

@ -9,7 +9,7 @@
#ifndef CONTROLLERS_TRIGGER_TRIGGER_ROVER_H_
#define CONTROLLERS_TRIGGER_TRIGGER_ROVER_H_
#include "trigger_decoder.h"
#include "trigger_structure.h"
void initializeRoverK(TriggerShape *s);

View File

@ -12,6 +12,8 @@
#include "engine_configuration_generated_structures.h"
#include "EfiWave.h"
#define FOUR_STROKE_ENGINE_CYCLE 720
#if EFI_ENABLE_ASSERTS
#define assertAngleRange(angle, msg, code) if(angle > 10000000 || angle < -10000000) { firmwareError(code, "angle range %s %.2f", msg, angle);angle = 0;}
#else

View File

@ -8,7 +8,7 @@
#ifndef CONTROLLERS_TRIGGER_TRIGGER_SUBARU_H_
#define CONTROLLERS_TRIGGER_TRIGGER_SUBARU_H_
#include "trigger_decoder.h"
#include "trigger_structure.h"
void initialize36_2_2_2(TriggerShape *s);
void initializeSubaru7_6(TriggerShape *s);

View File

@ -8,7 +8,7 @@
#include "trigger_universal.h"
angle_t getEngineCycle(operation_mode_e operationMode) {
return operationMode == TWO_STROKE ? 360 : 720;
return operationMode == TWO_STROKE ? 360 : FOUR_STROKE_ENGINE_CYCLE;
}
void addSkippedToothTriggerEvents(trigger_wheel_e wheel, TriggerShape *s, int totalTeethCount, int skippedCount,

View File

@ -9,7 +9,7 @@
#ifndef CONTROLLERS_TRIGGER_DECODERS_TRIGGER_UNIVERSAL_H_
#define CONTROLLERS_TRIGGER_DECODERS_TRIGGER_UNIVERSAL_H_
#include "trigger_decoder.h"
#include "trigger_structure.h"
#define NO_LEFT_FILTER -1
#define NO_RIGHT_FILTER 1000

View File

@ -19,7 +19,7 @@ void setVwConfiguration(TriggerShape *s) {
int totalTeethCount = 60;
int skippedCount = 2;
float engineCycle = getEngineCycle(s->getOperationMode());
float engineCycle = FOUR_STROKE_ENGINE_CYCLE;
float toothWidth = 0.5;
addSkippedToothTriggerEvents(T_PRIMARY, s, 60, 2, toothWidth, 0, engineCycle,

View File

@ -8,7 +8,7 @@
#ifndef CONTROLLERS_TRIGGER_DECODERS_TRIGGER_VW_H_
#define CONTROLLERS_TRIGGER_DECODERS_TRIGGER_VW_H_
#include "trigger_decoder.h"
#include "trigger_structure.h"
void setVwConfiguration(TriggerShape *s);