This commit is contained in:
parent
ff6f653ece
commit
6360719ed0
|
@ -28,7 +28,6 @@
|
|||
*/
|
||||
|
||||
#include "global.h"
|
||||
#include "trigger_decoder.h"
|
||||
#include "thermistors.h"
|
||||
#include "honda_accord.h"
|
||||
#include "engine_math.h"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#ifndef TRIGGER_BMW_H_
|
||||
#define TRIGGER_BMW_H_
|
||||
|
||||
#include "trigger_decoder.h"
|
||||
#include "trigger_structure.h"
|
||||
|
||||
void configureMiniCooperTriggerShape(TriggerShape *s);
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
*/
|
||||
|
||||
#include "trigger_chrysler.h"
|
||||
#include "trigger_decoder.h"
|
||||
#include "trigger_universal.h"
|
||||
|
||||
void initDodgeRam(TriggerShape *s) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue