Commit Graph

3571 Commits

Author SHA1 Message Date
Matthew Kennedy 6a5d53fe64 Fix (#1004)
* Revert "fixing build"

This reverts commit ba0aa5cba9.

* undo overzealous ifdef cplusplus
2019-11-12 01:13:13 -05:00
rusefi ba0aa5cba9 fixing build 2019-11-12 00:50:30 -05:00
Matthew Kennedy b01a9e1388 use static asserts (#1003) 2019-11-12 00:39:38 -05:00
rusefi 8bbd06d165 refactoring: time to unify digital pin API 2019-11-11 23:32:09 -05:00
rusefi 3ff2b2271a refactoring: time to unify digital pin API 2019-11-11 23:04:27 -05:00
rusefi 80ef79eded this is not great :(
#639
#971
2019-11-11 22:19:35 -05:00
rusefi 78d771460a need better higher-level API :( 2019-11-11 22:14:45 -05:00
rusefi 7c453fb199 Strange INJ1 signal behavior (when the frequency of scheduler's timer is less than 1MHz) fix #996 2019-11-10 23:54:08 -05:00
rusefi 412744d613 trying to fix integration tests
[java] 2019-11-10_13_31_42_194<EOT>: msg,FATAL error: PID::isSame invalid,
     [java] 2019-11-10_13_31_42_194<EOT>: postMessage EngineState: FATAL error: PID::isSame invalid
     [java] 2019-11-10_13_31_42_289<EOT>: Sending packet 4F 00 00 64 01
     [java] 2019-11-10_13_31_42_289<EOT>: output channels header: waiting for 2 byte(s)
     [java] 2019-11-10_13_31_42_290<EOT>: IncomingDataBuffer: 256 byte(s) arrived
     [java] 2019-11-10_13_31_42_290<EOT>: output channels body: waiting for 361 byte(s)
     [java] 2019-11-10_13_31_42_291<EOT>: IncomingDataBuffer: 107 byte(s) arrived
2019-11-10 16:07:13 -05:00
andreika-git add26866f5 Industrial PID Controller (#1002)
* Implement Industrial PID controller

* Test-Use PidIndustrial in alternator

* Meaningful unit-tests for PidIndustrial
2019-11-10 13:04:27 -05:00
rusefi ca0984007d Strange INJ1 signal behavior (when the frequency of scheduler's timer is less than 1MHz) #996
new advanced debugging: hardware pins
2019-11-10 12:39:47 -05:00
rusefi f34023a9ea Trying latest gcc 9 #1001 2019-11-07 11:28:49 -05:00
rusefi 7eaed773ff evil manual merge of https://github.com/DonaldBecker/rusefi 2019-11-06 20:33:40 -05:00
rusefi a41b4c896d fine, taking care of more warnings 2019-11-06 19:53:09 -05:00
rusefi 17a2847424 evil manual merge of https://github.com/DonaldBecker/rusefi 2019-11-06 18:26:50 -05:00
andreika-git ae59680918 Kinetis timer freq. fix & config update (#999)
* Kinetis: fix timer frequency

* More silentTriggerError - it really helps a lot!

* Kinetis: gen_config.bat update
2019-11-06 14:45:55 -05:00
rusefi c734cb0fa4 Missing dwell altogether in some corner cases fix #796 2019-11-06 00:31:24 -05:00
rusefi fbdbc0656a Missing dwell altogether in some corner cases #796
flirting with the fix but not yet the fix
2019-11-06 00:10:44 -05:00
rusefi 3b2d5c8c7f Missing dwell altogether in some corner cases #796
only additional live data here
2019-11-05 23:36:33 -05:00
rusefi 92d1842bd0 refactoring 2019-11-05 23:17:44 -05:00
rusefi 7c2f9a7c5d refactoring: removing unused parameter 2019-11-05 22:49:11 -05:00
rusefi 3357e41614 evil manual merge of https://github.com/DonaldBecker/rusefi 2019-11-05 22:40:33 -05:00
rusefi 30cfb96619 evil manual merge of https://github.com/DonaldBecker/rusefi 2019-11-05 20:07:55 -05:00
rusefi 68db5ecdb1 progress towards #961 2019-11-04 22:52:37 -05:00
rusefi 9c3492043d progress towards #961 2019-11-04 22:44:52 -05:00
rusefi 17792f762c kind of todo 2019-11-04 22:29:22 -05:00
rusefi eae44843b1 custom codes cleanup 2019-11-04 09:20:00 -05:00
rusefi e5bebe0f72 happy November 2019-11-03 23:38:00 -05:00
rusefi d99d576e2b CI instability: FATAL error: warn stream not initialized fix #798 2019-11-03 22:15:49 -05:00
rusefi 8423fa0acf pieces of #971 2019-11-03 22:02:52 -05:00
rusefi fdbe81121d moving setDefaultFrankensoConfiguration down is the way of righteousness 2019-11-03 21:29:12 -05:00
rusefi 591f19321d nicer enum name 2019-11-03 21:19:13 -05:00
rusefi d8941eec12 moving setDefaultFrankensoConfiguration down is the way of righteousness 2019-11-03 19:36:56 -05:00
rusefi a325551edd moving setDefaultFrankensoConfiguration down is the way of righteousness 2019-11-03 17:25:34 -05:00
rusefi 10377c918f moving setDefaultFrankensoConfiguration down is the way of righteousness 2019-11-03 17:17:43 -05:00
rusefi 82b7190dc0 review feedback 2019-11-03 10:36:35 -05:00
rusefi 359f7c437b skeleton & docs (#995)
* Documentation additions and clarifications.

Added config/boards/skeleton/ as an example and starting point for
board-specific support.

* Describe where the generated files came from.

* Minor rewording

* Delete mistakenly added emacs backups

* Added an overall description and build notes
2019-11-03 08:41:14 -05:00
andreika-git ef23be6893 Kinetis & TLE8888 compatibility & fixes... (#991)
* TLE8888: More compatibility & postTunerStudioState

* activeConfiguration & EFI_ACTIVE_CONFIGURATION_IN_FLASH fix

* Kinetis: jump_to_bootloader() impl.

* Kinetis: UART baudrate safety check

* Kinetis: OMG!..
2019-10-31 16:06:34 -04:00
rusefi 28df878989 scramblr reports sync issues on NB1 fix #990 2019-10-30 21:01:23 -04:00
rusefi db24091933 60/2 VW trigger has running issue on 19/10/19 snapshot fix #986 2019-10-30 20:51:20 -04:00
rusefi f453cc6737 smarter IAC PID 2019-10-30 09:27:12 -04:00
rusefi ec060752f7 flipping NB1 trigger definition 2019-10-29 21:19:00 -04:00
rusefi b6c5ff5fee refactoring & verbose trigger to simulator 2019-10-29 21:12:44 -04:00
rusefi 7dec2d3ad8 bugfix around verboseTriggerSynchDetails - 64 bits on stack was causing broken messages 2019-10-29 18:20:55 -04:00
rusefi 8155cf6234 reducing code duplication with prod code & fixing simulator 2019-10-29 16:57:55 -04:00
rusefi be9a67e67e IM_TWO_COILS 2019-10-27 16:19:59 -04:00
rusefi a8a0bc007a docs 2019-10-26 21:53:22 -04:00
rusefi 0fcf3bfa4e refactoring: reducing code duplication 2019-10-21 23:47:40 -04:00
rusefi 1602bdbebc steps towards #975 2019-10-18 19:45:32 -04:00
rusefi e73dd317b7 steps towards #975 2019-10-18 19:39:06 -04:00
rusefi eff84bcfeb steps towards #975 2019-10-18 18:54:32 -04:00
rusefi b31d729ce3 date 2019-10-17 00:09:13 -04:00
Matthew Kennedy 6f3bfcb099 fix wwae (#980) 2019-10-17 00:06:54 -04:00
rusefi 7d73334b54 Revert "Revert "Performance improvement: call GetBaseFuel less (#979)""
This reverts commit 323904728d.
2019-10-16 23:02:24 -04:00
rusefi 323904728d Revert "Performance improvement: call GetBaseFuel less (#979)"
This reverts commit aa9ec543
2019-10-16 22:29:19 -04:00
Matthew Kennedy aa9ec543f4 Performance improvement: call GetBaseFuel less (#979)
* Remove extra calls to getInjectionDuration

* increase callback frequency
2019-10-16 22:13:10 -04:00
rusefi a7ea155633 preparing for #973 2019-10-16 22:10:38 -04:00
Matthew Kennedy ba97572795 fix #977 (#978) 2019-10-15 05:24:33 -04:00
Matthew Kennedy 89ca9a0406 Merge remote-tracking branch 'upstream/master' into perf-tracing 2019-10-14 23:45:39 -07:00
Matthew Kennedy eb418f764b trace all the things 2019-10-14 23:34:12 -07:00
rusefi cdf827a20a preparing for #961
better code style
2019-10-15 02:06:15 -04:00
rusefi 0535ac8e01 preparing for #974
code comments & refactoring
2019-10-15 01:27:19 -04:00
rusefi 6f8b82e8ed preparing for #974
code comments & refactoring
2019-10-14 18:32:16 -04:00
rusefi 730aaca3ea preparing for #974
code comments & refactoring
2019-10-14 16:04:28 -04:00
rusefi 791c1423b0 preparing for #974
code comments & refactoring
2019-10-14 09:09:08 -04:00
rusefi 41919a4fbd preparing for #974
code comments & refactoring
2019-10-14 06:18:08 -04:00
Matthew Kennedy 97d848bb3e profile all the things 2019-10-13 13:14:08 -07:00
rusefi 002597c8e5 Merge branch 'master' of https://github.com/rusefi/rusefi 2019-10-13 09:59:19 -04:00
rusefi c938b0d374 preparation for #961
more unified access to pre-calculated value
2019-10-13 09:59:06 -04:00
Matthew Kennedy 076b10fcb6 experiment 2019-10-11 17:43:21 -07:00
rusEfi 4c95fbd43d pin conflict in MRE test config 2019-10-10 13:32:07 -04:00
rusefi abfdfe6896 preparation for #961
more unified access to pre-calculated value
2019-10-10 08:25:58 -04:00
rusefi 2c8a2b61a5 preparation for #961
more unified access to pre-calculated value
2019-10-10 08:16:21 -04:00
rusefi a5f09ef378 preparation for #961
macro as a syntax sugar for method invocation
2019-10-10 07:37:37 -04:00
rusefi f776513a5a preparation for #961
macro as a syntax sugar for method invocation
2019-10-10 07:28:52 -04:00
rusefi 9776d3c57d better handling of corner case 2019-10-10 07:07:59 -04:00
Matthew Kennedy 821ca6156f move tsOutputChannels to header (#970) 2019-10-08 21:02:51 -04:00
rusefi c5f12fbcd9 I got carried away, but DEAD CODE?! 2019-10-08 03:14:21 -04:00
rusefi 875fb3d1bc something is over-complicated here? looks like two classes should become one? 2019-10-08 02:56:19 -04:00
rusefi 415de92543 something is over-complicated here? looks like two classes should become one? 2019-10-08 02:35:21 -04:00
rusefi 5d6a329c80 wow, dead field 2019-10-08 02:17:32 -04:00
rusefi 54fe92e534 really not clear what is the best place for these classes 2019-10-08 02:13:52 -04:00
rusefi f189bbab04 refactoring 2019-10-08 02:01:41 -04:00
rusefi ba59ef00e7 docs & refactoring 2019-10-08 01:49:42 -04:00
rusefi bd7b286ae4 fancier C++ initialization 2019-10-08 01:36:35 -04:00
rusefi 74c8b59e44 typo & better field name 2019-10-08 01:36:03 -04:00
rusefi 15ae9b1580 fancy C++ s/NULL/nullptr/ 2019-10-08 01:26:35 -04:00
rusefi 7e1e7629ee refactoring: better field name(s) 2019-10-08 01:03:57 -04:00
rusefi 46e1ff671a refactoring: better field name 2019-10-08 00:54:19 -04:00
rusefi ad9950a8d8 refactoring: better variable names 2019-10-08 00:42:47 -04:00
rusefi 0f248ff967 refactoring: better parameter name 2019-10-08 00:30:20 -04:00
rusefi 4c1c497bbc refactoring: smarter C++ initialization 2019-10-08 00:27:49 -04:00
rusefi 0aa7088f99 date 2019-10-06 00:39:50 -04:00
Matthew Kennedy 40853e1a3f fix gm 24x decoder (#963)
* fix gm

* fix

* fix default config, tests
2019-10-05 08:27:30 -04:00
Matthew Kennedy 9b1dc07ae1 Simplify thermistor config (#962)
* simplify thermistor config

* fix test
2019-10-02 21:00:10 -04:00
rusefi b6d22a007b docs 2019-09-29 15:14:08 -04:00
rusefi 5a59f1b232 fixing build 2019-09-29 14:22:51 -04:00
rusefi 9425b714fc Merge branch 'master' of https://github.com/rusefi/rusefi 2019-09-29 14:16:51 -04:00
rusEfi 313e1da631 etbCalibrationOnStart 2019-09-29 14:00:04 -04:00
rusefi 9a961fd0c2 do not let "Use fixed baro corr from MAP" kill VE fix #960 2019-09-29 09:58:29 -04:00
rusefi 7d68b3d829 firing order 1-2-7-8-4-5-6-3 2019-09-28 10:25:57 -04:00
rusefi e6cc663e96 docs 2019-09-28 09:59:40 -04:00
rusEfi d73d668a9e new command 'etb_freq X' 2019-09-27 23:37:40 -04:00
rusEfi 80d222fc55 it's a cruel world 2019-09-27 23:01:47 -04:00
Matthew Kennedy b68ed85491 Fix sensor mock spill, again (#957)
* actually reset

* add test

* doh
2019-09-27 21:40:36 -04:00
rusEfi 9193e73090 Revert "Fix sensor mocking bug (#956)"
This reverts commit 7989d593
2019-09-27 20:33:45 -04:00
Matthew Kennedy 7989d59311 Fix sensor mocking bug (#956)
* actually reset

* add test
2019-09-27 20:21:50 -04:00
rusefi ba1d8eb512 idle&ETB progress 2019-09-26 00:02:47 -04:00
rusefi 3b44a70501 fixing build 2019-09-25 08:46:26 -04:00
rusefi 1ebbfa7ebb Merge branch 'master' of https://github.com/rusefi/rusefi 2019-09-25 08:40:56 -04:00
rusefi 0d35b1ebba reducing hell in unit tests 2019-09-25 08:40:33 -04:00
Matthew Kennedy 325a9e3fd1 Hmm, that didn't quite work right (#955)
* maybe that wasn't a good idea

* we don't need a copy because you can't clear the func after setting it

* no longer a template - move logic to cpp

* fix tests

* rename to avoid object collision
2019-09-25 07:26:56 -04:00
Matthew Kennedy ccb4c51e50 Sensors: composition >> inheritance (#953)
* functional sensors

* format

* tests

* sim makefile

* eol

* format tests
2019-09-24 21:11:41 -04:00
rusefi 80f8facd8a absolute fuel pressure flow calculation #954 2019-09-24 18:39:26 -04:00
rusefi b28710c908 HardFault related to auto r = convertFromInputValue(inputValue); #948
wow, it's a miracle anything ever worked!
2019-09-23 01:55:23 -04:00
rusefi cb02926c89 ETB is sticky around zero and does not want to close all the way #943
fixing build
2019-09-23 00:41:35 -04:00
rusEfi 97e0270b1c ETB is sticky around zero and does not want to close all the way #943 2019-09-22 23:28:11 -04:00
rusefi df64289fd5 ETB target is using integer values fix #945 2019-09-22 18:15:00 -04:00
rusefi 42f085a4a0 ETB target is using integer values #945
now we have a unit test! now we can fix the issue :)
2019-09-22 17:58:27 -04:00
rusefi cfbf5e0b12 ETB target is using integer values #945
refactoring - ADC mocking is a mess
2019-09-22 17:43:00 -04:00
rusefi f65fc4fec1 ETB target is using integer values #945
refactoring - ADC mocking is a mess
2019-09-22 17:39:13 -04:00
rusefi e4878734a1 ETB target is using integer values #945
refactoring - ADC mocking is a mess
2019-09-22 17:19:08 -04:00
rusefi c6bca8e77a ETB target is using integer values #945
refactoring - ADC mocking is a mess
2019-09-22 10:02:07 -04:00
rusefi 658dac889c ETB target is using integer values #945
refactoring - ADC mocking is a mess
2019-09-22 09:56:06 -04:00
rusefi 3a30e9194c ETB target is using integer values #945
refactoring
2019-09-22 08:51:02 -04:00
rusefi 13fd4c2fc5 Merge branch 'master' of https://github.com/rusefi/rusefi 2019-09-22 08:45:03 -04:00
rusefi 7710df4fed ETB target is using integer values #945
refactoring
2019-09-22 08:44:51 -04:00
rusEfi 4c39a207a9 s/NULL/nullptr/ 2019-09-22 08:22:35 -04:00
rusEfi b46c5b4960 ETB target is using integer values #945
first we will write a unit test
2019-09-22 07:58:03 -04:00
rusEfi 0fd1f27e1b ETB target is using integer values #945
first we will write a unit test
2019-09-22 00:36:13 -04:00
rusEfi 53ae54e8cc ETB target is using integer values #945
first we will write a unit test
2019-09-22 00:16:46 -04:00
rusefi c44f76f2ed "set_etb" is now "set_etb_duty" 2019-09-21 22:15:34 -04:00
rusefi 2e492d22bf fixing build 2019-09-21 15:43:18 -04:00
rusefi ee074b9fe7 fixing build 2019-09-21 15:33:13 -04:00
Matthew Kennedy dfcc9dba04 add sensor framework, tests (#929)
* add framework, tests

* move oil pressure to new way

* add init logic

* brackets on the same line

* spaces -> tabs

* spaces -> tabs for tests

* bracket on same line

* hook up sensor mocking

* add nan check

* fix nan check

* I wrote an essay

* casing

* only init if we have a sensor to init

* style, actually call init

* format

* fix casing

* typo

* implement linear sensor

* wire up producer

* smarter limiting

* setup comments

* add reporting

* doxyfile

* oops

* add adc subscription

* clarity

* fix logic

* multiply voltage

* test styling

* test guards

* remove dependencies

* linear sensor test

* remove unused

* fix merge

* format, implicit convert op

* explicit

* format tests

* fix merge
2019-09-21 14:33:38 -04:00
rusefi 9586490e6c progress 2019-09-21 14:18:59 -04:00
rusefi 50850ca0c9 fixing bug from yesterday 2019-09-21 11:09:03 -04:00
rusefi fdea935fc0 ETB idle bugfix: do not use once turned off 2019-09-21 01:22:21 -04:00
rusefi 757f8eb690 NB2 miata on Frankenso with ETB 2019-09-21 01:21:53 -04:00
rusefi 282cc41980 ETB pinEnableMode 2019-09-20 22:16:54 -04:00
rusefi 02fb27440e ETB to SD logs 2019-09-20 20:41:45 -04:00
rusefi aa8d0eb640 configurable SD card logging speed 2019-09-20 20:18:22 -04:00
rusefi c9c32c8db6 Merge branch 'master' of https://github.com/rusefi/rusefi 2019-09-20 18:35:56 -04:00
rusefi d95740467e refactoring "date" command and flex dead code 2019-09-20 18:12:56 -04:00
rusefi 6457c05da5 thank you @andreika! 2019-09-20 08:44:20 -04:00
rusefi 03d71bedeb reducing complexity 2019-09-20 01:06:15 -04:00
rusefi 13b74d3d4d unit tests progress 2019-09-20 00:46:35 -04:00
rusefi cac91ceac8 unit tests progress 2019-09-20 00:34:42 -04:00
rusefi f2e67b05c0 unit tests progress 2019-09-20 00:25:43 -04:00
rusefi 0b5a49392f refactoring 2019-09-20 00:17:00 -04:00