Commit Graph

5886 Commits

Author SHA1 Message Date
rusefi 3dbecfc2f0 todo 2019-11-13 22:02:13 -05:00
rusefi 9fd45aea19 micro-optimization: replacing by-referece access with direct static access for real firmware 2019-11-13 21:43:24 -05:00
rusefi d318b46d33 unused code 2019-11-13 20:15:02 -05:00
Matthew Kennedy 7e1cf570b2 fix (#1006) 2019-11-13 18:35:21 -05:00
Matthew Kennedy 8969efaffe fix (#1005) 2019-11-13 08:42:16 -05:00
rusefi e33798c214 looks like this part of refactoring is good? 2019-11-12 23:38:02 -05:00
rusefi c9b994ba0d Revert "restoring #1003"
This reverts commit 08940cc6
2019-11-12 23:18:48 -05:00
rusefi c23cb5693a re-applying change 2019-11-12 22:56:56 -05:00
rusefi 08940cc6c0 restoring #1003 2019-11-12 22:17:29 -05:00
rusefi 4b1c1e72ab time to panic and revert more 2019-11-12 21:42:44 -05:00
rusefi 4a8b8336c4 OK trying partial revert now 2019-11-12 21:05:51 -05:00
rusefi e29f993487 I have no idea what's broken 2019-11-12 20:35:07 -05:00
rusefi 8ac4bc40da ops that's not what I mean 2019-11-12 19:58:14 -05:00
rusefi 0af0190468 what's the probability of efi::size breaking build? 2019-11-12 19:40:33 -05:00
rusefi e6abba09a9 refactoring: time to unify digital pin API
trying to fix build
2019-11-12 19:04:33 -05:00
Matthew Kennedy 0570ef4c42 Fix (#1004)
* Revert "fixing build"

This reverts commit 22da8a7dfe.

* undo overzealous ifdef cplusplus
2019-11-12 01:13:13 -05:00
rusefi b6b8c001cd refactoring: time to unify digital pin API 2019-11-12 01:08:45 -05:00
rusefi 6bcf7a438d refactoring: time to unify digital pin API 2019-11-12 01:08:31 -05:00
rusefi 0ae6084301 refactoring: time to unify digital pin API 2019-11-12 00:56:51 -05:00
rusefi 22da8a7dfe fixing build 2019-11-12 00:50:30 -05:00
Matthew Kennedy 9ce18d11fe use static asserts (#1003) 2019-11-12 00:39:38 -05:00
rusefi 6fee1a5f9d refactoring: time to unify digital pin API 2019-11-12 00:25:10 -05:00
rusefi 3c57c3d216 refactoring: time to unify digital pin API 2019-11-11 23:32:09 -05:00
rusefi f082ac48b1 refactoring: time to unify digital pin API 2019-11-11 23:04:27 -05:00
rusefi 15a571fb3e this is not great :(
#639
#971
2019-11-11 22:19:35 -05:00
rusefi b9f0f2c592 need better higher-level API :( 2019-11-11 22:14:45 -05:00
rusefi bb7cc14d27 fixing unit tests build 2019-11-11 21:45:15 -05:00
rusefi a4a618b6bd different take on #971 2019-11-11 21:26:09 -05:00
rusefi f3b8fba38a different take on #971 2019-11-11 21:25:40 -05:00
DonaldBecker 1a78b994b2 Compile warning clean-ups.
Removed mistakenly-added README~

(cherry picked from commit 84b30c992ac77a1563f7449e45b9fa353612fba9)
2019-11-11 20:35:20 -05:00
rusefi 30f07fa14c evil manual cherry 2019-11-11 20:34:09 -05:00
DonaldBecker 7c3594c95a More compile and warning clean ups.
(cherry picked from commit d1cf758bfeee11180e7000c24415acf8d7bcd430)
2019-11-11 20:32:31 -05:00
DonaldBecker 6fa5a1a3f4 A Unix shell script matching the functionality flash_dfu.bat
(cherry picked from commit fd192ab28fde1dac204b19a6fd446728a3b35647)
2019-11-11 20:25:55 -05:00
rusefi 410391598e 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 669c75d44f 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 b996190707 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 79e049a5f8 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 924c4f4fd3 v12 2019-11-09 18:40:06 -05:00
rusefi 99947b3983 v12 2019-11-08 20:53:51 -05:00
rusefi 43aece817b pinout 2019-11-07 20:47:12 -05:00
rusefi 1ed2711c02 consistency 2019-11-07 15:22:17 -05:00
rusefi 8c06048c36 poke 2019-11-07 12:41:01 -05:00
rusefi 42cd78fbd5 Trying latest gcc 9 #1001 2019-11-07 11:28:49 -05:00
rusefi 252b63646a Trying latest gcc 9 #1001 2019-11-07 11:13:32 -05:00
rusefi d2e24cf2e5 evil manual merge of https://github.com/DonaldBecker/rusefi 2019-11-06 20:33:40 -05:00
rusefi e474ab461a MRE F4 2019-11-06 20:05:44 -05:00
rusefi 962a879a7d evil manual merge of https://github.com/DonaldBecker/rusefi 2019-11-06 20:01:53 -05:00
rusefi ae0456e5fb fine, taking care of more warnings 2019-11-06 19:53:09 -05:00
rusefi 6f9ed5205d we have MRE F4 now 2019-11-06 18:58:11 -05:00
rusefi 8525c48036 evil manual merge of https://github.com/DonaldBecker/rusefi 2019-11-06 18:26:50 -05:00
andreika-git 4e19c96cb6 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 df291f4421 Missing dwell altogether in some corner cases fix #796 2019-11-06 00:31:24 -05:00
rusefi 5106ada9ce 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 487acd62de Missing dwell altogether in some corner cases #796
only additional live data here
2019-11-05 23:36:33 -05:00
rusefi 8f5895321c refactoring 2019-11-05 23:17:44 -05:00
rusefi eb4ceda52b refactoring: removing unused parameter 2019-11-05 22:49:11 -05:00
rusefi d4574a3cab evil manual merge of https://github.com/DonaldBecker/rusefi 2019-11-05 22:40:33 -05:00
rusefi 7015a5c250 generating fresh 2019-11-05 21:05:19 -05:00
rusefi ed3a707e3a improving user documentation 2019-11-05 21:03:39 -05:00
rusefi cc6381fe96 evil manual merge of https://github.com/DonaldBecker/rusefi 2019-11-05 20:07:55 -05:00
rusefi 801b2eb70e progress towards #961 2019-11-04 22:52:37 -05:00
rusefi bab1744d1d progress towards #961 2019-11-04 22:44:52 -05:00
rusefi 79fd7fc8ce kind of todo 2019-11-04 22:29:22 -05:00
Matthew Kennedy 449df85f8f move to slow adc (#997) 2019-11-04 17:03:21 -05:00
rusefi 2e3e53c613 custom codes cleanup 2019-11-04 09:20:00 -05:00
rusefi 6913f911e4 poke 2019-11-03 23:55:23 -05:00
rusefi e7a2a77dd5 happy November 2019-11-03 23:38:00 -05:00
rusefi 058e264e0c CI instability: FATAL error: warn stream not initialized fix #798 2019-11-03 22:15:49 -05:00
rusefi 9cbdbb794e pieces of #971 2019-11-03 22:02:52 -05:00
rusefi d1afb9b183 moving setDefaultFrankensoConfiguration down is the way of righteousness 2019-11-03 21:29:12 -05:00
rusefi f1055f80ae v12 2019-11-03 21:27:37 -05:00
rusefi 22453f8392 nicer enum name 2019-11-03 21:19:13 -05:00
rusefi a2bee7f46b moving setDefaultFrankensoConfiguration down is the way of righteousness 2019-11-03 19:36:56 -05:00
rusefi 06b7524c1d moving setDefaultFrankensoConfiguration down is the way of righteousness 2019-11-03 17:25:34 -05:00
rusefi 9c94dd503e moving setDefaultFrankensoConfiguration down is the way of righteousness 2019-11-03 17:17:43 -05:00
rusefi 5c46ad25a7 review feedback 2019-11-03 10:36:35 -05:00
rusefi 5f01a3fb04
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
rusefi 07e69cc773 poke 2019-11-02 13:48:15 -04:00
rusefi 5fd03a9f92 v12 M73 fun begins! 2019-11-01 22:56:58 -04:00
andreika-git 63702dbeeb TLE6240 outputs fix (#994) 2019-11-01 15:49:55 -04:00
andreika-git e8fa6135f4 Kinetis: smarter SPI_CS control (#993) 2019-11-01 10:50:22 -04:00
andreika-git ee5ee1942c 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 47eaea3da3 scramblr reports sync issues on NB1 fix #990 2019-10-30 21:01:23 -04:00
rusefi 4d095d4844 60/2 VW trigger has running issue on 19/10/19 snapshot fix #986 2019-10-30 20:51:20 -04:00
rusefi aed900b613 Merge branch 'master' of https://github.com/rusefi/rusefi 2019-10-30 09:27:43 -04:00
rusefi 7a3369795f smarter IAC PID 2019-10-30 09:27:12 -04:00
rusefi afe34d51b0 poke 2019-10-29 23:34:36 -04:00
rusefi 74e0c20235 flipping NB1 trigger definition 2019-10-29 21:19:00 -04:00
rusefi 8cf19d3d12 refactoring & verbose trigger to simulator 2019-10-29 21:12:44 -04:00
rusefi fe77766b2b bugfix around verboseTriggerSynchDetails - 64 bits on stack was causing broken messages 2019-10-29 18:20:55 -04:00
rusefi 469a2f1fd9 reducing code duplication with prod code & fixing simulator 2019-10-29 16:57:55 -04:00
rusefi 6b477e95d5 'trigger angle offset' note 2019-10-29 16:20:56 -04:00
rusefi f55c2df681 IM_TWO_COILS 2019-10-27 16:19:59 -04:00
rusefi 0a8a0d0b81 docs 2019-10-26 21:53:22 -04:00
rusefi 3e8b46b6ca preparation for industrial-PID 2019-10-23 21:41:30 -04:00
rusefi 88348ebd09 refactoring: reducing code duplication 2019-10-21 23:47:40 -04:00
rusefi 2ee280be5b poke 2019-10-21 19:52:34 -04:00
rusefi 2f3ccb8125 ADC sample time & rate #976 2019-10-19 08:01:28 -04:00
rusefi 490733ccad half-solution would not pass CI, have to merge full solution without real HW test
#975
2019-10-19 07:35:21 -04:00
rusefi 627f73502b steps towards #975 2019-10-18 19:45:32 -04:00
rusefi d9401fbdbc steps towards #975 2019-10-18 19:39:06 -04:00
rusefi 0e01355c15 steps towards #975 2019-10-18 18:54:32 -04:00
rusefi 1c140cbd80 date 2019-10-17 00:09:13 -04:00
Matthew Kennedy 10a6d6eb8b fix wwae (#980) 2019-10-17 00:06:54 -04:00
rusefi 5f9fdfe9a6 Revert "Revert "Performance improvement: call GetBaseFuel less (#979)""
This reverts commit 7eb9947fd4.
2019-10-16 23:02:24 -04:00
rusefi 7eb9947fd4 Revert "Performance improvement: call GetBaseFuel less (#979)"
This reverts commit 95e51f13
2019-10-16 22:29:19 -04:00
Matthew Kennedy 95e51f1399 Performance improvement: call GetBaseFuel less (#979)
* Remove extra calls to getInjectionDuration

* increase callback frequency
2019-10-16 22:13:10 -04:00
rusefi 344136eea9 preparing for #973 2019-10-16 22:10:38 -04:00
rusefi 54d1dd359a preparing for #979 2019-10-15 15:03:19 -04:00
Matthew Kennedy 4db3fa46cd fix #977 (#978) 2019-10-15 05:24:33 -04:00
Matthew Kennedy d6e065f99e Merge remote-tracking branch 'upstream/master' into perf-tracing 2019-10-14 23:45:39 -07:00
Matthew Kennedy fe82bc8468 hook up TS commands 2019-10-14 23:41:15 -07:00
Matthew Kennedy d76670d946 trace all the things 2019-10-14 23:34:12 -07:00
rusefi d0596388e6 preparing for #961
better code style
2019-10-15 02:06:15 -04:00
rusefi dda7f4d343 preparing for #974
code comments & refactoring
2019-10-15 01:27:19 -04:00
rusefi 6629b90a7f preparing for #974
code comments & refactoring
2019-10-14 18:32:16 -04:00
rusefi 5a4c7b38cd preparing for #974
code comments & refactoring
2019-10-14 16:04:28 -04:00
rusefi fc5232da69 poke 2019-10-14 12:58:27 -04:00
rusefi 7bb8bb7f14 preparing for #974
code comments & refactoring
2019-10-14 09:09:08 -04:00
rusefi 12137fc7cd preparing for #974
code comments & refactoring
2019-10-14 06:18:08 -04:00
Matthew Kennedy f52bdecb80 profile all the things 2019-10-13 13:14:08 -07:00
rusefi 6a1604815d Merge branch 'master' of https://github.com/rusefi/rusefi 2019-10-13 09:59:19 -04:00
rusefi 5cb90d0e1b preparation for #961
more unified access to pre-calculated value
2019-10-13 09:59:06 -04:00
Matthew Kennedy 763b17fb50 experiment 2019-10-11 17:43:21 -07:00
rusEfi dfef5748b9 pin conflict in MRE test config 2019-10-10 13:32:07 -04:00
rusefi 62577c47da preparation for #961
more unified access to pre-calculated value
2019-10-10 08:25:58 -04:00
rusefi 71e904e421 preparation for #961
more unified access to pre-calculated value
2019-10-10 08:16:21 -04:00
rusefi 9a26b2eca2 preparation for #961
macro as a syntax sugar for method invocation
2019-10-10 07:37:37 -04:00
rusefi ca6e49dcbc preparation for #961
macro as a syntax sugar for method invocation
2019-10-10 07:28:52 -04:00
rusefi 41192ba2f0 logic duplication - we arleady have isCltError
preparation for #961
2019-10-10 07:09:04 -04:00
rusefi f17fc56aa5 better handling of corner case 2019-10-10 07:07:59 -04:00
Matthew Kennedy 29804cbc8a move tsOutputChannels to header (#970) 2019-10-08 21:02:51 -04:00
Matthew Kennedy 9c2dd10734 low hanging performance fruit (#969) 2019-10-08 20:44:59 -04:00
rusefi 4574aaccce I got carried away, but DEAD CODE?! 2019-10-08 03:14:21 -04:00
rusefi 2acdbf308b something is over-complicated here? looks like two classes should become one? 2019-10-08 02:56:19 -04:00
rusefi a65c8c9295 something is over-complicated here? looks like two classes should become one? 2019-10-08 02:35:21 -04:00
rusefi fbbf8995e4 wow, dead field 2019-10-08 02:17:32 -04:00
rusefi 2b59940161 really not clear what is the best place for these classes 2019-10-08 02:13:52 -04:00
rusefi 4e26bd2fd2 refactoring 2019-10-08 02:01:41 -04:00
rusefi cd1e87ff41 docs & refactoring 2019-10-08 01:49:42 -04:00
rusefi 5bf399e280 fancier C++ initialization 2019-10-08 01:36:35 -04:00
rusefi ade7ad158a typo & better field name 2019-10-08 01:36:03 -04:00
rusefi 42dc9e3662 fancy C++ s/NULL/nullptr/ 2019-10-08 01:26:35 -04:00
rusefi 1ab488e4b4 refactoring: better field name(s) 2019-10-08 01:03:57 -04:00
rusefi ca67249522 refactoring: better field name 2019-10-08 00:54:19 -04:00
rusefi 8424723024 refactoring: better variable names 2019-10-08 00:42:47 -04:00
rusefi 0d31cdddea refactoring: better parameter name 2019-10-08 00:30:20 -04:00
rusefi 53231f7b49 refactoring: smarter C++ initialization 2019-10-08 00:27:49 -04:00
rusefi fdfd2244ce One cylinder, 4 stroke, only crank sensor needs special wasted_mode spark control #968
just a unit test for now
2019-10-07 23:12:29 -04:00
rusefi 4bd928b594 Merge branch 'master' of https://github.com/rusefi/rusefi 2019-10-07 21:29:29 -04:00
rusefi 5e48109780 docs & refactoring 2019-10-07 21:23:38 -04:00
rusefi d381bce748 date 2019-10-06 00:39:50 -04:00
Matthew Kennedy d1da567b85 fix gm 24x decoder (#963)
* fix gm

* fix

* fix default config, tests
2019-10-05 08:27:30 -04:00
rusefi d2c8e84e95 Two distributors 2019-10-04 22:36:53 -04:00
Matthew Kennedy faa2a481ea Simplify thermistor config (#962)
* simplify thermistor config

* fix test
2019-10-02 21:00:10 -04:00
rusefi 62bbdbb33b docs 2019-09-29 15:14:08 -04:00
rusefi 7f9e912ea4 pid limits / etb limits 2019-09-29 14:56:18 -04:00
rusefi df7fe0ec3b fixing build 2019-09-29 14:22:51 -04:00
rusefi 7d2aaab1aa Merge branch 'master' of https://github.com/rusefi/rusefi 2019-09-29 14:16:51 -04:00
rusEfi fc3b7ec1bd etbCalibrationOnStart 2019-09-29 14:00:04 -04:00
rusefi c935903162 do not let "Use fixed baro corr from MAP" kill VE fix #960 2019-09-29 09:58:29 -04:00
rusefi 0aec02ffb1 docs 2019-09-28 18:49:39 -04:00
rusefi 8e3912e6b1 firing order 1-2-7-8-4-5-6-3 2019-09-28 10:25:57 -04:00
rusefi d520e0734f docs 2019-09-28 09:59:40 -04:00
rusEfi 7c9a7d34b4 PID display in console was broken 2019-09-27 23:37:57 -04:00
rusEfi 44b2c2f89e new command 'etb_freq X' 2019-09-27 23:37:40 -04:00
rusEfi 17dc0908f2 it's a cruel world 2019-09-27 23:01:47 -04:00
Matthew Kennedy 4db887361c Fix sensor mock spill, again (#957)
* actually reset

* add test

* doh
2019-09-27 21:40:36 -04:00
rusEfi dfd5b11c8f Revert "Fix sensor mocking bug (#956)"
This reverts commit 217081c1
2019-09-27 20:33:45 -04:00
Matthew Kennedy 217081c174 Fix sensor mocking bug (#956)
* actually reset

* add test
2019-09-27 20:21:50 -04:00
rusefi 8c5be72106 idle&ETB progress 2019-09-26 00:02:47 -04:00
rusefi ff8a3f2988 fixing build 2019-09-25 08:46:26 -04:00
rusefi 3da60a406a Merge branch 'master' of https://github.com/rusefi/rusefi 2019-09-25 08:40:56 -04:00
rusefi bc572bef51 reducing hell in unit tests 2019-09-25 08:40:33 -04:00
Matthew Kennedy ee5643f1bf 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
rusefi 0a70bdf6f8 docs 2019-09-24 22:28:33 -04:00
Matthew Kennedy 3bd1ddcc1f Sensors: composition >> inheritance (#953)
* functional sensors

* format

* tests

* sim makefile

* eol

* format tests
2019-09-24 21:11:41 -04:00
rusefi 567bd7dd58 absolute fuel pressure flow calculation #954 2019-09-24 18:39:26 -04:00
rusefi fc8db12323 absolute fuel pressure flow calculation #954 2019-09-24 17:57:49 -04:00
rusefi e6aca92ad4 docs 2019-09-23 22:56:06 -04:00
rusefi 0e4ba4a256 Merge branch 'master' of https://github.com/rusefi/rusefi 2019-09-23 19:15:50 -04:00
rusefi fdd3e2ef56 docs 2019-09-23 19:08:15 -04:00
Matthew Kennedy b4e176a9cb fix ltoa_internal: fix #948 (#949)
* fix ltoa_internal

* fix hex
2019-09-23 08:45:45 -04:00
rusefi 8c108f8362 HardFault related to auto r = convertFromInputValue(inputValue); #948 2019-09-23 02:02:42 -04:00
rusefi 2bacf53c0d 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 712eca7b15 typo in comment 2019-09-23 01:39:04 -04:00
rusefi b66f3a8229 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 89ed15838f ETB is sticky around zero and does not want to close all the way #943 2019-09-22 23:28:11 -04:00
rusEfi 344919a60b This black magic improves hard fault debugging experience 2019-09-22 21:28:19 -04:00
rusefi 4f33dff0a1 ETB target is using integer values fix #945 2019-09-22 18:15:00 -04:00
rusefi e7b658547b 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 e99955fce5 ETB target is using integer values #945
refactoring - ADC mocking is a mess
2019-09-22 17:43:00 -04:00
rusefi 7d65f1931e ETB target is using integer values #945
refactoring - ADC mocking is a mess
2019-09-22 17:39:13 -04:00
rusefi 5a43153541 ETB target is using integer values #945
refactoring - ADC mocking is a mess
2019-09-22 17:19:08 -04:00
rusefi bce63b112a ETB target is using integer values #945
refactoring - ADC mocking is a mess
2019-09-22 16:52:22 -04:00
rusefi b3b8d8607c ETB target is using integer values #945
refactoring - ADC mocking is a mess
2019-09-22 16:41:10 -04:00
rusefi f600bbc6d7 ETB target is using integer values #945
refactoring - ADC mocking is a mess
2019-09-22 10:02:07 -04:00
rusefi d0ee86b258 we might not use Contrib at the moment 2019-09-22 09:56:47 -04:00
rusefi 533087f475 ETB target is using integer values #945
refactoring - ADC mocking is a mess
2019-09-22 09:56:06 -04:00
rusefi d09e096874 ETB target is using integer values #945
refactoring
2019-09-22 08:51:02 -04:00