Commit Graph

2746 Commits

Author SHA1 Message Date
Vitor Moreno B. Sales c6d9fd7a10
Fix for semi-seq inj after #478 (#883) 2022-06-29 16:41:52 +10:00
Vitor Moreno B. Sales adaa6a227e
Enable use of disabled functions pins (#549)
* Enable use pins of disabled functions or unused ign channels

* Added new pins and functions to check
2022-06-29 16:37:50 +10:00
Josh Stewart bb49774d4e Further fixes to the ASE correction 2022-06-27 12:18:17 +10:00
Pasi Kemppainen 0c8ced22a9
Fix hanging on boot (#858) 2022-06-27 11:54:47 +10:00
tx_haggis 3009c39767
Narrow scope of EEPROM_MAX_WRITE_BLOCK to writeConfig (#881)
* EEPROM_MAX_WRITE_BLOCK can be local to writeConfig()
This saves a byte of memory ;-)

* Fix MISRA/lint warnings
Correctly cast address parameter of eeprom_read_block
Statically access table 3d type_key member

* Remove force burn code - unused

* Replace eepromWritesPending with bit set/check

* Refactor: chain write_location instances.
Clearer code.
2022-06-27 11:53:33 +10:00
Josh Stewart bf23114b13 Fix broken build on Teensy from #880 2022-06-27 11:48:12 +10:00
Daniel Tobias 540b3a4fa2
Correct typos found by codespell (#880) 2022-06-27 10:39:14 +10:00
Tjeerd dc87795718
bug fix. A workaround for failing emulated on internal flash writes + a root cause fix (#876)
* workaround for failing flash writes

* Root cause fix for EEPROM emulation on STM32

* Oops, remove some debugging functions.

Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2022-06-27 09:30:40 +10:00
larmicfre ae3347f571
Fixed value mode for AFR protection (#877) 2022-06-27 09:21:11 +10:00
larmicfre d5fc16d97c
Corrected RPM to TPS (#878). Fixes #874 2022-06-26 17:43:35 +10:00
Josh Stewart 61708a5716 Prevent cranking and ASE corrections running at once. Alternative fix to #868 2022-06-20 15:03:31 +10:00
larmicfre 298d994ba1
AFR protection function (#861)
* Implementing AFR protection

* Update globals.h

* Bug fixes and code refactoring

* Moved variables to prevent ODR

* Dialog for AFR protection

* Data size and math corrections

* Possibility to use either AFR or lambda

* Updated default AFR protection values

* No need to do multiplications due to existing RPMdiv100 variable

* The X100 multiplier was wrongfully removed

* Add defaults in updates.ino, minor formatting cleanups

Co-authored-by: Josh Stewart <josh@noisymime.org>
2022-06-20 09:52:07 +10:00
Josh Stewart f64d9348dc Only set the idle up pin state on init if it's enabled 2022-06-06 14:33:41 +10:00
Josh Stewart 1d85100ea7 Add dynamic EEPROM block write limit based on RPM. Should fix #859 2022-06-03 18:23:22 +10:00
Josh Stewart 30139e89af Minor cleanup of boost dialog from previous PR 2022-06-03 16:14:30 +10:00
Tjeerd 20c5e17756
Improve closedloop boost control (#736)
* First try on updating closedloop boost control

* added eeprom updates for backward comp[atibility

* fix merge conflict

* Change updates to next release EEPROM version.

* Fix some issues after merging master

* some cleanup to minimize changes and speedup review

* cleanup updates

* chances on updates to alaign with new table format

* move LUT to new config page in eeprom

* little cleanup

* Update storage.h comments

* fix some ini warnings

Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2022-06-03 15:44:09 +10:00
Josh Stewart 5fafa94056 Fix unit test value 2022-06-01 17:06:44 +10:00
Josh Stewart 7055accb5a Merge branch 'master' of https://github.com/noisymime/speeduino 2022-06-01 00:04:28 +00:00
Josh Stewart 6390040263 Disable SD on T4.1 temporarily to prevent lockups. See #847 2022-06-01 00:04:20 +00:00
RempageR1 c2de8737fc
Moved currentStatus.startRevolutions++ so it only increments every revolution instead of every tooth. (#855)
Co-authored-by: RempageR1 <unconfigured@null.spigotmc.org>
2022-05-27 08:07:12 +10:00
Josh Stewart ec2fcd906f Add more unit tests for TAE 2022-05-25 15:28:11 +10:00
Josh Stewart e16108d806 Prevent overflow of the AE RPM taper. Fixes #843 2022-05-25 11:03:33 +10:00
Josh Stewart 3bd945f546 Add unit test for basic TAE 2022-05-25 11:02:55 +10:00
Pasi Kemppainen d7ccf4945b
Added option to fix tacho signal to coil dwell (#825)
* Add dwell fixed tacho option

* Better implentation

Added description to TS. Removed code duplication and unnecessary if's.

* Resolve conflicts and minor changes to wording on this option

Co-authored-by: Josh Stewart <josh@noisymime.org>
2022-05-24 14:29:38 +10:00
Josh Stewart 15dbaafc91 Merge branch 'master' of https://github.com/noisymime/speeduino 2022-05-24 13:49:21 +10:00
Josh Stewart f8084ae5f1 Add pin mapping for new 4 channel T4.1 testing board 2022-05-24 13:49:15 +10:00
Pasi Kemppainen b863edf9ee
Update BMW PnP pin mapping (#850)
* Update BMW PnP pin mapping

* Fix typo
2022-05-24 10:37:37 +10:00
Pasi Kemppainen 6388b9d703
Set onboard logging settings to zero. (#849) 2022-05-24 10:36:59 +10:00
Josh Stewart 9673dd8fe6 Add valid option for unusedClusterBits in ini. Fixes #829 2022-05-16 14:07:48 +10:00
Pasi Kemppainen d2b9612409
bug fix for init.ino (#834) 2022-05-02 10:40:22 +10:00
Josh Stewart 7c94329bf3 Fix issue when switching to sequential fuel post PR #478 2022-04-28 10:57:36 +10:00
Josh Stewart 2467960bbd Merge branch 'master' of https://github.com/noisymime/speeduino 2022-04-27 11:03:06 +10:00
Josh Stewart df4d2bc6ce Minor improvements to AE corrections logic/calcs 2022-04-27 11:03:02 +10:00
Josh Stewart 19dabd526f Correct TPS and MAP dot gauge labels. Fixes #828 2022-04-26 14:20:59 +10:00
mbbrinkman eddc59d65b
Allow WOT ego correction (#832) 2022-04-26 10:38:09 +10:00
Josh Stewart 97f8ef795a Remove duplicate updates from last PR 2022-04-21 16:37:05 +10:00
Pasi Kemppainen af5272b74c
[WIP] CAN broadcasting menu (#639)
* Add CAN broadcasting menu

* Fix updates.ino

* Remove use of floats and few other fixes.

* Fix building.

* Change updates.ino up to date.
2022-04-21 16:33:10 +10:00
Josh Stewart bce129cb68 Fix edge case that could prevent tooth log completing its transmission 2022-04-21 13:37:18 +10:00
Josh Stewart b7c02b53d6 Fix cranking to run idle taper time not running correctly 2022-04-21 11:42:00 +10:00
Josh Stewart ec51500d36 Ensure RTC is updated when time is changed on T3.5 2022-04-20 11:57:52 +10:00
Vitor Moreno B. Sales 4ce8c28c5a
Enable semi sequential and wasted COP on half sync (#478)
* Semi/Full sequential mode

Semi sequential in case of absent phase input at crank, engine will almost aways start in semi sequential mode

Minimal code change at speeduino.ino

Fix RPM reading when in half sync

* Update with latest changes in master

* Less calls to change functions

See #478 chat history for details

* Semi/Full sequential mode

Semi sequential in case of absent phase input at crank, engine will almost aways start in semi sequential mode

Minimal code change at speeduino.ino

Fix RPM reading when in half sync

* Update with latest changes in master

* Less calls to change functions

See #478 chat history for details

* Add sync status to log

* Updates

Updated speeduino.ini
Updated updates.ino

* Fix error in half to full sync function

Co-authored-by: Josh Stewart <josh@noisymime.org>
2022-04-18 14:12:57 +10:00
Josh Stewart 024c900aa0 Align TPS_rateOfChange scale. Potential fix for #773 2022-04-16 12:51:54 +10:00
Josh Stewart 4aed412ab4 Fix validTrigger assignment in Vmax decoder 2022-04-16 12:19:23 +10:00
Josh Stewart 31e7531128 Remove duplicate iacClosedLoopTable. Lookup idle target RPM @ 4Hz after CLT reading 2022-04-16 12:18:58 +10:00
Pasi Kemppainen 5dee6135b7
PWM and on/off idle fixes/cleanup (#806)
* Idle fixes #1

* Idle fixes #2

Co-authored-by: Josh Stewart <josh@noisymime.org>
2022-04-12 10:23:18 +10:00
Josh Stewart 2cda68277b Merge branch 'master' of https://github.com/noisymime/speeduino 2022-04-11 15:33:19 +10:00
Josh Stewart 6323b58798 Fix the calculations dash figures when battery correction is applied to open time only 2022-04-11 15:33:15 +10:00
Josh Stewart 3e56b2bd4d Simplify the corrections calculations using div100 2022-04-11 15:32:49 +10:00
tx_haggis 7933bb68c4
Remove previousLoopTime - never used (#706) 2022-04-11 14:16:26 +10:00
Vitor Moreno B. Sales 1ba1dabbfb
Added idle advance start threshold (#747)
* Added idle advance start threshold

On lower temp and/or on ethanol the engine need to crank more, without this my starter get a kick and the engine backfires.

This enable it only at 200 RPM below the target

* Use define to idle advance RPM threshold

Co-authored-by: Josh Stewart <josh@noisymime.org>
2022-04-11 13:38:23 +10:00