Commit Graph

5276 Commits

Author SHA1 Message Date
Matthew Kennedy fbcfb4534a require TPS values to be different (#2017)
* require values to be different

* fix not

* oops

* missed another spot

* test negative cases too

* resets

* test no sensor case

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-06 00:41:49 -05:00
Matthew Kennedy a806053d52 round rpm instead of truncating (#2023)
* round rpm instead of truncating

* efiround is expensive

* Revert "efiround is expensive"

This reverts commit e5690f89e1b1988aacf5ced1f024d576465a7cd6.

* round is better than rintf

* testing

* it works now?!

* comment

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-06 00:11:57 -05:00
GitHub build-firmware Action 472ec232b7 Auto-generated configs and docs 2020-12-06 03:05:54 +00:00
rusefillc 085a5f38b8 making console happier 2020-12-05 21:56:39 -05:00
GitHub set-date Action 4d48abc1b8 Update date 2020-12-06 00:47:59 +00:00
Matthew Kennedy b0410167de encapsulate entry logic in to entry (#2018)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-05 10:16:52 -05:00
GitHub build-firmware Action 053e14de4f Auto-generated configs and docs 2020-12-05 05:05:04 +00:00
rusefillc a1fe39b89d unit tests in clang #2012 2020-12-04 23:59:21 -05:00
rusefi b2493e3181 Merge remote-tracking branch 'origin/master' into master 2020-12-04 21:52:22 -05:00
shadowm60 45205e7da7 Dyno view proposal (#1999)
* DynoView creation

module implementation and unit_tests

* update acc algo

we only calcualte new acceleration value if speed has changed, not on every callback.

* added acceleration ts_channel

* fixed broken unit tests

* fixed accel sign

* review updates

* Update test_dynoview.cpp

fix unit_tests

* Update engine_controller.cpp

Fix .ram4 unused size

* Update test_dynoview.cpp
2020-12-04 20:28:48 -05:00
GitHub set-date Action de2a5879c4 Update date 2020-12-05 00:45:22 +00:00
rusefillc 96a7d528b6 hemi trigger decoder took some RAM 2020-12-04 18:46:35 -05:00
rusefillc 29aa791415 hemi trigger decoder took some RAM 2020-12-04 18:22:59 -05:00
rusefillc 5464498909 6.1 Hemi V8 decoder fix #2010 2020-12-04 16:50:26 -05:00
rusefillc 589558b5f1 6.1 Hemi V8 decoder #2010 2020-12-04 16:33:29 -05:00
rusefillc 9871d5b501 refactoring: magic constants 2020-12-04 16:24:19 -05:00
rusefillc 5ae3347927 6.1 Hemi V8 decoder #2010 2020-12-04 16:03:27 -05:00
rusefillc 2b2ffe9d7d 6.1 Hemi V8 decoder #2010 2020-12-04 15:33:07 -05:00
rusefillc 45e47220ab 6.1 Hemi V8 decoder #2010 2020-12-04 15:22:53 -05:00
rusefillc d191d31272 all triggers should be documented way nicer #2001 2020-12-04 14:00:49 -05:00
rusefillc 24eff376fe all triggers should be documented way nicer #2001 2020-12-04 13:54:16 -05:00
rusefillc 59e4e3187b all triggers should be documented way nicer #2001 2020-12-04 11:58:26 -05:00
rusefillc 0ba4b37a2d all triggers should be documented way nicer #2001 2020-12-04 11:44:27 -05:00
GitHub build-firmware Action 94eed84d9a Auto-generated configs and docs 2020-12-04 16:39:14 +00:00
rusefillc d3a21bcb63 6.1 Hemi V8 decoder #2010 2020-12-04 01:02:09 -05:00
rusefillc eb3dd94390 6.1 Hemi V8 decoder #2010 2020-12-04 00:30:22 -05:00
GitHub build-firmware Action 41955b4651 Auto-generated configs and docs 2020-12-04 05:21:17 +00:00
rusefillc 9a897007c4 FORD ST170 CAM TRIGGER PATTERN fix #2009 2020-12-03 23:54:08 -05:00
GitHub build-firmware Action f067225daf Auto-generated configs and docs 2020-12-04 04:26:34 +00:00
rusefillc c41c020cb3 Merge remote-tracking branch 'origin/master' into master 2020-12-03 23:12:42 -05:00
rusefillc c6d49e9621 DAIHATSU 3CYLINDER TRIGGER WHEEL SUPPORT fix #2008 2020-12-03 23:12:30 -05:00
GitHub build-firmware Action 4669da6ebe Auto-generated configs and docs 2020-12-04 02:59:40 +00:00
rusefillc fec3c3c443 DAIHATSU 3CYLINDER TRIGGER WHEEL SUPPORT #2008 2020-12-03 21:58:03 -05:00
GitHub build-firmware Action a0e1faf627 Auto-generated configs and docs 2020-12-04 02:33:46 +00:00
rusefillc c9a5a41a2f DAIHATSU 3CYLINDER TRIGGER WHEEL SUPPORT #2008 2020-12-03 21:31:58 -05:00
GitHub set-date Action d70b65aa86 Update date 2020-12-04 00:44:45 +00:00
rusefillc 5dcf22cf74 MRE pin reuse state validation fails #2006 2020-12-03 15:42:48 -05:00
rusefillc 0d2f8e67e7 avoid float -> int64 conversion #1977
both cases have to be relatively small durations of time cherry picking...
2020-12-03 13:32:01 -05:00
rusefillc a57296d641 avoid float -> int64 conversion #1977
both cases have to be relatively small durations of time cherry picking...
2020-12-03 13:30:17 -05:00
Matthew Kennedy bb2208fb52 add timer since last trigger tooth (#2004)
* add elapsed time to timer

* store trigger time

* fsio method

* don't do a 64b divide

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-03 11:13:45 -05:00
GitHub build-firmware Action 67660a38af Auto-generated configs and docs 2020-12-03 15:51:02 +00:00
rusefillc ba0503177c more dead code 2020-12-03 10:49:20 -05:00
GitHub build-firmware Action 9c334ddb2d Auto-generated configs and docs 2020-12-03 14:36:32 +00:00
GitHub build-firmware Action accd14f261 Auto-generated configs and docs 2020-12-03 06:38:53 +00:00
rusefillc bcd5e029fa dead code matches Mazda SOHC 2020-12-03 01:36:43 -05:00
GitHub build-firmware Action c82ff9e7a8 Auto-generated configs and docs 2020-12-03 06:34:34 +00:00
GitHub build-firmware Action e7b115a43e Auto-generated configs and docs 2020-12-03 06:25:01 +00:00
rusefillc 238e639c53 dead trigger, this would now be vvt+60/2 2020-12-03 01:22:57 -05:00
GitHub build-firmware Action 508828171c Auto-generated configs and docs 2020-12-03 06:21:16 +00:00
GitHub build-firmware Action e60f62670b Auto-generated configs and docs 2020-12-03 06:04:08 +00:00
rusefillc f5189cb6aa all triggers should be documented way nicer #2001 2020-12-03 01:02:17 -05:00
GitHub build-firmware Action 4853b32404 Auto-generated configs and docs 2020-12-03 05:21:30 +00:00
rusefillc 0a72735c74 all triggers should be documented way nicer #2001 2020-12-03 00:19:18 -05:00
rusefillc 59655af204 Fuel pump should turn on at the first sign of engine rotation #1961 2020-12-02 23:09:39 -05:00
rusefillc 7327fd6e6c all triggers should be documented way nicer #2001 2020-12-02 22:17:38 -05:00
rusefillc b503fa3366 all triggers should be documented way nicer #2001 2020-12-02 20:51:33 -05:00
GitHub build-firmware Action ac89bb20cf Auto-generated configs and docs 2020-12-03 01:32:59 +00:00
GitHub build-firmware Action 6f3f108948 Auto-generated configs and docs 2020-12-03 01:22:05 +00:00
GitHub set-date Action 2ca19f58b9 Update date 2020-12-03 00:46:39 +00:00
GitHub build-firmware Action 1b33657b34 Auto-generated configs and docs 2020-12-02 20:08:22 +00:00
GitHub build-firmware Action eb6849a18a Auto-generated configs and docs 2020-12-02 19:49:17 +00:00
GitHub build-firmware Action b7b2cf6722 Auto-generated configs and docs 2020-12-02 19:17:48 +00:00
GitHub build-firmware Action 23942578a6 Auto-generated configs and docs 2020-12-02 19:12:18 +00:00
GitHub build-firmware Action 0afc70a01a Auto-generated configs and docs 2020-12-02 18:40:45 +00:00
GitHub build-firmware Action e017bf53a1 Auto-generated configs and docs 2020-12-02 16:14:23 +00:00
GitHub set-date Action 5e6b173ba7 Update date 2020-12-02 00:44:31 +00:00
GitHub build-firmware Action e87071dbe1 Auto-generated configs and docs 2020-12-01 18:58:12 +00:00
shadowm60 b014023560 Launch Control refactoring (#1992)
* refactor

- called from periodicFastCallback
- removed defines

* Update rusefi.input

removed unused configurations.
added clutch inversion option

* Added new tests

fixed limiting only in case we have launch condition and rpm outside of window

* Update launch_control.cpp

Unintialized config update, now it is working fine with VSS and with clutch as well.

* small fixes

updated after review findings

* Fix breaking engine rev limiter

applyLaunchControlLimiting should not overwrite booleans to false!

* Delay timer in seconds

timer uses ms, so convert seconds to ms
2020-12-01 13:03:42 -05:00
GitHub set-date Action ef071e03d0 Update date 2020-12-01 00:45:58 +00:00
Matthew Kennedy c5295f520e timer (#1994) 2020-11-30 19:35:06 -05:00
GitHub build-firmware Action 39320dd3b4 Auto-generated configs and docs 2020-11-30 05:14:11 +00:00
GitHub set-date Action 37b86bd852 Update date 2020-11-30 00:44:36 +00:00
GitHub build-firmware Action 973f08dde4 Auto-generated configs and docs 2020-11-29 23:13:49 +00:00
rusefi 6bf93b653f Merge remote-tracking branch 'origin/master' into master 2020-11-29 12:51:04 -05:00
rusefillc ccfe980181 94 2020-11-28 22:59:55 -05:00
GitHub build-firmware Action 0ee28a9f8b Auto-generated configs and docs 2020-11-29 03:51:15 +00:00
rusefillc d199302b83 miata 94 2020-11-28 22:49:28 -05:00
GitHub build-firmware Action bf27882d39 Auto-generated configs and docs 2020-11-29 03:22:29 +00:00
GitHub set-date Action 3c7a323d58 Update date 2020-11-29 00:45:07 +00:00
GitHub set-date Action df7e48e5cd Update date 2020-11-28 00:42:15 +00:00
rusefi 93160c6abb LM_ALPHA_N_2 rename 2020-11-27 15:44:31 -05:00
Matthew Kennedy c442f1f785 fix gpio the right way (#1990)
* fix the right way

* use the api

* explain

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-11-27 00:24:41 -05:00
rusefillc 42c56a47da dead engine config
one step back
2020-11-26 21:21:25 -05:00
rusefillc 0f39f37bba dead engine config 2020-11-26 21:07:34 -05:00
rusefillc 96ca95bd1e dead engine config 2020-11-26 20:26:12 -05:00
GitHub set-date Action 7f3b91a538 Update date 2020-11-27 00:42:43 +00:00
Matthew Kennedy cf1c99b36c fix etb unit test idle hardware (#1991)
* move check to etb

* give it a sensor to read
2020-11-26 19:21:42 -05:00
rusefillc 41a02a0153 Starter is engaged on start-up in pull-up configuration #1969 2020-11-26 17:48:09 -05:00
GitHub build-firmware Action 2f30ac1575 Auto-generated configs and docs 2020-11-26 22:30:00 +00:00
rusefillc f63e3c68fd Starter is engaged on start-up in pull-up configuration #1969 2020-11-26 16:20:13 -05:00
rusefillc 7b8d20108f Starter is engaged on start-up in pull-up configuration #1969 2020-11-26 10:41:22 -05:00
rusefi ab98e15f01 Starter is engaged on start-up in pull-up configuration #1969 2020-11-26 00:16:59 -05:00
rusefi 7d11aaf9e4 Starter is engaged on start-up in pull-up configuration #1969 2020-11-25 23:59:11 -05:00
rusefi 1e91b88296 Starter is engaged on start-up in pull-up configuration #1969 2020-11-25 23:38:43 -05:00
Matthew Kennedy 92e36e66b5 fix etb wastegate percent output (#1988)
* wastegate etb should use percent

* percent_t

* fix test
2020-11-25 21:14:06 -05:00
rusefi 3ee96210af Merge remote-tracking branch 'origin/master' 2020-11-25 19:53:49 -05:00
rusefi 1d497eaac4 Starter is engaged on start-up in pull-up configuration #1969 2020-11-25 19:52:22 -05:00
GitHub set-date Action 2865b8318c Update date 2020-11-26 00:40:20 +00:00
rusefi bdba67e05f better default value 2020-11-25 17:02:28 -05:00
GitHub build-firmware Action bd9ec0f327 Auto-generated configs and docs 2020-11-25 21:46:33 +00:00
GitHub build-firmware Action e483d6805b Auto-generated configs and docs 2020-11-25 18:21:44 +00:00
Matthew Kennedy ae53889d10 Boost tolerance (#1986)
* tolerate invalid closed loop config when in open loop mode

* fix test
2020-11-25 07:27:24 -05:00
GitHub set-date Action 052206e9c4 Update date 2020-11-25 00:40:48 +00:00
rusefillc 5a0ec3088e avoid float -> int64 conversion #1977
cherry picking...
2020-11-24 14:11:41 -05:00
rusefillc 56044d4dd0 avoid float -> int64 conversion #1977
cherry picking...
2020-11-24 00:06:12 -05:00
rusefillc b939feea2b avoid float -> int64 conversion #1977
cherry picking...
2020-11-23 23:53:25 -05:00
Matthew Kennedy be71d06dfc remove (#1985) 2020-11-23 20:10:17 -05:00
GitHub set-date Action 5eb921f311 Update date 2020-11-24 00:40:20 +00:00
Matthew Kennedy ebb8ede1da squash warnings (#1984)
* warnings

* unused

* a few more

* too much

* uint16_t-ify
2020-11-23 09:43:16 -05:00
rusefi a54f3e5289 GDI Epic #1448 2020-11-23 01:10:12 -05:00
GitHub set-date Action e04b7aa089 Update date 2020-11-23 00:40:35 +00:00
GitHub build-firmware Action 4eb6e4cade Auto-generated configs and docs 2020-11-22 23:32:36 +00:00
Matthew Kennedy 6f9a84e79c adjust boost (#1975) 2020-11-22 18:30:19 -05:00
rusefi 918c8abf5c better hpfpValve bench settings 2020-11-22 12:43:28 -05:00
Andrey G 005a5daa74 ADC: fixes: (#1979)
* ADC: fixes:

-use enums
-internalAdcIndexByHardwareIndex array should be adc_channel_e size
-add sanity checks
-save few bytes of RAM

* ADC: use logical OR instead of math add
2020-11-22 12:23:27 -05:00
rusefi c3fa5d8847 GDI Epic #1448 2020-11-22 00:47:43 -05:00
GitHub build-firmware Action 34d45edc0f Auto-generated configs and docs 2020-11-22 05:45:32 +00:00
rusefi b58ef54479 GDI Epic #1448 2020-11-22 00:40:21 -05:00
rusefi 7c2eaee40f GDI Epic #1448 2020-11-22 00:13:55 -05:00
GitHub build-firmware Action ae932d2366 Auto-generated configs and docs 2020-11-22 05:11:29 +00:00
rusefi d1de459d0d GDI Epic #1448 2020-11-22 00:09:36 -05:00
GitHub build-firmware Action 39cfc0692a Auto-generated configs and docs 2020-11-22 03:58:53 +00:00
GitHub build-firmware Action 88d3c2b124 Auto-generated configs and docs 2020-11-22 03:01:11 +00:00
GitHub set-date Action 77d1d0a1fb Update date 2020-11-22 00:41:19 +00:00
GitHub build-firmware Action 6374b08e34 Auto-generated configs and docs 2020-11-21 01:38:58 +00:00
GitHub set-date Action fb0180be77 Update date 2020-11-21 00:39:02 +00:00
rusefillc 17a110ad44 Starter is engaged on start-up in pull-up configuration #1969
maintainability
2020-11-19 23:57:06 -05:00
shadowm60 e69d103461 Launch control unit tests update (#1972)
* testable launch start

* extract base class

* add a test

* fix ts debug

* Launch control unit_tests

updated launch control for a better split
VSS mock for unit tests

Co-authored-by: Matthew Kennedy <matthewkennedy@outlook.com>
2020-11-19 21:14:38 -05:00
Matthew Kennedy ad6c24a9cc no feed forward for wastegate (#1971)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-11-19 20:51:30 -05:00
GitHub set-date Action 014e2feff4 Update date 2020-11-20 00:39:06 +00:00
rusefillc f3c9d67d8b Starter is engaged on start-up in pull-up configuration #1969
usability & test improvement
2020-11-19 17:15:28 -05:00
Matthew Kennedy 359a6ddc47 Launch control testable (#1967)
* testable launch start

* extract base class

* add a test

* fix ts debug
2020-11-19 08:15:56 -05:00
Matthew Kennedy 2792828dce Remove lockAnyContext, replace with CriticalSectionLocker (#1938)
* switch to CriticalSectionLocker

* that's just about all

* clean up last usage

* include hpp for sim

* need the cpp wrappers in the makefile too

* include dir

* include
2020-11-19 06:56:02 -05:00
rusefillc dbdfd87c6d Starter seems to be engaged forever fix #1965 2020-11-18 23:54:30 -05:00
rusefillc 2d3ddcde9d Starter seems to be engaged forever #1965 2020-11-18 22:47:40 -05:00
rusefillc b6dac8dac2 Starter seems to be engaged forever #1965 2020-11-18 22:42:41 -05:00
rusefillc b95dd4311b Starter seems to be engaged forever #1965 2020-11-18 21:08:01 -05:00
rusefillc a73b2c9298 Starter seems to be engaged forever #1965 2020-11-18 20:53:03 -05:00
rusefillc 4b57edc6d1 Starter seems to be engaged forever #1965 2020-11-18 20:48:52 -05:00
rusefillc ab75be8742 Something something unit test ETB does not work #1966 2020-11-18 20:12:58 -05:00
rusefillc 2af3cdf70e Starter seems to be engaged forever #1965 2020-11-18 20:01:02 -05:00
rusefillc 66c784480f Merge remote-tracking branch 'origin/master' into master 2020-11-18 19:51:57 -05:00
rusefillc c30d0d31f3 Starter seems to be engaged forever #1965 2020-11-18 19:51:51 -05:00
GitHub set-date Action 37230c1a95 Update date 2020-11-19 00:38:43 +00:00
rusefillc 5118a67f89 better error handling 2020-11-17 22:45:43 -05:00
GitHub set-date Action 5a54a6b668 Update date 2020-11-18 00:38:02 +00:00
Matthew Kennedy 7d6fe4ff8e undo 1946 (#1957) 2020-11-17 17:07:56 -05:00
rusefillc 8a419291c6 DC not ETB refactoring 2020-11-16 20:07:12 -05:00
rusefillc 851478f846 DC not ETB refactoring 2020-11-16 20:05:35 -05:00
GitHub build-firmware Action b00cc44f6d Auto-generated configs and docs 2020-11-17 00:54:02 +00:00