Commit Graph

9002 Commits

Author SHA1 Message Date
Matthew Kennedy fadfc8d09b
config for second lambda (#2047)
* config

* size

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-09 14:30:51 -05:00
rusefillc e6bfd9a2ed trigger lifecycle 2020-12-09 12:19:25 -05:00
GitHub build-firmware Action 247d608c1e Auto-generated configs and docs 2020-12-09 17:15:05 +00:00
rusefillc 1133b44fe4 Merge remote-tracking branch 'origin/master' into master 2020-12-09 12:08:57 -05:00
rusefillc 034cb0d173 trigger lifecycle 2020-12-09 12:08:38 -05:00
Matthew Kennedy 99b9391ae8
start peeling out ts commands (#2045)
* start peeling out commands

* guard

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-09 02:23:02 -05:00
rusefi ac186d2b85 Merge remote-tracking branch 'origin/master' into master
# Conflicts:
#	firmware/controllers/engine_cycle/high_pressure_fuel_pump.cpp
2020-12-08 21:37:45 -05:00
rusefillc 8deff87b4f refactoring 2020-12-08 21:33:59 -05:00
GitHub build-firmware Action 5537b2035c Auto-generated configs and docs 2020-12-09 02:10:55 +00:00
shadowm60 adf0a97ffc
Prepare configurations for SW knock detection (#2046)
* Prepare configurations

- Configurations needed for base noise
- TS usability for base noise definition

* Update rusefi_config.txt

wrong data ype used for base noise
2020-12-08 21:08:59 -05:00
GitHub set-date Action 8ce7a984e4 Update date 2020-12-09 00:48:33 +00:00
rusefillc 511eefe400 Merge remote-tracking branch 'origin/master' into master 2020-12-08 13:59:47 -05:00
rusefillc ea8e09ba13 fix warnings found by clang #2014 2020-12-08 13:59:40 -05:00
Matthew Kennedy bad0e6b949
require redundant TPS for ETB (#2041)
* Require redundant tps for ETB (#2037)

* mod sensor api

* require redundancy

* fix tests

* check that it fails

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>

* add a test that fails but should not

* fix the bug

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-08 06:24:20 -05:00
rusefillc 7bdd047955 basic hw in the loop - pwm self validation #2028 2020-12-08 05:30:12 -05:00
GitHub build-firmware Action 9bf994e10f Auto-generated configs and docs 2020-12-08 10:16:15 +00:00
rusefillc 8f5a4e4dae basic hw in the loop - pwm self validation #2028 2020-12-08 05:14:27 -05:00
rusefillc 5cda628c8b basic hw in the loop - pwm self validation #2028 2020-12-08 05:07:03 -05:00
rusefillc 824f87c2d0 basic hw in the loop - pwm self validation #2028 2020-12-08 04:52:49 -05:00
GitHub build-firmware Action 1c6b53658e Auto-generated configs and docs 2020-12-08 09:43:33 +00:00
rusefillc 36f72b56ef basic hw in the loop - pwm self validation #2028 2020-12-08 04:41:07 -05:00
rusefillc 08c13fab73 basic hw in the loop - pwm self validation #2028 2020-12-08 04:21:14 -05:00
Matthew Kennedy cc59a42e3f
start making TS protocol testable (#2043)
* start pulling out a class

* pull function out of loop

* there we go

* ok there we go for real

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-08 03:05:43 -05:00
rusefillc 96c29840ce basic hw in the loop - pwm self validation #2028 2020-12-07 20:42:47 -05:00
GitHub build-firmware Action 6b80297245 Auto-generated configs and docs 2020-12-08 01:33:19 +00:00
rusefillc 8ed1df4841 basic hw in the loop - pwm self validation #2028 2020-12-07 20:31:02 -05:00
rusefillc aca471273d basic hw in the loop - pwm self validation #2028 2020-12-07 20:26:47 -05:00
rusefillc 0126f4fb4b Merge remote-tracking branch 'origin/master' into master 2020-12-07 20:01:23 -05:00
rusefillc 6712c63160 basic hw in the loop - pwm self validation #2028 2020-12-07 20:01:05 -05:00
GitHub set-date Action 8a312cefef Update date 2020-12-08 00:47:47 +00:00
rusefi 2a1b585bfe Revert "Revert "Split ETB in to interface + implementation headers (#2040)""
This reverts commit 4f4bb957
2020-12-07 01:27:27 -05:00
rusefi bb3cb0ba22 Revert "Require redundant tps for ETB (#2037)"
This reverts commit 4f1085a8
2020-12-07 01:11:32 -05:00
rusefi 4f4bb95770 Revert "Split ETB in to interface + implementation headers (#2040)"
This reverts commit d9a82c09
2020-12-07 01:11:19 -05:00
Matthew Kennedy d9a82c09af
Split ETB in to interface + implementation headers (#2040)
* split etb interface

* mocks

* fix master while we're at it

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-07 00:29:09 -05:00
Matthew Kennedy 4f1085a87a
Require redundant tps for ETB (#2037)
* mod sensor api

* require redundancy

* fix tests

* check that it fails

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-07 00:05:06 -05:00
Matthew Kennedy 67269aa637
maybe fix sensor init checks (#2034)
* enums

* don't collide

* auto_generated_enums

* check based on new enum val

* maybe this will make generate tool happy

* add a test

* fix test

* fix and add another test

* make clang happier

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-06 23:19:57 -05:00
Matthew Kennedy 22c74895a6
put back safe part of #2005 (#2036)
* put back some safe bits

* dumb typo

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-06 22:28:29 -05:00
GitHub set-date Action 632430e929 Update date 2020-12-07 00:47:47 +00:00
rusefillc 81143d0820 range check covers 'ERROR_CODE' already 2020-12-06 19:29:37 -05:00
rusefillc 9efd231915 minor fixes 2020-12-06 19:25:48 -05:00
rusefillc 2e8ae3ca94 refactoring 2020-12-06 19:04:23 -05:00
rusefillc 8739e192f5 basic hw in the loop - pwm self validation #2028 2020-12-06 18:39:50 -05:00
rusefillc 1da9f35ac2 Merge remote-tracking branch 'origin/master' into master 2020-12-06 18:13:07 -05:00
rusefillc debec1107e subi 2020-12-06 18:08:55 -05:00
GitHub build-firmware Action d20d484fce Auto-generated configs and docs 2020-12-06 23:08:10 +00:00
rusefillc b3d45b909f Revert "switch rpm calculator to use timer class (#2005)"
This reverts most of a26ed3eb5a commit.
2020-12-06 18:05:53 -05:00
rusefillc 13e692ff09 Merge remote-tracking branch 'origin/master' into master 2020-12-06 17:52:30 -05:00
rusefillc 5192ffc64f docs 2020-12-06 17:39:33 -05:00
Matthew Kennedy a26ed3eb5a
switch rpm calculator to use timer class (#2005)
* add api

* rpm calculator

* fix fsio

* fix float

* remove wrong comment

* fix timer

* clang didn't like this

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-06 16:01:45 -05:00
Matthew Kennedy c5e3657d45
don't duplicate sensor error logic (#2032)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-06 15:00:30 -05:00
Matthew Kennedy 9ccda6bbe7
add isRedundant (#2031)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-06 14:55:06 -05:00
GitHub build-firmware Action 70467a0117 Auto-generated configs and docs 2020-12-06 19:19:09 +00:00
rusefillc 9f13d39003 MRE_SUBARU_EJ18 2020-12-06 14:16:40 -05:00
rusefillc 166f4fc381 MRE_SUBARU_EJ18 2020-12-06 13:08:09 -05:00
rusefillc f6691eb4aa one step back #2017 2020-12-06 08:34:10 -05:00
rusefillc bcf404cdae code formatting & more info into message 2020-12-06 08:30:31 -05:00
Matthew Kennedy 9238aa454e
fix button shift inheritance (#2027)
* fix button shift inheritance

* extra

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-06 07:32:38 -05:00
Matthew Kennedy 2d9be1077b
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 ffae0cd335
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 c492d5b6af Auto-generated configs and docs 2020-12-06 03:05:54 +00:00
rusefillc edce475841 suby 2020-12-05 22:04:07 -05:00
rusefillc 75ffe1f38e making console happier 2020-12-05 21:56:39 -05:00
GitHub set-date Action 400411dedd Update date 2020-12-06 00:47:59 +00:00
Andrey G 7c6974ab43
Fixes after clenup (#2019)
* We still need consoleEventListener for boards with EFI_CONSOLE_SERIAL_DEVICE

* MC33810: add MC_ prefix for command defines

As CMD_PWM define is now used by console command
2020-12-05 11:54:09 -05:00
Matthew Kennedy de4990bfa2
encapsulate entry logic in to entry (#2018)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-05 10:16:52 -05:00
Andrey G 2b5fc79aa7
ADC: correctly calculate cache invalidate range for STM32F7xxx (#2021)
Bug was introduced in 2312b0ae57 when
sample buffer was moved out of class. So sample become adcsample_t*
instead of adcsample_t[] and sizeof returns 4.
2020-12-05 10:14:33 -05:00
Andrey G 852fdcd4d1
adc: fix CPU temperature read for STM32F76x/77x (#2020) 2020-12-05 09:58:23 -05:00
GitHub build-firmware Action 9892f0fa48 Auto-generated configs and docs 2020-12-05 05:05:04 +00:00
Matthew Kennedy 27fee86923
add indicator for tps2 fail (#2016)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-05 00:01:24 -05:00
rusefillc e5ef8de2ae unit tests in clang #2012 2020-12-04 23:59:21 -05:00
rusefi 07a8e237a5 Merge remote-tracking branch 'origin/master' into master 2020-12-04 21:52:22 -05:00
shadowm60 864bd7fa73
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 1bc89fe59c Update date 2020-12-05 00:45:22 +00:00
rusefillc dd902cc707 hemi trigger decoder took some RAM 2020-12-04 18:46:35 -05:00
rusefillc d8264cf2ce hemi trigger decoder took some RAM 2020-12-04 18:22:59 -05:00
rusefillc 6200569f28 6.1 Hemi V8 decoder fix #2010 2020-12-04 16:50:26 -05:00
rusefillc eaba91e1fd 6.1 Hemi V8 decoder #2010 2020-12-04 16:33:29 -05:00
rusefillc be2a34a956 refactoring: magic constants 2020-12-04 16:24:19 -05:00
rusefillc 2524b7b8c2 6.1 Hemi V8 decoder #2010 2020-12-04 16:03:27 -05:00
rusefillc e730c2c0b1 6.1 Hemi V8 decoder #2010 2020-12-04 15:33:07 -05:00
rusefillc 9221a12d95 6.1 Hemi V8 decoder #2010 2020-12-04 15:22:53 -05:00
rusefillc 61925aad15 all triggers should be documented way nicer #2001 2020-12-04 14:00:49 -05:00
rusefillc 6496fd5a64 all triggers should be documented way nicer #2001 2020-12-04 13:54:16 -05:00
rusefillc e138621202 all triggers should be documented way nicer #2001 2020-12-04 11:58:26 -05:00
rusefillc db5e30edf5 all triggers should be documented way nicer #2001 2020-12-04 11:44:27 -05:00
GitHub build-firmware Action be55246188 Auto-generated configs and docs 2020-12-04 16:39:14 +00:00
rusefillc 479dc8598d all triggers should be documented way nicer #2001 2020-12-04 11:37:15 -05:00
rusefillc 8e13892736 6.1 Hemi V8 decoder #2010 2020-12-04 01:02:09 -05:00
rusefillc 0a23e82baf 6.1 Hemi V8 decoder #2010 2020-12-04 00:30:22 -05:00
GitHub build-firmware Action 3a4942fd55 Auto-generated configs and docs 2020-12-04 05:21:17 +00:00
rusefillc 49bf25318a 6.1 Hemi V8 decoder #2010 2020-12-04 00:18:40 -05:00
rusefillc 4c3eae5676 FORD ST170 CAM TRIGGER PATTERN fix #2009 2020-12-03 23:54:08 -05:00
GitHub build-firmware Action 98583bfabb Auto-generated configs and docs 2020-12-04 04:26:34 +00:00
rusefillc accdb6ee6a FORD ST170 CAM TRIGGER PATTERN #2009 2020-12-03 23:23:32 -05:00
rusefillc 93e0378f69 Merge remote-tracking branch 'origin/master' into master 2020-12-03 23:12:42 -05:00
rusefillc f021c37cc1 DAIHATSU 3CYLINDER TRIGGER WHEEL SUPPORT fix #2008 2020-12-03 23:12:30 -05:00
GitHub build-firmware Action 0b2e8755ee Auto-generated configs and docs 2020-12-04 02:59:40 +00:00
rusefillc c413f03359 DAIHATSU 3CYLINDER TRIGGER WHEEL SUPPORT #2008 2020-12-03 21:58:03 -05:00
GitHub build-firmware Action 77914fb702 Auto-generated configs and docs 2020-12-04 02:33:46 +00:00
rusefillc c55120372b DAIHATSU 3CYLINDER TRIGGER WHEEL SUPPORT #2008 2020-12-03 21:31:58 -05:00
GitHub set-date Action ba8bd6d582 Update date 2020-12-04 00:44:45 +00:00
rusefillc e226024a5c MRE pin reuse state validation fails #2006 2020-12-03 15:42:48 -05:00
rusefillc 662eaea384 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 ba33a758e8 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 f1f64bd3e5
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 82c30dadf8 Auto-generated configs and docs 2020-12-03 15:51:02 +00:00
rusefillc 745038c4a7 more dead code 2020-12-03 10:49:20 -05:00
rusefillc 7dbc9afa38 Avoid float -> int64 conversion #1993 2020-12-03 10:31:16 -05:00
rusefillc df5c33ea86 Avoid float -> int64 conversion #1993 2020-12-03 10:26:50 -05:00
GitHub build-firmware Action d803115081 Auto-generated configs and docs 2020-12-03 14:36:32 +00:00
rusefillc eedc777609 Merge remote-tracking branch 'origin/master' into master 2020-12-03 09:34:37 -05:00
rusefillc 92fe2e5fb9 all triggers should be documented way nicer #2001 2020-12-03 08:42:25 -05:00
Matthew Kennedy 4deb875204
fix warnings (#2003)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-03 07:27:27 -05:00
GitHub build-firmware Action b2e26a2e2b Auto-generated configs and docs 2020-12-03 06:38:53 +00:00
rusefillc dd9e431782 dead code matches Mazda SOHC 2020-12-03 01:36:43 -05:00
GitHub build-firmware Action 896a96fb63 Auto-generated configs and docs 2020-12-03 06:34:34 +00:00
rusefillc 0ea6028596 Merge remote-tracking branch 'origin/master' into master 2020-12-03 01:31:59 -05:00
rusefillc e7e706b88d all triggers should be documented way nicer #2001 2020-12-03 01:31:52 -05:00
GitHub build-firmware Action b5b9554903 Auto-generated configs and docs 2020-12-03 06:25:01 +00:00
rusefillc a2036ebc70 dead trigger, this would now be vvt+60/2 2020-12-03 01:22:57 -05:00
GitHub build-firmware Action c7f951a2e9 Auto-generated configs and docs 2020-12-03 06:21:16 +00:00
rusefillc 00e85f1409 all triggers should be documented way nicer #2001 2020-12-03 01:19:02 -05:00
GitHub build-firmware Action b943bb8e3d Auto-generated configs and docs 2020-12-03 06:04:08 +00:00
rusefillc 7855847a3f all triggers should be documented way nicer #2001 2020-12-03 01:02:17 -05:00
GitHub build-firmware Action e61c79c378 Auto-generated configs and docs 2020-12-03 05:21:30 +00:00
rusefillc 479fcf0174 all triggers should be documented way nicer #2001 2020-12-03 00:19:18 -05:00
rusefillc c36f76b68e Fuel pump should turn on at the first sign of engine rotation #1961 2020-12-02 23:09:39 -05:00
rusefillc 0ba97379fb all triggers should be documented way nicer #2001 2020-12-02 22:17:38 -05:00
rusefillc b662b977fa all triggers should be documented way nicer #2001 2020-12-02 20:51:33 -05:00
GitHub build-firmware Action 85637f01c7 Auto-generated configs and docs 2020-12-03 01:32:59 +00:00
rusefillc 1443900c6b all triggers should be documented way nicer #2001 2020-12-02 20:30:47 -05:00
GitHub build-firmware Action 5c9ac60b0b Auto-generated configs and docs 2020-12-03 01:22:05 +00:00
rusefillc fb1d6bcf07 Merge remote-tracking branch 'origin/master' into master 2020-12-02 20:19:56 -05:00
rusefillc 6019672d00 all triggers should be documented way nicer #2001 2020-12-02 20:19:47 -05:00
GitHub set-date Action 1e304062a4 Update date 2020-12-03 00:46:39 +00:00
GitHub build-firmware Action 9a5438b2ea Auto-generated configs and docs 2020-12-02 20:08:22 +00:00
shadowm60 d28276b053
Update rusefi.input (#2000)
vssacceleration should be signed 16bit value
2020-12-02 15:06:36 -05:00
GitHub build-firmware Action 617defd510 Auto-generated configs and docs 2020-12-02 19:49:17 +00:00
Matthew Kennedy 3258ee0c61
disable legacy temp units (#1998)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-02 14:47:08 -05:00
GitHub build-firmware Action e9a0c1fff2 Auto-generated configs and docs 2020-12-02 19:17:48 +00:00
rusefillc 2415edaec4 fixing two unrelated typos 2020-12-02 14:15:44 -05:00
GitHub build-firmware Action a80a1fb5a2 Auto-generated configs and docs 2020-12-02 19:12:18 +00:00
rusefillc 18cc2e6bac time to bump TS_OUTPUT_SIZE! 2020-12-02 14:10:08 -05:00
rusefillc 52a1ff0817 time to bump TS_OUTPUT_SIZE! 2020-12-02 14:10:02 -05:00
GitHub build-firmware Action 177328e736 Auto-generated configs and docs 2020-12-02 18:40:45 +00:00
rusefillc d5f0948a39 time to bump TS_OUTPUT_SIZE! 2020-12-02 13:38:02 -05:00
GitHub build-firmware Action ca6c867add Auto-generated configs and docs 2020-12-02 16:14:23 +00:00
shadowm60 ecc9c0dc6b
introduce vehicle acceleration in TS (#1997)
* introduce vehicle acceleration in TS

* Update rusefi.input

added gauge as well
2020-12-02 11:12:19 -05:00
rusefi 2e103697d1 National Mutt Day 2020-12-02 00:58:57 -05:00
rusefi e1b45756b8 National Mutt Day 2020-12-02 00:41:17 -05:00