Commit Graph

156 Commits

Author SHA1 Message Date
Pasi Kemppainen 982e52db1b
VVT2 addition and closed loop VVT improvement (#551)
* VVT2 and closed loop VVT improvement

* Fix building for latest changes

* Fix CRC error

Co-authored-by: Josh Stewart <josh@noisymime.org>
2021-04-22 08:56:39 +10:00
Tjeerd 6179d4b5ae
Create better support for STM32F401 and STM32F411 blackpills (#548)
* Create support for STM32F401 and STM32F411 blackpills

* Small bug introduced now fixed.

Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2021-03-23 08:33:03 +11:00
Pasi Kemppainen 7d3df68dd3
Added poll level cam trigger type for missing tooth decoder. (#450)
* poll-level setting for speeduino.ini

* Update globals.h

* Simple poll level decoder

* Changed the poll level check to happen at tooth #1. Not at missing tooth.

* Set trigger edge automatically correct to work with closed loop VVT.

* Fix typo

* Changed to READ_SEC_TRIGGER() -macro

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
2021-02-22 11:14:46 +11:00
Josh Stewart f866114b22 Add degreesOver argument for cranking rpm function (Matches regular rpm function) 2021-02-22 10:44:12 +11:00
Josh Stewart 116c05b611 Subaru 36-2-2-2 H6 decoder for testing 2021-02-17 12:34:42 +11:00
DIY-EFI 809bd3a54c
Add Ford ST170 Decoder (#530)
This adds a decoder for the Ford ST170 engine.
This setup uses a 36-1 primary and a unique 8-3 secondary trigger.
The existing missing tooth deooder with fixed parameters is used as the primary to reduce duplication.
2021-02-14 09:15:53 +11:00
Josh Stewart f7126b94b0 Initial (untested) work on 6cyl support with 36-2-2-2 2021-02-08 17:03:48 +11:00
Josh Stewart fd9fa36c29 Major revamp of unit testing framework 2020-11-19 21:38:00 +11:00
Vitor Moreno B. Sales 25f2ef24d0
[Decoder] Add Weber-Marelli pattern (#400)
Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-08-23 08:56:35 +10:00
Josh Stewart 5336e18e87 Fix regression from 50ce97cd that caused problems with negative trigger angles 2020-08-13 15:41:35 +10:00
Josh Stewart 7db6c7a834 Only do VVT angle lookup on missing tooth if it is enabled 2020-08-07 19:32:19 +10:00
Josh Stewart 50ce97cde8 Performance tweaks on decoders 2020-08-05 15:11:51 +10:00
Josh Stewart 899831bdad MISRA cleanup 2020-07-30 09:15:24 +10:00
Pasi Kemppainen cc2b95da8d
Add "Half sync" indicator (#370)
* Half sync indicator for 3 different trigger patterns.

Added half sync indicator which shows that there is only primary trigger present for missing tooth, dual wheel and miata 9905 trigger patterns

* missing tooth required some adjusting

* forgot to remove stm32 pin mapping. I have it in other PR

* Leave only for missing tooth

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-07-29 11:07:43 +10:00
Vitor Moreno B. Sales 31541cca2d
[VVT] PID work (#412)
* [VVT] PID work

Tested on a half  moon CAM pattern as working, it should work on others too.

Added option to reverse the PWM output

Co-Authored-By: pazi88 <48950874+pazi88@users.noreply.github.com>

* Fix typo

Co-Authored-By: diy-efi <diy-efi@users.noreply.github.com>

* Add second VVT pwm on same timer

All precious VVT variables was renamed to VVT1 and added VVT2 stuff.

Tested with logic analyzer.

* Define VVT2 for other boards

Added vvt2Pin

* Just update on first tooth

Co-authored-by: pazi88 <48950874+pazi88@users.noreply.github.com>
Co-authored-by: diy-efi <diy-efi@users.noreply.github.com>
2020-07-27 09:05:02 +10:00
Vitor Moreno B. Sales f04ea85db4
BlackPill update (#406)
* BlackPill fix

* Fix for disable timers

* Fix STM32GENERIC
2020-07-02 17:25:16 +10:00
Josh Stewart e964ceac6a Warnings cleanup 2020-07-01 17:52:17 +10:00
Josh Stewart e42a742797 Initial implementation of the 420a decoder. See #133 2020-07-01 16:54:52 +10:00
metacomgd bcf9063aaa
Added 36-2-1 basic support (#366)
Co-authored-by: k <k@mj.gd>
2020-05-22 13:27:20 +10:00
Josh Stewart 0432306cfb Only set filter in Basic Distributor if we have sync. See #199 2020-04-01 11:59:05 +11:00
Josh Stewart 50189a6f59 Update new ignition mode on dual wheel 2020-03-04 18:58:11 +11:00
Josh Stewart 5b4200ad80 Cleanup from 3529f6a 2020-02-28 11:20:13 +11:00
Pasi Kemppainen 3529f6a2f7
6&8 cyl sequential ignition (#323)
* Required changes done

Needs testing

* Additions

* 8cyl changes for mega 2560

* Decoder fixes
2020-02-28 10:22:33 +11:00
Josh Stewart 85a1a1a23c Fix poor cranking to running transition on 36-2-2-2 2020-02-13 14:37:42 +11:00
Josh Stewart 349d03249d Introduce tests for the setEndTooth function in missing tooth 2020-02-13 11:51:58 +11:00
Josh Stewart dac19a9ed1 Fix new ign mode regression from df22b1d41b 2020-02-13 11:03:27 +11:00
Josh Stewart 1054f1d290 Restructure all units tests in single layered arrangement 2020-02-11 23:33:00 +11:00
Josh Stewart e8c67f9c86 Add ability to change trigger angle for GM 7X. See #300 2020-02-07 10:07:16 +11:00
Josh Stewart 8859611a7e Minor changes to the sync monitoring on dual wheel 2020-01-21 10:33:32 +11:00
Josh Stewart 3a73508cc3 Fix regression from df22b1d41b in Basic Distributor cranking RPM. Fixes #297 2019-12-24 12:11:53 +11:00
Josh Stewart df22b1d41b MISRA cleanup 2019-12-02 14:47:30 +11:00
Josh Stewart 8cb7876406 Improvements to the high speed loggers. Fixes #285 2019-11-25 14:50:43 +11:00
Josh Stewart 3dd92b15fe Performance optimisation on the missing tooth decoder 2019-11-12 15:28:43 +11:00
Josh Stewart 50273d4ed5 Only declare sync with missing tooth sequential if cam signal has been seen. Fixes #259 2019-10-15 17:34:45 +11:00
Bruno Bousquet 9fec203c5b remove _SLOW versions of MAX_TIMER_PERIOD and uS_TO_TIMER_COMPARE 2019-08-22 20:18:07 -04:00
Josh Stewart e76b80bf1c Some of the basic closed loop VVT stuff 2019-08-20 09:55:46 +10:00
Josh Stewart 15cbb9a4e5 Most of the initial closed loop VVT base work 2019-08-08 16:26:59 +10:00
Josh Stewart fa621ea071 Big MISRA cleanup 2019-07-08 17:56:02 +10:00
Josh Stewart 358c50e9ea First of the big MISRA cleanups 2019-06-26 10:31:35 +10:00
Josh Stewart b12fec4a72 Initial work on processing the 2nd fuel table 2019-05-02 11:52:05 +10:00
Josh Stewart 5504f62c58 Add new ignition mode support for Miata 9905 pattern 2019-04-23 13:53:20 +10:00
Josh Stewart 465dda0c7a Add new ignition mode support for GM7X 2019-04-01 16:01:01 +11:00
Josh Stewart 7ed645b574 stm32 SPIAsEEPROM compatibility work 2019-03-12 21:49:09 +11:00
Josh Stewart c392cb8f5d Minor MISRA cleanup 2019-03-07 23:13:38 +11:00
Josh Stewart 05e3d928ad Minor bits missed from last commit 2019-03-06 18:17:33 +11:00
Josh Stewart 9101356c5a Workaround for potential stray spark signals on startup 2019-03-06 16:58:26 +11:00
Josh Stewart f96999dd2d Multiple stm32 and general arch cleanup/fix from last merge 2019-03-04 23:45:33 +11:00
Josh Stewart e397ab4d75 Fix for potential bad unsigned int division on dual / missing tooth new ign mode 2019-02-23 15:11:29 +11:00
Josh Stewart 24981dc01f Multiple fixes for low speed issues with the high speed loggers. See #190 2019-02-04 12:44:57 +11:00
Josh Stewart 0b0345f06f More tweaks to Subaru 6/7 pattern 2018-11-22 18:13:24 +11:00