Commit Graph

8539 Commits

Author SHA1 Message Date
rusefillc c6efcb6013 DC not ETB refactoring 2020-11-16 19:43:00 -05:00
GitHub set-date Action 8f6fe82262 Update date 2020-11-17 00:37:46 +00:00
rusefillc 499d93ed49 DC not ETB refactoring 2020-11-16 19:28:30 -05:00
GitHub build-firmware Action ea2eeb7ca1 Auto-generated configs and docs 2020-11-17 00:10:53 +00:00
rusefi 65a1847505 refactoring: TS to match C 2020-11-16 19:09:05 -05:00
Matthew Kennedy e0d0727896 adjust microsecond_timer api (#1952)
* change timer api

* don't need all that
2020-11-16 18:50:13 -05:00
Matthew Kennedy 89c56a00fa minor perf tweaks (#1946)
* only start PWM if needed

* put important stuff first

* use conversion

* this broke the logic
2020-11-16 00:06:11 -05:00
rusefi 70a94ee1f7 occasional tunerstudio CRC errors #1943
second step back
2020-11-15 22:41:04 -05:00
rusefillc c3b680b408 occasional tunerstudio CRC errors #1943
one step back
2020-11-15 21:41:38 -05:00
rusefi 5b45f25f09 B6 2020-11-15 20:56:16 -05:00
Matthew Kennedy d9f625c8ba prevent MMC preemption by TS thread (#1949)
* prevent preemption by TS thread

* didn't need that
2020-11-15 20:44:36 -05:00
GitHub set-date Action 27c9571a3b Update date 2020-11-16 00:38:50 +00:00
GitHub build-firmware Action 8a20383b2d Auto-generated configs and docs 2020-11-15 22:33:48 +00:00
rusefi 2eab666f63 GDI Epic #1448 2020-11-15 17:31:53 -05:00
GitHub build-firmware Action 341778e3cc Auto-generated configs and docs 2020-11-15 22:19:44 +00:00
rusefi cad3fb8a51 Merge remote-tracking branch 'origin/master' 2020-11-15 17:18:03 -05:00
rusefi b3e910008c MRE mapping 2020-11-15 17:16:58 -05:00
Matthew Kennedy 80edfe64ce Fix crc again, for real this time (#1948)
* re enable

* changelog

* fix

* fix test

* put some tests back
2020-11-15 16:59:02 -05:00
GitHub build-firmware Action f6b2c9743c Auto-generated configs and docs 2020-11-15 21:07:18 +00:00
rusefi f3ea723843 GDI Epic #1448
typo
2020-11-15 16:05:10 -05:00
rusefi ad9635b4ff GDI Epic #1448 2020-11-15 15:37:53 -05:00
rusefillc 1eb0f8808f occasional tunerstudio CRC errors #1943
unit test progress
2020-11-15 12:36:07 -05:00
rusefillc 05e7792ad4 occasional tunerstudio CRC errors #1943
now with a bit of a unit test
2020-11-15 12:27:47 -05:00
rusefillc 53bcd448cf occasional tunerstudio CRC errors #1943
getting ready for unit test
2020-11-15 11:55:26 -05:00
rusefillc 952e019b01 occasional tunerstudio CRC errors #1943
getting ready for unit test
2020-11-15 11:53:09 -05:00
rusefillc 0cc30b4239 Re-applying part of "fix CRC errors #1944" 2020-11-15 10:28:23 -05:00
rusefillc 0ec945dc4c fix CRC errors #1944
partial rollback in order to isolate the defect
2020-11-15 10:02:40 -05:00
Matthew Kennedy 3a052682dd fix large response packets (#1947)
* fix console text mode

* oops I should actually write the crc
2020-11-15 07:14:50 -05:00
GitHub set-date Action c1ba274027 Update date 2020-11-15 00:38:12 +00:00
Matthew Kennedy ebcd4f73af fix CRC errors (#1944)
* fix crc mismatch

* cleanup

* use size_t, add null check

* bounds check for good measure

* rename to scratchBuffer

* comment
2020-11-14 19:21:29 -05:00
GitHub build-firmware Action 6d63adc174 Auto-generated configs and docs 2020-11-14 23:08:03 +00:00
rusefillc 6f56988469 https://rusefi.com/forum/viewtopic.php?p=38367#p38367
idle position/waste gate position sensor usability
2020-11-14 18:05:27 -05:00
GitHub set-date Action 5423bf53e1 Update date 2020-11-14 00:36:52 +00:00
GitHub set-date Action 0db3a928aa Update date 2020-11-13 00:35:10 +00:00
GitHub build-firmware Action 1a2aaf5e29 Auto-generated configs and docs 2020-11-12 02:49:26 +00:00
Matthew Kennedy 605269c358 remove idle thread; just call from periodicSlowCallback (#1924)
* remove thread

* remove ui
2020-11-11 21:47:19 -05:00
Matthew Kennedy c36c23c0b6 debugging in vscode 🎉 (#1942) 2020-11-11 20:36:15 -05:00
Matthew Kennedy 6b0c533d2c consolidate EFI_UNIT_TEST and friends (#1940)
* restructure

* guard c++

* idle too

* status_loop.h

* consolidate definitions

* use 1/0 instead, check for existence

* missed a few

* dead define

* defs for bootloader
2020-11-11 20:34:39 -05:00
GitHub set-date Action 537f28cbb8 Update date 2020-11-12 00:35:21 +00:00
Matthew Kennedy 74d2af9c6c Move all DECLARE_ENGINE_PTR etc to one place (#1937)
* restructure

* guard c++

* idle too

* status_loop.h
2020-11-11 19:06:04 -05:00
rusefillc cf7c613ed8 GDI Epic #1448 2020-11-11 00:43:21 -05:00
GitHub build-firmware Action 58b039f433 Auto-generated configs and docs 2020-11-11 04:13:06 +00:00
Matthew Kennedy 0fa06e2e2a compensate injector flow based on fuel pressure (#1931)
* injector compensation

* fix

* ui

* testability & comments

* hella testing

* debug channels

* enum value

* auto generated enums

* update comment

* oops too much

* update config fields

* handle failed pressure sensor

* build

* fix

* add some todos for the future

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-11-10 23:11:22 -05:00
GitHub set-date Action c1e99b05d4 Update date 2020-11-11 00:31:30 +00:00
rusefillc 99cf91c784 tle8888 drivers wants RAM as well 2020-11-10 18:26:46 -05:00
rusefillc c6c9ab36d0 Merge remote-tracking branch 'origin/master' into master 2020-11-10 18:26:09 -05:00
Andrey G 2f891cc23a Tle8888 stepper (#1936)
* TLE8888: enable PP mode for OUT21..24 in case of useTLE8888_stepper

* Lada Kalina is a test mule for stepper idle
2020-11-10 14:16:46 -05:00
rusefillc 89ae747179 more more more RAM 2020-11-10 13:07:55 -05:00
GitHub build-firmware Action fcf09c3bd6 Auto-generated configs and docs 2020-11-10 17:39:01 +00:00
rusefillc 232b64292d field = "useTLE8888 2020-11-10 12:37:15 -05:00
rusefillc 53113287f7 GDI Epic #1448 2020-11-09 22:53:46 -05:00
rusefillc 529a6863c3 GDI Epic #1448 2020-11-09 22:53:23 -05:00
rusefillc fd140ee665 GDI Epic #1448 2020-11-09 22:49:06 -05:00
rusefillc ac37b2c19e GDI Epic #1448 2020-11-09 22:33:48 -05:00
rusefillc 0474458906 GDI Epic #1448 2020-11-09 22:21:38 -05:00
GitHub build-firmware Action 05d94c987e Auto-generated configs and docs 2020-11-10 03:09:32 +00:00
rusefillc 66d96eafbd GDI Epic #1448 2020-11-09 22:07:52 -05:00
rusefillc d8a022d1aa GDI Epic #1448 2020-11-09 21:41:13 -05:00
GitHub build-firmware Action e3a34c427c Auto-generated configs and docs 2020-11-10 02:34:55 +00:00
rusefillc 130e684262 GDI Epic #1448 2020-11-09 21:32:48 -05:00
rusefillc aa5c0ec049 RAM, ram, ram... 2020-11-09 21:25:44 -05:00
GitHub build-firmware Action 9bdcd5290f Auto-generated configs and docs 2020-11-10 02:20:33 +00:00
rusefillc 8c71bf49f1 GDI Epic #1448 2020-11-09 21:18:52 -05:00
rusefillc 1739437096 Output pin init/deinit needs a linked list #1803 2020-11-09 21:10:48 -05:00
rusefillc 76e7c0be01 Merge remote-tracking branch 'origin/master' into master 2020-11-09 19:48:11 -05:00
rusefillc 8fc5e1a4a0 docs 2020-11-09 19:47:10 -05:00
GitHub set-date Action 3e88d50e15 Update date 2020-11-10 00:39:25 +00:00
GitHub set-date Action 5f44182973 Update date 2020-11-09 00:39:56 +00:00
GitHub set-date Action cf108f6225 Update date 2020-11-08 00:40:00 +00:00
rusefi 9f237d963b debounce unintended auto-increment bug (was: Proteus TCU gear shift configuration) #1927
refactoring
2020-11-07 00:46:59 -05:00
rusefi 55065781f8 debounce unintended auto-increment bug (was: Proteus TCU gear shift configuration) #1927
undoing brain fart
2020-11-07 00:43:42 -05:00
rusefi f353e5c7a3 debounce unintended auto-increment bug (was: Proteus TCU gear shift configuration) #1927 2020-11-07 00:35:56 -05:00
rusefillc 89a20a20b0 Proteus TCU gear shift configuration #1927 2020-11-06 23:48:35 -05:00
rusefillc e168ae1d35 refactoring: code duplication 2020-11-06 21:24:58 -05:00
GitHub set-date Action 0d19eff22c Update date 2020-11-07 00:38:05 +00:00
rusefi fa0de4598c Output pin init/deinit needs a linked list #1803 2020-11-06 15:45:15 -05:00
rusefi 34f887d6af v12 & dual-channel PPS 2020-11-06 15:30:11 -05:00
GitHub build-firmware Action 3396487f84 Auto-generated configs and docs 2020-11-06 19:37:34 +00:00
rusefi 5efd49bc76 docs 2020-11-06 14:35:11 -05:00
rusefi 7adde869d7 v12 Proteus 2020-11-06 14:18:54 -05:00
GitHub set-date Action 13024163d7 Update date 2020-11-06 00:37:03 +00:00
rusefillc e8446bd73c Output pin init/deinit needs a linked list #1803 2020-11-05 18:47:45 -05:00
rusefillc 3643b2d063 Output pin init/deinit needs a linked list #1803 2020-11-05 18:42:45 -05:00
rusefillc 14fffa5136 refactoring 2020-11-05 18:10:44 -05:00
rusefillc 8e4ebc9a7d Output pin init/deinit needs a linked list #1803 2020-11-05 17:52:30 -05:00
rusefillc 721ab9c7ca Output pin init/deinit needs a linked list #1803
one step back
2020-11-05 17:44:16 -05:00
rusefillc e7b1b80ce9 Output pin init/deinit needs a linked list #1803 2020-11-05 17:23:09 -05:00
rusefillc 310998d0ae GDI Epic #1448 2020-11-05 16:42:56 -05:00
rusefillc e06fdaea0a GDI Epic #1448 2020-11-05 16:34:25 -05:00
GitHub build-firmware Action b363782d04 Auto-generated configs and docs 2020-11-05 20:37:03 +00:00
andreika-git 554e1f7927 Make AFR great again! (#1929)
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-11-05 15:35:11 -05:00
GitHub build-firmware Action 536230b587 Auto-generated configs and docs 2020-11-05 13:06:37 +00:00
rusefillc 502102a3bb poke 2020-11-05 08:04:43 -05:00
GitHub set-date Action 9451f6f743 Update date 2020-11-05 00:36:36 +00:00
GitHub build-firmware Action cbeca5144c Auto-generated configs and docs 2020-11-04 19:51:14 +00:00
rusefi 2a4e4d55f5 one step back 2020-11-04 14:49:23 -05:00
GitHub build-firmware Action 45d34a28e9 Auto-generated configs and docs 2020-11-04 17:50:19 +00:00
rusefi cff029f289 miata TCU 2020-11-04 12:48:07 -05:00
GitHub build-firmware Action 72ebf9312d Auto-generated configs and docs 2020-11-04 17:46:41 +00:00
rusefi 08f621fe79 miata TCU 2020-11-04 12:44:30 -05:00
rusefi 69d233cc66 miata TCU 2020-11-04 12:42:30 -05:00
GitHub build-firmware Action f2f552434f Auto-generated configs and docs 2020-11-04 05:47:44 +00:00
rusefi 12f317c80e TCU minor fix 2020-11-04 00:45:58 -05:00
rusefi fdd183324e miata TCU 2020-11-03 23:59:00 -05:00
rusefi 457deea2e7 miata TCU 2020-11-03 23:21:47 -05:00
David Holdeman 77460ba6ae set solenoids (#1925) 2020-11-03 22:18:40 -05:00
rusefillc e384df96cc TCU 2020-11-03 20:17:47 -05:00
GitHub set-date Action 50fc169e13 Update date 2020-11-04 00:35:42 +00:00
GitHub build-firmware Action 0bad2bc697 Auto-generated configs and docs 2020-11-04 00:05:36 +00:00
Matthew Kennedy 5f11390f58 fatal error + inhibit read on TS preset (#1922)
* fatal error + inhibit read on preset

* inhibit more stuff when flag is set

* don't need that message

* extract function, improve msg

* changelog entry
2020-11-03 19:03:46 -05:00
Matthew Kennedy e8bb0cfd00 extract idle hardware to its own file (#1923)
* extract idle hardware

* should fix the build
2020-11-03 18:06:32 -05:00
Matthew Kennedy 789926a61d convert cranking defaults to mg (#1921)
* convert cranking defaults to mg

* fix tests
2020-11-03 14:12:26 -05:00
rusefi a626e4f0c8 GDI Epic #1448 2020-11-03 13:19:56 -05:00
rusefillc 4000c34c93 Output pin init/deinit needs a linked list #1803 2020-11-03 12:28:13 -05:00
GitHub build-firmware Action 582774150c Auto-generated configs and docs 2020-11-03 17:20:50 +00:00
rusefillc efc9efcc58 Output pin init/deinit needs a linked list #1803 2020-11-03 12:18:52 -05:00
GitHub build-firmware Action 175eca2956 Auto-generated configs and docs 2020-11-03 16:39:27 +00:00
rusefillc 2ab5cfdd1b Output pin init/deinit needs a linked list #1803 2020-11-03 11:37:09 -05:00
rusefillc 7f733de3b8 Merge remote-tracking branch 'origin/master' into master 2020-11-03 11:34:54 -05:00
rusefillc 39d21ca08f Output pin init/deinit needs a linked list #1803 2020-11-03 11:31:40 -05:00
rusefillc fa49bbd580 Output pin init/deinit needs a linked list #1803 2020-11-03 11:01:43 -05:00
GitHub build-firmware Action 72b393b645 Auto-generated configs and docs 2020-11-03 15:53:22 +00:00
rusefillc 4397c1f18b Output pin init/deinit needs a linked list #1803 2020-11-03 10:51:54 -05:00
rusefillc e6e211ffcf Merge remote-tracking branch 'origin/master' into master 2020-11-03 07:59:20 -05:00
rusefi 4dc5c61f60 Output pin init/deinit needs a linked list #1803
trying to make things more consistent & smarter
2020-11-03 00:46:03 -05:00
rusefi c464dfdca6 Output pin init/deinit needs a linked list #1803 2020-11-03 00:21:39 -05:00
rusefi 66b61f76a7 Output pin init/deinit needs a linked list #1803 2020-11-03 00:09:42 -05:00
rusefi 9aa8273cbb Merge remote-tracking branch 'origin/master' 2020-11-02 23:53:38 -05:00
rusefi 82768bed1e typo 2020-11-02 23:52:26 -05:00
GitHub build-firmware Action dd2d1c01d5 Auto-generated configs and docs 2020-11-03 04:48:42 +00:00
rusefi 8dcb2fe55f this stuff is just too dead 2020-11-02 23:46:41 -05:00
rusefillc 05c5b82431 Merge remote-tracking branch 'origin/master' into master 2020-11-02 20:09:37 -05:00
GitHub set-date Action 6903b348ec Update date 2020-11-03 00:34:56 +00:00
rusefillc 238cc8d3f9 GDI Epic #1448 2020-11-02 19:28:46 -05:00
GitHub build-firmware Action f230f0abe8 Auto-generated configs and docs 2020-11-02 03:27:26 +00:00
Andrey G e14fa4b189 Tle8888 small update (#1908)
* TLE8888: add support MR switching from SW

Main Relay has limitation - it is always active while KEY=1. When
KEY=0 MR can be switched on from SW.

* TLE8888: support reading of KEY and WAKE inputs

* Rusefi enums: add new TLE8888 pins
2020-11-01 22:19:55 -05:00
GitHub set-date Action 26336f3f5c Update date 2020-11-02 00:34:36 +00:00
rusefi a00229c843 Merge branch 'master' of https://github.com/rusefi/rusefi 2020-11-01 00:33:42 -04:00
rusefi d2d8b78073 B6 GDI 2020-11-01 00:33:18 -04:00
GitHub set-date Action cc9fde8095 Update date 2020-11-01 00:36:45 +00:00
rusefi 1d6c6eb804 wall wetting default 2020-10-31 19:28:27 -04:00
GitHub build-firmware Action 5186c4813c Auto-generated configs and docs 2020-10-31 21:54:50 +00:00
Matthew Kennedy a29f73f467 log afr in addition to lambda (#1920)
* log afr

* log it

* weird double commas
2020-10-31 17:52:07 -04:00
GitHub set-date Action 9b58ac9fd8 Update date 2020-10-31 00:32:15 +00:00
GitHub build-firmware Action 057bdb540a Auto-generated configs and docs 2020-10-30 21:44:34 +00:00
Matthew Kennedy c0ed7cab62 log target lambda (#1919) 2020-10-30 17:42:00 -04:00
GitHub set-date Action c53a9824f6 Update date 2020-10-30 00:34:32 +00:00
GitHub build-firmware Action 36850f76b9 Auto-generated configs and docs 2020-10-29 19:28:08 +00:00
Matthew Kennedy bcabb51222 unused tach field (#1918) 2020-10-29 15:26:01 -04:00
rusefi f16556bdc5 b6 2020-10-29 01:15:55 -04:00
GitHub set-date Action 8a0ea8c8fd Update date 2020-10-29 00:58:40 +00:00
rusefi b76cfa8ef1 b6 2020-10-28 18:53:30 -04:00
Matthew Kennedy 3aed0a083c create changelog (#1917)
* add changelog

* clarify

* add october release

* mention tle

* add how-to
2020-10-28 17:16:06 -04:00
rusefillc 781cc3d326 [EPIC] [Feature Request] Transmission Control #1454 2020-10-28 01:23:05 -04:00
rusefillc 2f8f0bdd3c Merge remote-tracking branch 'origin/master' into master 2020-10-28 01:15:53 -04:00
GitHub build-firmware Action 046f4247df Auto-generated configs and docs 2020-10-28 05:06:20 +00:00
rusefillc 91afd62a53 GDI 2020-10-28 01:01:54 -04:00
rusefillc eb06ce55cd TCU 2020-10-28 01:01:30 -04:00
GitHub build-firmware Action 2d12a998a0 Auto-generated configs and docs 2020-10-28 04:22:27 +00:00
rusefillc 31256f6559 fluid gauges 2020-10-28 00:20:35 -04:00
GitHub build-firmware Action 28ba6a9025 Auto-generated configs and docs 2020-10-28 04:18:04 +00:00
rusefillc 3677f63737 fluid gauges 2020-10-28 00:16:16 -04:00
rusefillc 81f425b3d0 Merge remote-tracking branch 'origin/master' into master 2020-10-28 00:14:34 -04:00
rusefillc cc4ce62113 docs 2020-10-28 00:07:34 -04:00
GitHub set-date Action 94f49adf34 Update date 2020-10-28 00:57:34 +00:00
GitHub build-firmware Action 5019042e10 Auto-generated configs and docs 2020-10-27 12:24:46 +00:00
shadowm60 3e8c184eba Fix COMPOSITE_DATA_LENGTH_HALF (#1913)
hardcoded value was the only way i could generate correct dataLength in ini file
2020-10-27 08:22:47 -04:00
GitHub set-date Action bec70e3cd4 Update date 2020-10-27 00:56:50 +00:00
GitHub build-firmware Action c202e8b15c Auto-generated configs and docs 2020-10-26 22:17:20 +00:00
Matthew Kennedy b8c2041467 Everything in lambda! (#1893)
* lambda

* default configs, fix build

* config, gauge, UI

* more digits

* change menu text

* fix that while I'm here

* doesn't need extra word

* todo note

* tests

* last test

* missed a config

* update java

* store target lambda

* more java

* format

* hopefully enough java for CI to pass
2020-10-26 18:15:17 -04:00
Matthew Kennedy 61865292ff probably fix ci (#1912) 2020-10-26 14:04:22 -04:00
GitHub build-firmware Action e862d2c1fe Auto-generated configs and docs 2020-10-26 11:25:24 +00:00
Matthew Kennedy 6abc80e74c convert mass -> duration later in the pipeline (#1906)
* cranking duration to mass

* implement

* units

* patch types

* suppress warning

* fix output channels

* add note about how to set it
2020-10-26 07:23:13 -04:00
GitHub build-firmware Action 959e6e9a62 Auto-generated configs and docs 2020-10-26 02:28:28 +00:00
shadowm60 8b92537e2a Trigger logger (#1902)
* Update tachometer.cpp

Initial implementation of E30 M3 Tach output solution #907, unit_test plus debugging next

* tacho unit tests

First successfull unit test for tachometer

* RAM adjustment so it would link

* refactoring tacho, broken!

* starting to make some progress...still fails after a few seconds

* Rework with SW PWM

* Update after code review

* unit_test update

* First working unit_test

* Update .gitignore

* Update engine_controller.cpp

* Update engine_controller.cpp

* Update tachometer.h

* Update test_tacho.cpp

* Switched UART DMA on

* Revert "Switched UART DMA on"

This reverts commit 4a23974c431e0e7fd760595d2161e74e6854897e.

* tooth logger update

Updated the way we send the buffer to TS
Updated the way we log cam signals
removed TDC, inj and ign direct log... this causes some flicker in TS, this way we log inj and ign comapred to a cranck or camshaft trigger.

* Update tooth_logger.cpp

Fix unit_tests

* Update tooth_logger.h

clean-up

* Update tooth_logger.cpp

remove dead code, actually i forgot to uncomment these lines.
rename isTDC to trigger, since it is trigger (cam) for TS.

Co-authored-by: rusefi <rusefi@users.noreply.github.com>
2020-10-25 22:26:20 -04:00
GitHub set-date Action b5605c9fba Update date 2020-10-26 00:57:31 +00:00
GitHub build-firmware Action 7ff2189e60 Auto-generated configs and docs 2020-10-25 23:27:30 +00:00
Matthew Kennedy 74f59ff67e fix MRE digital input mapping (#1910) 2020-10-25 19:26:04 -04:00
Matthew Kennedy 4c3046a707 remove spiMtx (#1907) 2020-10-25 17:26:46 -04:00
Matthew Kennedy 5189e0b1d9 fix double deadtime (#1904)
* move global correction factor to fuel mass

* tests

* the fix
2020-10-25 00:12:05 -04:00
GitHub set-date Action 5b627e0e77 Update date 2020-10-25 00:58:09 +00:00
GitHub set-date Action af13c26680 Update date 2020-10-24 00:55:30 +00:00
Matthew Kennedy 5296de1493 use fuel model (#1901)
* use fuel model

* spit'n'polish
2020-10-23 20:25:47 -04:00
GitHub build-firmware Action f504ba90b8 Auto-generated configs and docs 2020-10-23 19:48:01 +00:00
Matthew Kennedy c38eb6d38f add Injector pressure sensor (#1898)
* add sensor type

* add config

* initialize injector pressure

* add UI
2020-10-23 15:46:16 -04:00
Matthew Kennedy 5fc47d0153 oops (#1899) 2020-10-23 15:45:44 -04:00
GitHub build-firmware Action a873f9f72b Auto-generated configs and docs 2020-10-23 16:27:21 +00:00
Andrey G 88e830d635 Tle8888 big update 1 (#1892)
* smart gpio: fix tle8888 direct pin mapping for MRE

* MRE: use TLE8888 pins instead of MCU gpios that drives TLE8888

* TLE8888: cleanup

* TLE8888: do not reset driver private data on WD/undervoltage reset

* TLE8888: diagnostic updates

* TLE8888 driver: BIG driver rework

* TLE8888: check SPI answers for abnormal states

Reply with other than requested register can be a sign of:
-Power-On-Reset, then OpStat0 will be replyed
-WatchDog reset, then FWDStat1 will be replyed
-Invalid communication frame, then Diag0 will be replyed

Keep tracking last accessed register and check with the next reply.

* TLE8888: debug clean-up

* TLE8888: implement spi array write

This reduce CS inactive state time between two consequent accesses
from 8.8 uS to 1.4 uS

* TLE8888: fix PP outputs in OD mode

* TLE8888: cleanup register definitions

* TLE8888: run separate driver thread for each chip instance

Calculating poll interval for few chips become more complex, avoid
this running thread for each device.

* TLE8888: fix cypress and kinetic compilation

Both platforms define its own MAX and cause redifination error if
common.h is included in driver.

* MRE: update mapping.yaml and fix direct pin mapping for TLE8888

* TLE8888: diagnnostic: disable switch off in case of overcurrent

For all output, use current limiting instead

* TLE8888: check for overvoltage on OUT8..OUT13

* TLE8888: add TODO note about how to recover from failure condition

Currently TLE8888 automaticly recovers only from overcurrent and
(may be) overtemperature conditions.
Short to bat cause output disable (bit in OECONFIG is reset) and
needs driver/host intervention.

* TLE8888: save few bytes of RAM

* TLE8888: Lada Kalina is test mule for IDLE stepper on TLE8888

Don't forget to enable PP mode for TLE8888 outputs 21..24:
uncomment line 1087 in tle8888.c

* TLE8888: reorder code, cleanup

* TLE8888: mode all debug/statisctic to per-chip struct

* TLE8888: rework poll interval calculation

* MRE: use TLE8888 pins instead of MCU gpios that drives TLE8888 #2
2020-10-23 12:25:30 -04:00
GitHub build-firmware Action 7342b18291 Auto-generated configs and docs 2020-10-23 16:25:10 +00:00
rusefillc 804cf7f436 gettig ready for Tle8888 big update 1 #1892 2020-10-23 12:23:17 -04:00
GitHub build-firmware Action 36cf2d5e4c Auto-generated configs and docs 2020-10-23 11:33:40 +00:00
Matthew Kennedy dbdeca93b0 implement fuel pressure sensors (#1897)
* add

* remove old

* remove more old

* makefile

* fix init

* patch up other stuff

* actually fix it this time

* raw output channels

* gauges, UI

* scaled channel

* fix field ordering
2020-10-23 07:31:47 -04:00
rusefi 25189a70a8 B6 2020-10-23 00:39:22 -04:00
GitHub build-firmware Action 451d893a34 Auto-generated configs and docs 2020-10-23 03:26:03 +00:00
rusefillc 9ad38bd6a9 GDI Epic #1448 2020-10-22 23:24:15 -04:00
GitHub build-firmware Action eee55b77ec Auto-generated configs and docs 2020-10-23 03:19:42 +00:00
rusefillc fd30576dca GDI Epic #1448 2020-10-22 23:17:29 -04:00
GitHub set-date Action fd0d145a5b Update date 2020-10-23 00:55:50 +00:00
Matthew Kennedy e4c891f328 no sd enable (#1894)
* no sd enable

* add assert

* Revert "no sd enable"

This reverts commit fd997381ee884c890fe7664e56ed2b0f0caef2ff.
2020-10-22 20:51:28 -04:00
Andrey G 4c074fb9c8 common.h: define MIN and MAX macro only if nod defined yet (#1896)
This fix compilation error for Kinetis and Cypress if common.h
is included after platform includes which also defines MIN MAX.
2020-10-22 08:41:44 -04:00
rusefillc 2a8a0f6af1 GDI Epic #1448 2020-10-22 01:48:28 -04:00
rusefi 8c4dd19edd Merge remote-tracking branch 'origin/master' 2020-10-22 01:12:14 -04:00
rusefi 4af1bad726 progress 2020-10-22 00:57:11 -04:00
GitHub build-firmware Action 9ebd97289c Auto-generated configs and docs 2020-10-22 02:51:46 +00:00
Matthew Kennedy 38b6e9ba2b gppwm debug (#1895)
* dbg gppwm

* fix channel

* TS guard
2020-10-21 22:49:38 -04:00
GitHub build-firmware Action a9cad5c3f0 Auto-generated configs and docs 2020-10-22 02:37:10 +00:00
rusefi c43f7869d9 reducing the mess around FSIO bench commands 2020-10-21 22:35:08 -04:00
rusefi 73d53db758 code style 2020-10-21 22:13:18 -04:00
GitHub set-date Action ad515b0f14 Update date 2020-10-22 00:55:13 +00:00
Matthew Kennedy 8f6982dd54 disable i2c, other unused features (#1891)
* dead

* more
2020-10-20 22:24:32 -04:00
GitHub set-date Action c72bfdabe7 Update date 2020-10-21 00:54:27 +00:00
rusefi 79d267eba0 VAG radiator control 2020-10-19 23:25:23 -04:00
rusefi 69e48e1e44 code style 2020-10-19 22:47:09 -04:00
rusefi 4343f96fd4 refactoring 2020-10-19 22:44:44 -04:00
rusefi ca89cf9b95 GDI Epic #1448 2020-10-19 22:04:06 -04:00
GitHub set-date Action c25bf07abf Update date 2020-10-20 00:54:38 +00:00
GitHub build-firmware Action 782ffdaf6e Auto-generated configs and docs 2020-10-19 12:06:22 +00:00
Matthew Kennedy 4d1c331eca second PID config for wastegate (#1889)
* remove

* cleanup

* implement ETB parts

* hook up to boost controller

* tests

* consume

* add cfg field

* ui maybe

* fix

* fix

* add wastegate config test
2020-10-19 08:04:27 -04:00
Matthew Kennedy 5337d9f723 Etb wastegate hookup (#1888)
* remove

* cleanup

* implement ETB parts

* hook up to boost controller

* tests
2020-10-18 21:57:04 -04:00
GitHub set-date Action e4cab65723 Update date 2020-10-19 00:54:39 +00:00
Matthew Kennedy 8c11a6fb4b remove (#1887) 2020-10-18 20:49:42 -04:00
Matthew Kennedy 2c23085715 Etb function cfg: actually read config (#1884)
* two throttles one thread

* look at all this RAM!

* add enum

* switch from index to function

* test fixup

* improve init logic

* remove old vw idle mode bit

* add config

* better spot for it

* use config init values

* handle null controller array

* fatal error testability

* test new init config

* defaults

* fix for default config
2020-10-18 17:26:38 -04:00
GitHub set-date Action 79f02f09ce Update date 2020-10-18 00:55:31 +00:00
rusefi 1be1f66edf GDI Epic #1448 2020-10-17 20:17:53 -04:00
rusefillc c354d1deb2 dead legacy code - current implementation is definitely more correct 2020-10-17 18:46:07 -04:00
rusefillc 3314394dd9 refactoring: better method name 2020-10-17 18:45:08 -04:00
rusefillc aec48c294e GDI Epic #1448 2020-10-17 14:53:56 -04:00
Matthew Kennedy c73978310f Remove trigger listener list (#1886)
* avoid 64b on hot path

* no tooth log when fast

* use crit section locker

* final

* only flip pins if not also self stim

* only trace if doing work

* slightly drop lateDelay

* trace if not bailing out

* remove listener array
2020-10-17 08:00:11 -04:00
GitHub set-date Action 32e7391ffb Update date 2020-10-17 00:52:43 +00:00
rusefillc 54c3d0f15c HW CI has failed 11 times since Oct 2 #1849 2020-10-16 13:54:12 -04:00
rusefillc ac677ffd55 Merge remote-tracking branch 'origin/master' into master 2020-10-16 13:21:25 -04:00
Matthew Kennedy f6f3e514d2 trigger/scheduler perf improvements (#1885)
* avoid 64b on hot path

* no tooth log when fast

* use crit section locker

* final

* only flip pins if not also self stim

* only trace if doing work

* slightly drop lateDelay

* trace if not bailing out
2020-10-16 11:04:27 -04:00
Matthew Kennedy 87d34ffcee more safe parts probably (#1883) 2020-10-15 22:04:42 -04:00
GitHub set-date Action e82306deaa Update date 2020-10-16 00:53:08 +00:00
rusefillc 3ceb6fe2a5 Merge remote-tracking branch 'origin/master' into master 2020-10-15 16:16:51 -04:00
Matthew Kennedy 02c47eeec8 write SD header using new Writer class (#1882)
* write header

* hooray, free memory!

* fix test

* is there really this much free space...?

* no, there is not
2020-10-15 16:00:13 -04:00
GitHub build-firmware Action 2332ab26a0 Auto-generated configs and docs 2020-10-15 12:59:24 +00:00
Matthew Kennedy 94bd5921c5 simplify getTimeNowNt() (#1876)
* remove old impl

* add cpp wrapper to os_access

* clean up os_access

* remove touchTimeCounter

* new impl

* put comment about lock free impl

* include cpp wrappers for BL

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-10-15 08:57:13 -04:00
rusefillc a3614019f6 Merge remote-tracking branch 'origin/master' into master 2020-10-14 23:32:00 -04:00
GitHub build-firmware Action 7b4c02eb6c Auto-generated configs and docs 2020-10-15 02:42:20 +00:00
Matthew Kennedy eac2b179c7 fix temp sensor & validate it (#1879)
* fix temp sensor & validate

* smaller here should work
2020-10-14 22:39:16 -04:00
Matthew Kennedy abfa17216b etb function config 1 (#1881)
* this should all be safe...

* test fix
2020-10-14 22:02:09 -04:00
GitHub set-date Action ed3a341c89 Update date 2020-10-15 00:52:07 +00:00
rusefillc 08a867668c Merge remote-tracking branch 'origin/master' into master 2020-10-14 20:09:50 -04:00
Matthew Kennedy 4868068e2f start using BufferedWriter (#1878)
* do the part up to actual usage

* borrow some memory for now
2020-10-14 20:06:05 -04:00
Matthew Kennedy 554304dac3 switch to single precision constants (#1880)
* adjust builds

* fix test
2020-10-14 20:04:35 -04:00
GitHub set-date Action 9df7b80835 Update date 2020-10-14 00:51:46 +00:00
rusefillc a37880eb97 GDI Epic #1448 2020-10-13 00:35:04 -04:00
GitHub set-date Action 97663a0594 Update date 2020-10-13 00:51:50 +00:00
Matthew Kennedy c5291888d0 buffered writer - progress on #1463 (#1875)
* add buffered writer

* rename
2020-10-12 15:10:34 -04:00
rusefillc 1dcfa743b9 docs 2020-10-12 09:18:36 -04:00
rusefi 9de3031378 GDI Epic #1448 2020-10-11 23:39:40 -04:00
rusefi 996806d710 QC control mode to crash if RPM = 0 and to mark successful 3 minute test with self-stimulation RPM increase #1871 2020-10-11 22:57:31 -04:00
rusefi 1c84b0dd9f QC control mode to crash if RPM = 0 and to mark successful 3 minute test with self-stimulation RPM increase fix #1871 2020-10-11 22:46:08 -04:00
GitHub set-date Action 3df68f838c Update date 2020-10-12 00:51:55 +00:00
Matthew Kennedy 3985b7a6c9 Fix #1873 - compute dynamic PWM iterationLimit (#1874)
* fix

* remove define

* add an assert

* typo

* don't do a 64bit divide

* oh that's a float
2020-10-11 20:25:38 -04:00
rusefi b4208f585c QC control mode to crash if RPM = 0 and to mark successful 3 minute test with self-stimulation RPM increase #1871 2020-10-11 19:16:41 -04:00
GitHub build-firmware Action 08d03374d4 Auto-generated configs and docs 2020-10-11 23:07:39 +00:00
rusefi 4743718663 QC control mode to crash if RPM = 0 and to mark successful 3 minute test with self-stimulation RPM increase #1871 2020-10-11 19:05:56 -04:00
rusefi 6fe1f18067 Trigger sync lost every 2^32 CPU cycles #1873
only a random code comment
2020-10-11 18:17:30 -04:00
GitHub build-firmware Action b537290fdb Auto-generated configs and docs 2020-10-11 21:49:05 +00:00
rusefi df378f8f45 GDI Epic #1448 2020-10-11 17:47:16 -04:00
GitHub set-date Action a5babfa28a Update date 2020-10-11 00:52:48 +00:00
rusefi dd9b8ee62b poke 2020-10-10 00:07:15 -04:00
GitHub build-firmware Action cb71a9ba23 Auto-generated configs and docs 2020-10-10 03:36:50 +00:00
David Holdeman a6a0e8ba77 Simple transmission 2 (#1870)
* simple trans controller

* don't need check

* we can loop!

* use efi::size

* pin mode configuration

* set pin mode

* switch to RegisteredOutputPin

* size

* add to makefile

* fixes

* fixes

* wat

* output pin, and ts stuff

* use SimpleTransmissionController

* include

* grrr

* grrr

* move to separate file

* fix includes

* try

* semicolon stupid

* try pointers

* try

* add to makefile

* wat

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* try

* undo

* more idiomatic maybe

* remove logger

* try init func

* try

* try

* try init fn

* try

* switch

* try

* try

* ifndef

* try

* try

* ifndef

* use def dug

* INJECT FIRST

* try

* try

* duh
2020-10-09 23:34:45 -04:00
GitHub set-date Action c646fe2be7 Update date 2020-10-10 00:50:10 +00:00
GitHub build-firmware Action c6d12d8459 Auto-generated configs and docs 2020-10-09 21:19:04 +00:00
Matthew Kennedy 51d407aaf0 ign mode overrides (#1869) 2020-10-09 17:16:49 -04:00
GitHub build-firmware Action f01583be7a Auto-generated configs and docs 2020-10-09 06:11:02 +00:00
rusefillc 6395e22ce6 https://rusefi.com/forum/viewtopic.php?f=4&t=1844 2020-10-09 02:08:52 -04:00
GitHub build-firmware Action e3cfc760d0 Auto-generated configs and docs 2020-10-09 06:07:46 +00:00
rusefillc 8e69003080 https://rusefi.com/forum/viewtopic.php?f=4&t=1844 2020-10-09 02:05:47 -04:00
Matthew Kennedy 89ac8508b9 Check for sd buffer overrun (#1867)
* use actual header size

* and the buffer can be a little smaller
2020-10-08 21:02:15 -04:00
GitHub set-date Action c7879cef42 Update date 2020-10-09 00:49:56 +00:00
rusefillc a20f093140 SD card logs not valid for REO #1864 2020-10-08 20:35:32 -04:00
rusefillc b1c0b72aa7 SD card logs not valid for REO #1864 2020-10-08 20:17:32 -04:00
rusefillc 08efb1f43d SD card logs not valid for REO #1864 2020-10-08 20:06:07 -04:00
rusefi af19c020c7 SD card logs not valid for REO #1864 2020-10-08 17:58:58 -04:00
rusefi a2f3ee8d06 SD card logs not valid for REO #1864 2020-10-08 17:50:43 -04:00
rusefillc 53c001d541 revering functional part of
Etb function cfg, try again #1860
try again from #1831
2020-10-08 17:09:00 -04:00
GitHub build-firmware Action 054b082355 Auto-generated configs and docs 2020-10-08 18:14:09 +00:00
Matthew Kennedy cca175c6ea Etb function cfg, try again (#1860)
* two throttles one thread

* look at all this RAM!

* add enum

* switch from index to function

* test fixup

* improve init logic

* remove old vw idle mode bit

* add config

* better spot for it

* use config init values

* handle null controller array

* fatal error testability

* test new init config

* defaults

* fix for default config
2020-10-08 14:12:03 -04:00
Matthew Kennedy 732e2a64c1 fix fuel pump (#1865) 2020-10-07 22:30:24 -04:00
GitHub set-date Action 16eff072d2 Update date 2020-10-08 00:41:29 +00:00
Matthew Kennedy b9c26efd57 fix (#1863) 2020-10-07 14:59:24 -04:00
Matthew Kennedy 22a55ce7e6 switch from float to expected<float> (#1862) 2020-10-06 22:33:00 -04:00
Matthew Kennedy 7b333e60ea FSIO refactoring (#1861)
* better fsio tests

* condense operators

* minor parser cleanup too

* comments, too!
2020-10-06 21:54:49 -04:00
GitHub set-date Action c7c70bc87a Update date 2020-10-07 00:49:32 +00:00
rusefillc 25d02f6356 SD enable 2020-10-06 01:15:17 -04:00
rusefillc d5d5bbba9f tachPulsePerRev needs a safer default, MRE config needs a value 2020-10-06 00:56:49 -04:00
GitHub set-date Action bdbc8ef46f Update date 2020-10-06 00:48:58 +00:00
Matthew Kennedy e112bbd07e remove virtual calls from hot path (#1857)
* const ref-ify

* no virtual 

* even more const

* tests

* fix tests
2020-10-05 16:42:50 -04:00
Matthew Kennedy 060cfbd778 const ref-ify trigger (#1856)
* const ref-ify

* tests
2020-10-05 14:22:59 -04:00
Matthew Kennedy 540fca8cc9 use expected for event queue next event (#1859)
* use expected for event queue next event

* minor cleanup

* tests
2020-10-05 13:53:34 -04:00
Matthew Kennedy 60329b55a5 we don't need two loops (#1855) 2020-10-05 08:57:00 -04:00
Matthew Kennedy 04ae4ee347 pwm perf (#1858)
* pwm perf

* this trace is now redundant
2020-10-05 08:23:30 -04:00
Matthew Kennedy da3242f2fc missing iat (#1854) 2020-10-04 21:33:54 -04:00
GitHub set-date Action 41e49ff53c Update date 2020-10-05 00:50:15 +00:00
Matthew Kennedy ebc884e8d5 trigger decode cleanup and perf (#1853)
* trigger decode cleanup

* test config ptr patchup

* disable CDM by default
2020-10-04 19:29:26 -04:00