Commit Graph

940 Commits

Author SHA1 Message Date
Josh Stewart 1ec7e7ee86 Mostly complete engine protection (excl AFR) 2020-06-06 14:27:46 +10:00
Josh Stewart 56509b3a4a Merge branch 'master' of https://github.com/noisymime/speeduino 2020-06-06 10:55:38 +10:00
Josh Stewart c3c6cc33c7 Minor work on oil and fuel pressure readings 2020-06-06 10:55:34 +10:00
Josh Stewart 940a6826b5 Initial work on engine protection system 2020-06-06 10:52:27 +10:00
Vitor Moreno B. Sales 27cc6ddf4c
Fix recently added functions (#393)
Changed aseTsnDelay name to aseTaperTime
Added a default aseTaperTime to 0.1S
aseTsnStart isn't needed, removed
Added IAC_STEP_OL taper, big thanks to Ryan
Default dfcoMinCLT is 0C, added calibration offset and increased it to 40C as described on updates.ino
Changed bitRead to BIT_CHECK
Fix dfcoStart wasn't been reseted if conditions was droped before elapsed time causing next DFCO activation right away
Few cosmetical changes on ini

Update commits counter
2020-05-29 12:25:33 +10:00
Josh Stewart fc43f3a479 Allocate memory for fuel/oil pressure inputs 2020-05-29 12:21:28 +10:00
Josh Stewart 2c1269eef9 June development signatures 2020-05-25 09:14:48 +10:00
Josh Stewart 64ef8f40ae Signature and base tunes for 202005 2020-05-22 15:38:15 +10:00
Josh Stewart 24260d1368 Add missing init sections for 36-2-1 2020-05-22 13:49:33 +10:00
Vitor Moreno B. Sales b321e8e17d
[PID] Increase parameters and output resolution (#377)
Parameters are 0.03125% for kP and kI, 0.00981% for kD. Increased output 4 times to give enought room for kP.

PID now ignore compute if input is zero to avoid overshoot, kI and kD part as well.

Added idlePID.Initialize() to crank part to start PID from a working condition.

Show idleLoad when cranking.

Fix TS numbers, increase max value

Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-05-21 19:29:38 +10:00
Antti Muurikainen 113247f005
Cranking enrichment to ASE (or run) taper (#364)
* Cranking enrichment tapering to ASE (or run)

* Precision fix and better helptext

* Fixed calculation and added comments

* Small fix for the taper final values

* Styling

* runSecsX10 is now uint32_t, so modify accordingly
2020-05-19 15:22:43 +10:00
Josh Stewart 05022a5d22 Add option to disable fan whilst cranking. Fixes #383 2020-05-18 10:30:03 +10:00
Josh Stewart d73af98010 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-05-12 12:14:57 +10:00
Josh Stewart a826b20307 Most of the remaining VSS parts 2020-05-12 12:14:37 +10:00
Pasi Kemppainen b7e91b58df
Added option for soft limit to also be able to retard by x-amount of degrees (#368)
* Changed the soft limit from absolute value to retard by

* Added selection for fixed and relative retard

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
2020-05-09 08:39:13 +10:00
celso acyr 8ac3717507
Idle Steeper motor cracking in closed loop (#371)
* Idle Steeper motor cracking  in closed loop

Adding to run position while starting the engine..

* Update speeduino.ini
2020-05-06 15:17:53 +10:00
Josh Stewart a335820b46 Enable the use of the 50% hardware test modes 2020-05-04 15:08:45 +10:00
Josh Stewart ccad3d258f VSS calibration routines (untested) 2020-04-23 20:34:31 +10:00
Josh Stewart e5f2193abe Introduce command button handler and expand the hardware testing to 8 channels 2020-04-22 11:02:35 +10:00
Josh Stewart 5366695f96 Initial VSS dialog 2020-04-20 23:43:02 +10:00
Josh Stewart fae78b95f7 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-04-20 22:57:39 +10:00
Josh Stewart 4aa86aae67 Initial basic VSS calcs (Incomplete) 2020-04-20 22:57:00 +10:00
Antti Muurikainen fb0750580b
FIx flexfuel ignition correction value displayed in TS (#361) 2020-04-20 19:52:29 +10:00
Antti Muurikainen 274f424151
Acceleration enrichment cold temperature adjustment (#359)
* New README format

* Update README.md

* STM32F407 fixes (#338)

* Correct overflow for 32bit timers

* fix pins PA0-PA5 on some f407 boards

* Enable access to SRAM Backup domain at boot

* Add missing callback functions

* Change timer resolutions. Corrects idle/aux timer frequencies

* 32 bit overflow only for STM32F4

* Check and update ignition count target before checking other conditions to avoid peramently disabling ego correction in case ignition count rolls over while ego correction is disabled. (#344)

Co-authored-by: bera-n <notrevealedbera-n@gmail.com>

Fixes #343

* Setup memory for vss

* Update all dialog help links to the new wiki

* [DFCO] Add a minimum coolant (#353)

* [DFCO] Add a minimum coolant

On pure ethanol or E85 the engine need a lot fuel to return from DFCO when cold.

Add a minimum temp

Fixes copy-paste error

Fix sign error

* Add signed cast on the calibration offset

Co-authored-by: Josh Stewart <josh@noisymime.org>

* AE cold temp correction

Added possibility to increase AE amount on cold engine. Max cold modifier is tapered with clt.

* Added help texts and value limitation in speeduino.ini and overflow prevention in corrections.ino

* Terminology patch

* Unsigned long in calculation isn't really needed as AE max setting is 255 (+100). Changed to uint16_t.

* Comment revision for the previous

* Updated function description

* Fixes to make correction equal in MAP and TPS modes

* AE cold temp correction

Added possibility to increase AE amount on cold engine. Max cold modifier is tapered with clt.

* Added help texts and value limitation in speeduino.ini and overflow prevention in corrections.ino

* Terminology patch

* Unsigned long in calculation isn't really needed as AE max setting is 255 (+100). Changed to uint16_t.

* Comment revision for the previous

* Updated function description

* Fixes to make correction equal in MAP and TPS modes

Co-authored-by: Josh Stewart <josh@noisymime.org>
Co-authored-by: iLeeeZi <ilari.vehniainen@hotmail.fi>
Co-authored-by: bera-n <bjorn.nyhlen@gmail.com>
Co-authored-by: Vitor Moreno B. Sales <vitor_boss@yahoo.com.br>
2020-04-19 08:21:52 +10:00
Vitor Moreno B. Sales 127bc1585a
[DFCO] Fix - delay isn't working if conditions aren't met immediately (#363)
* [DFCO] Include a delay

* [DFCO] Fix - delay isn't working if conditions aren't met immidiatly

Co-Authored-By: muuris <55035659+muuris@users.noreply.github.com>

Co-authored-by: Josh Stewart <josh@noisymime.org>
Co-authored-by: muuris <55035659+muuris@users.noreply.github.com>
2020-04-17 23:32:10 +10:00
Antti Muurikainen 8e89d5ff3e
Fix negative values in flexfuel ignition advance (#360)
* Fix negative values in flexfuel

* Simplification

* Update previous values

* Comment update
2020-04-16 16:31:54 +10:00
Antti Muurikainen 5b9bc789ab
Datalog entries of pulsewidth with 3 decimals instead of 1 (#336)
It's already with this higher resolution in TS, and tuning idle and low load area with big injectors really require more than just one decimal precision.
2020-04-12 08:13:53 +10:00
Antti Muurikainen 53faee1a3e
First commit (#358) 2020-04-12 07:31:03 +10:00
Vitor Moreno B. Sales 62e90379f6
[DFCO] Add a minimum coolant (#353)
* [DFCO] Add a minimum coolant

On pure ethanol or E85 the engine need a lot fuel to return from DFCO when cold.

Add a minimum temp

Fixes copy-paste error

Fix sign error

* Add signed cast on the calibration offset

Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-04-08 11:25:53 +10:00
Josh Stewart 7edd9f7d38 Update all dialog help links to the new wiki 2020-04-08 08:30:47 +10:00
Josh Stewart af5d769147 Setup memory for vss 2020-04-07 23:45:24 +10:00
Vitor Moreno B. Sales 558d063f56
[DFCO] Include a delay (#348)
Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-04-03 14:46:11 +11:00
iLeeeZi fc40cc24db
prevent priming pulse if flood clear is active (#289) 2020-04-02 10:42:26 +11:00
iLeeeZi 8722065168
6 and 8 cylinder sequential injection (#280)
* 6 cyl sequential related cleanup

* disable 6cyl seq fuel trim tables for now

* add the over 2 squirts fix

* Add 5 and 6 cylinder semi and full sequential

* 5 cylinder changes

* fix priming pulse when using paired or semi-sequential injection

* add 5 cyl special case back

* Add missing 8 cyl stuff

* add missing PW8

* allow to change inj4Ang with non sequential 5 cylinder

* add missing helptext
2020-04-01 17:03:11 +11:00
Vitor Moreno B. Sales 1c7ac1a825
Fix idle taper variable names and include commits counter (#346)
* Fix ini errors

* Include commits counter
2020-04-01 14:33:41 +11:00
Josh Stewart 5107372f30 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-04-01 12:21:03 +11:00
Josh Stewart 5ce4d06975 Add design files for v0.4.4b board 2020-04-01 12:20:47 +11:00
Pasi Kemppainen 1b4d81453c
6&8-cyl wasted cop (#314)
* Added 6-cyl cop mode

* Update to ini

* Why not 8-cyl wasted COP too

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
2020-03-26 21:49:55 +11:00
Josh Stewart e6cf7b57cb Cleanup from last commit 2020-03-25 22:08:08 +11:00
Vitor Moreno B. Sales 4ca428e61e
[IDLE] Crank to run PWM taper (#340) 2020-03-25 21:36:45 +11:00
Vitor Moreno B. Sales 63b726cf78
[ASE] Transition time to disable (#342)
* [ASE] Transition time to disable

* Real time ASE

* Fix last commit

* Fix variables declaration
2020-03-24 12:36:24 +11:00
iLeeeZi a3aedad316
Calculate the injector open time in tunerstudio (#319)
* Add injector open time calculation option

* update calculations dash

* better help text

* remove option to turn off
2020-03-19 15:27:23 +11:00
Josh Stewart bc67453098 Addition of 0-720 injector timing curve. See #306 2020-03-17 18:27:05 +11:00
Josh Stewart faaf530b0c Merge branch 'master' of https://github.com/noisymime/speeduino 2020-03-17 10:39:39 +11:00
Josh Stewart 48387cf14c Change ini to move individual injector timing to an RPM based curve 2020-03-17 10:39:35 +11:00
Antti Muurikainen b942f090cf
Added cranking enrich range (#335)
* First commit

Increases cranking enrichment range from 0..255% to 0..1275%, accuracy is reduced to 5% steps but this should be enough.

Max allowable gammae increased from 511% to 1500%, overflow in PW-function prevented.

* Last one missed the second overflow prevention (less bitshift)

* Version needs to be increased in order to avoid performing value update routine on every startup

* Less bitshift is required only on iCorrections
2020-03-17 10:38:03 +11:00
Josh Stewart f8b382f1ae Update ignition channel numbers for BMW PNPs 2020-03-16 12:02:49 +11:00
Josh Stewart 0948abe77a Merge branch 'master' of https://github.com/noisymime/speeduino 2020-03-12 11:44:38 +11:00
Josh Stewart 9249c63ac9 Add new dynamic ini mode based on # inj/ign outputs 2020-03-12 10:07:40 +11:00
Pasi Kemppainen 743129b21c
Small change to write Aux in channel names to Data Logs. (#334)
* Aux in names to datalog

* Datalog rest of the channels and also only if configured
2020-03-07 08:43:17 +11:00