Commit Graph

2215 Commits

Author SHA1 Message Date
Tjeerd 1530bb892e
EEPROM emulation on internal flash for STM32F407 (#372)
* Added new Flash EEPROM emulation

# Conflicts:
#	platformio.ini
#	speeduino/board_stm32_official.ino
#	speeduino/init.ino
#	speeduino/src/SPIAsEEPROM/SPIAsEEPROM.cpp
#	speeduino/src/SPIAsEEPROM/SPIAsEEPROM.h

* changes to storage to make SPI flash work again

* cleanup
2020-05-06 15:22:48 +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 2d1e645cbd Update Travis to use Python 3.6 2020-05-04 16:08:16 +10:00
Josh Stewart a335820b46 Enable the use of the 50% hardware test modes 2020-05-04 15:08:45 +10:00
Josh Stewart b8356675de Clear accel flag if engine stalls 2020-05-03 19:59:00 +10:00
Josh Stewart ba4ca143ae Merge branch 'master' of https://github.com/noisymime/speeduino 2020-04-26 08:30:53 +10:00
Josh Stewart cb89d44746 Change runSecsX10 to uint32_t to avoid overflow issues. See #364 2020-04-26 08:30:46 +10:00
bera-n b060bccb03
Dont miss egocorr at igncount rollover (#362)
* 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.

* Fix previous commit. Ego was reset between update cycles.

Co-authored-by: bera-n <notrevealedbera-n@gmail.com>
2020-04-24 11:17:42 +10:00
Antti Muurikainen 04631d3143
Fix ASE being simultaneously on with crank enrichment (#365) 2020-04-24 10:19:02 +10:00
Josh Stewart ccad3d258f VSS calibration routines (untested) 2020-04-23 20:34:31 +10:00
Josh Stewart 33dc5e58dd Add unit tests for pulse width calculation 2020-04-23 16:20:09 +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
Josh Stewart c7b3c4d9b2 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-04-19 08:22:58 +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
Josh Stewart 5df24e4b85 Set default number of channels back for mega2560 2020-04-19 08:10:53 +10:00
Tjeerd fae9ab5a6b
Configurable CS pin flash chip (#345)
* fix building with spi flash as config storage

* Fixing build with spi flash as EEPROM. Changed some pin numbers to match the board i am designing and testing now.

* Now cs pin for spi eeprom is settable by flag in build enviroment.

* 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

* Update platformio.ini

debug tool added as default

* fix building with spi flash as config storage

* Fixing build with spi flash as EEPROM. Changed some pin numbers to match the board i am designing and testing now.

* Now cs pin for spi eeprom is settable by flag in build enviroment.

* Update platformio.ini

debug tool added as default

* Update cancomms.ino

Removed CAN build on black_F407VE for now. It needs fixing the build fails otherwise.

Co-authored-by: hoogendijkta <tjeerdie@users.noreply.github.com>
Co-authored-by: iLeeeZi <ilari.vehniainen@hotmail.fi>
2020-04-18 08:04:03 +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
audaciousengineer 0aa4f73687
multiple sparks per rev (#355)
Enable a single ignition channel to fire multiple times per revolution instead of only once.
2020-04-16 16:56:06 +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
bera-n c1ef3c85c7
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
2020-04-07 15:03:15 +10:00
iLeeeZi 51cf91287f
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
2020-04-07 14:49:25 +10:00
Josh Stewart f2309ee407
Update README.md 2020-04-04 14:55:03 +11:00
Josh Stewart 397119acf0
New README format 2020-04-04 14:51:58 +11:00
Josh Stewart c0490f6f9e Add default to dfcoDelay in updates.ino 2020-04-03 14:53:15 +11:00
Josh Stewart 2a32600936 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-04-03 14:51:34 +11: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
Josh Stewart de76804660 Update CORE4 mappings 2020-04-02 10:16:35 +11:00
Josh Stewart 21412e74a1 Provide missing externs from last commit to allow unit testing 2020-04-02 09:54:43 +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 a983343dd1 Bring wasted spark convenience funtinos into like for the MC33810 usage 2020-04-01 12:28:08 +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
Josh Stewart 5c166de2f7 Cleaner handling in the wasted spark functions 2020-04-01 12:15:34 +11:00
Josh Stewart 0432306cfb Only set filter in Basic Distributor if we have sync. See #199 2020-04-01 11:59:05 +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
Josh Stewart 9822ec9c76 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-03-19 15:27:50 +11:00