From df11dc6ff58222491c3976f1b218f76783fb32b2 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Fri, 23 Jan 2015 10:06:26 -0600 Subject: [PATCH] auto-sync --- .../controllers/algo/engine_configuration.h | 39 +++++++++++-------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/firmware/controllers/algo/engine_configuration.h b/firmware/controllers/algo/engine_configuration.h index fcec9e60fc..f0c6346b51 100644 --- a/firmware/controllers/algo/engine_configuration.h +++ b/firmware/controllers/algo/engine_configuration.h @@ -493,32 +493,39 @@ typedef struct { * offset 956 */ float fanOffTemperature; - - // offset 960 - brain_pin_e vehicleSpeedSensorInputPin; - /** - * This coefficient translates vehicle speed input frequency (in Hz) into vehicle speed - * (in km/h) + * offset 960 + */ + brain_pin_e vehicleSpeedSensorInputPin; + /** + * This coefficient translates vehicle speed input frequency (in Hz) into vehicle speed, km/h * offset 964 - */ + */ float vehicleSpeedCoef; - // offset 968 + /** + * offset 968 + */ can_nbc_e canNbcType; - // offset 972 + /** + * offset 972 + */ int canSleepPeriod; - + /** + * offset 976 + */ int cylindersCount; - + /** + * offset 980 + */ ignition_mode_e ignitionMode; + /** + * offset 984 + */ firing_order_e firingOrder; + /** - * This magic constant is about four-stroke engines with camshaft position sensors. - * On any four stroke engine, each revolution of the camshaft is two revolutions - * of the crankshaft. If camshaft position is our primary sensor, we use this multiplier - * to convert from camshaft angles to crankshaft angles. All angels across the system - * should be crankshaft angles. + * todo: refactor this, see operation_mode_e */ float rpmMultiplier;