Commit Graph

1075 Commits

Author SHA1 Message Date
rusefi 0d3267e3a5 GDI Epic #1448 2020-11-22 00:43:45 -05:00
rusefi daf1ec83a7 GDI Epic #1448 2020-11-22 00:09:36 -05:00
rusefillc b4e9aba0da GDI Epic #1448 2020-11-21 21:58:56 -05:00
rusefillc 5ad36e655f DC not ETB refactoring 2020-11-16 19:51:36 -05:00
rusefillc 2a3a2d7191 DC not ETB refactoring 2020-11-16 19:43:00 -05:00
rusefi d3bf7c5c30 GDI Epic #1448 2020-11-15 17:31:53 -05:00
rusefillc 07e25ccf3c https://rusefi.com/forum/viewtopic.php?p=38367#p38367
idle position/waste gate position sensor usability
2020-11-14 18:05:27 -05:00
Matthew Kennedy 02c4d630f6
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
rusefillc 6d5763bb8e field = "useTLE8888 2020-11-10 12:37:15 -05:00
rusefillc d560f01426 GDI Epic #1448 2020-11-09 22:07:52 -05:00
rusefillc 5264edac52 GDI Epic #1448 2020-11-09 21:18:52 -05:00
rusefi d09f17a5b8 docs 2020-11-06 14:35:11 -05:00
andreika-git eb2882857f
Make AFR great again! (#1929)
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-11-05 15:35:11 -05:00
rusefillc 49469527f5 poke 2020-11-05 08:04:43 -05:00
rusefi b2320c0d17 miata TCU 2020-11-04 12:44:30 -05:00
rusefillc 13e505589d Output pin init/deinit needs a linked list #1803 2020-11-03 12:18:52 -05:00
rusefillc 4ea91efaef Output pin init/deinit needs a linked list #1803 2020-11-03 11:37:09 -05:00
rusefillc c01c43aab5 GDI Epic #1448 2020-11-02 19:28:46 -05:00
Matthew Kennedy 15d5c872c2
log afr in addition to lambda (#1920)
* log afr

* log it

* weird double commas
2020-10-31 17:52:07 -04:00
Matthew Kennedy 66cc63b18a
log target lambda (#1919) 2020-10-30 17:42:00 -04:00
Matthew Kennedy 3e30865e6c
unused tach field (#1918) 2020-10-29 15:26:01 -04:00
rusefillc 0f745b74c1 fluid gauges 2020-10-28 00:16:16 -04:00
shadowm60 71109a0b9e
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
Matthew Kennedy 09b41bb1bb
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 a90792fa44
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
shadowm60 9ae6f5c85f
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
Matthew Kennedy d84cd385ce
add Injector pressure sensor (#1898)
* add sensor type

* add config

* initialize injector pressure

* add UI
2020-10-23 15:46:16 -04:00
rusefillc 8e329ff750 gettig ready for Tle8888 big update 1 #1892 2020-10-23 12:23:17 -04:00
Matthew Kennedy 4e249889a6
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
Matthew Kennedy 6605877326
gppwm debug (#1895)
* dbg gppwm

* fix channel

* TS guard
2020-10-21 22:49:38 -04:00
Matthew Kennedy 06f92807cc
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
rusefi 94a6399e56 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 4f74a5fc73 GDI Epic #1448 2020-10-11 17:47:16 -04:00
David Holdeman 29c2d692ee
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
Matthew Kennedy 83fe9dae77
ign mode overrides (#1869) 2020-10-09 17:16:49 -04:00
rusefillc 0a49ea933e https://rusefi.com/forum/viewtopic.php?f=4&t=1844 2020-10-09 02:08:52 -04:00
rusefillc ee2a013960 https://rusefi.com/forum/viewtopic.php?f=4&t=1844 2020-10-09 02:05:47 -04:00
Matthew Kennedy 1bce3aa4c0
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
rusefillc 367436454d HW CI has failed 11 times since Oct 2 #1849
Revert "ETB function config (#1831)"

This reverts commit af59c45a
2020-10-03 22:00:00 -04:00
rusefillc 246e3b6032 HW CI has failed 11 times since Oct 2 #1849 2020-10-03 19:28:21 -04:00
rusefillc 3083d729e8 new VVT trigger shape? #1847 2020-10-03 10:26:05 -04:00
rusefillc 98139e26ef https://rusefi.com/forum/viewtopic.php?p=38001#p38001 2020-10-03 10:04:04 -04:00
Matthew Kennedy af59c45adb
ETB function config (#1831)
* 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-02 20:51:02 -04:00
rusefi 1ed7d0579b making error codes available 2020-10-01 00:03:54 -04:00
Matthew Kennedy 6ac9aad358
display base fuel mass in milligrams (#1838)
* switch to mg

* use the correct thing

* gauge scaling

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-09-30 20:19:51 -04:00
Matthew Kennedy 16bfd39bac
Remove dead & useless config (#1834)
* remove dead config

* remove enum
2020-09-29 06:34:39 -04:00
David Holdeman d6bc2a70e7
transmission solenoid control (#1833)
* simple trans controller

* don't need check

* we can loop!

* use efi::size

* pin mode configuration

* set pin mode

* switch to RegisteredOutputPin

* size
2020-09-28 21:39:03 -04:00
rusefi 23e0851101 adding 1+16 trigger 2020-09-28 21:18:47 -04:00
rusefi 1adc9444a8 removing third copy of same values 2020-09-28 20:58:21 -04:00
Matthew Kennedy f1c04efefa
replace ETB index with function enum (#1807)
* 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
2020-09-28 16:33:07 -04:00
Matthew Kennedy 747e78088b
add analog inputs to switches (#1829)
* add analog in to switches

* also clarify boost cut pressure

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-09-28 14:45:23 -04:00
rusefillc d74a5100a7
Update rusefi_config.txt 2020-09-27 11:01:42 -04:00
rusefi 0510e5c36d Hellen gen_config #1823 poke 2020-09-27 10:42:01 -04:00
rusefi b418edc5a8 Hellen gen_config #1823 poke 2020-09-27 09:57:52 -04:00
rusefi 0a15b911e8 Hellen config build - poke 2020-09-27 08:50:12 -04:00
rusefi cf7c946c51 Output pin init/deinit needs a linked list #1803 2020-09-27 07:37:43 -04:00
rusefi 97982cc22f Output pin init/deinit needs a linked list #1803 2020-09-27 07:26:56 -04:00
rusefi 905a811b52 https://rusefi.com/forum/viewtopic.php?f=3&t=1523
refactoring
2020-09-22 04:57:43 -04:00
rusefi 5e265dd8ea Merge remote-tracking branch 'origin/master' into master 2020-09-20 13:42:53 -04:00
rusefi c6d0ddec40 reorder ADC channel index #1763
we forgot about something
2020-09-20 13:42:37 -04:00
David Holdeman 8ebdf6fcdc
fix type mismatch (#1808)
* fix type mismatch

* comment

* change field

* switch to efitimesec16_t

* add typedef

* add type to configdefinition

* build
2020-09-19 17:17:44 -04:00
Matthew Kennedy 3d6a6398ac
Dedicated sensors for wastegate + idle position (#1805)
* config

* add sensor

* listen to new adc channels

* fix

* add gauges to TS

* add gauge values

* TS UI
2020-09-18 10:04:07 +03:00
rusefi 630274d6bd Hellen says it has more ADC channels 2020-09-17 03:59:50 -04:00
David Holdeman d761f523a0
add shift matrix and pin config (#1798)
* add shift matrix and pin config

* try
2020-09-15 11:34:09 +03:00
Matthew Kennedy 6629a2dea4
remove (#1789) 2020-09-12 10:35:49 +03:00
David Holdeman b1a69ff923
some documentation improvements (#1787) 2020-09-11 20:20:37 -04:00
David Holdeman 337106cd24
DebounceButton A/C switch (#1782)
* change acSwitch name, add mode

* fix

* remove some adc stuff

* remove some adc stuff

* semicolon stupid

* left behind

* add readpinstate

* wrong var name

* add functions back

* fix name

* bool, not void, plus fix name

* move

* not sure what I broke

* try setMockValue

* namespace

* whoops missed one

* switch values because adc was set up for pullup

* try 5

* comment for now

* comment for now

* uncomment tests, add function to mock, add mock to efiReadPin

* fixes

* for F's sake

* if

* add defy

* pass params

* use ASSERT_TRUE/FALSE

* advance time

* remove ifdef from readPin

* try moving if

* move to separate func

* move extern

* move include

* try engine_test_helper

* am confuse

* move func to else

* include hal

* add efi prod check

* remove include

* try extern

* move include

* semicolon stupid

* move extern again

* include

* move mockPinStates

* size

* add if

* add comment

* clean on instantiation
2020-09-10 22:16:20 -04:00
Matthew Kennedy d2d0ffa1ee
remove tach output pin (#1779)
* remove from cfg

* cfg

* rip out impl

* efi gpio
2020-09-09 16:52:23 -04:00
Matthew Kennedy f6cbce48ed
minor TS changes (#1778)
* minor

* fiix
2020-09-09 16:27:13 -04:00
rusefi e2701b8258 Bench-testing for ALL assigned output pins #1758 2020-09-09 02:41:11 -04:00
rusefi a0b45b8b08 microRusEFI used as Body Control Module BCM BCU 2020-09-07 17:04:54 -04:00
rusefi 5efaf2eb5d Hellen says "drv8860" 2020-09-07 10:47:40 -04:00
Matthew Kennedy ef0b2f7be0
Selectable VE axis override (#1769)
* add config fields

* config options

* new output channels

* dump out state to ts

* s

* implement override

* enums

* this test is no longer used

* test new behavior

* old

* comments
2020-09-07 10:15:42 -04:00
Matthew Kennedy 0e14e51179
reorder ADC channel index (#1763)
* change config

* correct logic

* clearing these no longer needed

* test expected this to be set
2020-09-06 18:25:26 -04:00
rusefi ba31cef223 Bench-testing for ALL assigned output pins #1758 2020-09-06 00:27:02 -04:00
rusefi cac05ec6b8 Bench-testing for ALL assigned output pins #1758 2020-09-06 00:07:05 -04:00
rusefi 346808394d Bench-testing for ALL assigned output pins #1758 2020-09-05 23:49:21 -04:00
rusefi ab209cca64 migrate amazing idle from FSIO to less opaque TS #1581 2020-09-05 23:36:03 -04:00
rusefi bc115e70a0 OBD CAN sensors #1733 2020-09-03 23:27:53 -04:00
David Holdeman 499a430347
[TCU] GearController and TransmissionController base classes (#1749)
* add tcu ts outputs

* accidental change?

* add tcu base classes

* rearrange

* accidental change?

* add files

* missing backslash

* undo accidental change

* buttonshift includes, targets, and init

* Revert "buttonshift includes, targets, and init"

This reverts commit 1b0630511e1948f3d330d74be5bff6c087f118fb.

* use unused bit

* add return documentation

Co-authored-by: rusefillc <48498823+rusefillc@users.noreply.github.com>
2020-09-02 15:39:50 -04:00
rusefi b4ae24542b borrowing a few lines from https://github.com/chuckwagoncomputing/rusefi/tree/tcu-base-classes 2020-09-02 15:32:03 -04:00
Matthew Kennedy 484f1ba5a0
Multiple knock sensors (#1745)
* fw

* cfg fields

* fix order

* ui for channel select

* clarify

* comments

* config
2020-09-02 07:19:02 -04:00
rusefi 54dc101a79 [TCU] manual shift buttons #1597 2020-08-30 15:38:40 -04:00
rusefi 88bedcb978 Tokenisation of multipler expressions #1735 2020-08-30 15:31:22 -04:00
rusefi 601fd541f9 Tokenisation of multipler expressions #1735 2020-08-30 15:09:34 -04:00
rusefi 6f69bd1609 OBD CAN sensors #1733 2020-08-30 09:16:37 -04:00
rusefi 4dbc5aee94 VAG 2020-08-29 18:57:17 -04:00
rusefi 1bc34ad976 VVT support for VAG trigger #883 2020-08-29 17:58:43 -04:00
rusefi f3e7a1271b VVT support for VAG trigger #883 2020-08-29 17:46:01 -04:00
rusefi 914eb01242 verboseVVTDecoding 2020-08-29 16:59:55 -04:00
rusefi 1f58e4f502 steps towards presets 2020-08-29 16:44:57 -04:00
rusefi 22ed529cb8 reducing autotest mess 2020-08-29 15:34:42 -04:00
rusefi 628c640f61 reducing autotest mess 2020-08-29 15:05:54 -04:00
rusefi a51f9ad905 DODGE_NEON_2003_CRANK 2020-08-29 15:01:24 -04:00
Matthew Kennedy 1a55085bb6
Software knock detection (#1730)
* s

* science

* set pin mode

* turn stuff off so it fits

* filtering maybe

* filtering actually works

* generate filter parameters internally

* shorter window

* guard behind enable flag

* use checked in filter

* add biquad reset

* tracing

* const

* exec order

* do it from a thread

* smaller buffer, comment

* configure with header

* only for proteus

* oops

* unused

* not needed

* guards

* pin config

* don't need that include

* precook filter steady state

* define sample rate

* config enable switch
2020-08-28 21:13:50 -04:00
rusefi 77027ec981 VVT support for VAG trigger #883 2020-08-27 00:43:23 -04:00
rusefi 639e5be4d9 another attempt at dead code 2020-08-25 15:58:56 -04:00
Matthew Kennedy d1bdb8a577
remove old alphan option (#1722) 2020-08-23 20:36:22 -04:00
Matthew Kennedy a201d7b566
fix (#1714) 2020-08-21 21:52:19 -04:00
Matthew Kennedy c53979a017
Configurable stoichiometric ratio (#1710)
* configurable stoich ratio

* afr table always in gas afr

* default

* typo

* use defined ratio

* do it in config too

* missed a spot

* oops wrong one

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-08-21 19:43:30 -04:00