Commit Graph

753 Commits

Author SHA1 Message Date
shadowm60 8b92537e2a 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 c38eb6d38f add Injector pressure sensor (#1898)
* add sensor type

* add config

* initialize injector pressure

* add UI
2020-10-23 15:46:16 -04:00
Matthew Kennedy dbdeca93b0 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
rusefillc 9ad38bd6a9 GDI Epic #1448 2020-10-22 23:24:15 -04:00
rusefillc fd30576dca GDI Epic #1448 2020-10-22 23:17:29 -04:00
Matthew Kennedy 38b6e9ba2b gppwm debug (#1895)
* dbg gppwm

* fix channel

* TS guard
2020-10-21 22:49:38 -04:00
rusefi c43f7869d9 reducing the mess around FSIO bench commands 2020-10-21 22:35:08 -04:00
Matthew Kennedy 4d1c331eca 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 df378f8f45 GDI Epic #1448 2020-10-11 17:47:16 -04:00
David Holdeman a6a0e8ba77 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 51d407aaf0 ign mode overrides (#1869) 2020-10-09 17:16:49 -04:00
rusefillc 6395e22ce6 https://rusefi.com/forum/viewtopic.php?f=4&t=1844 2020-10-09 02:08:52 -04:00
Matthew Kennedy cca175c6ea 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 aee984d0c2 HW CI has failed 11 times since Oct 2 #1849
Revert "ETB function config (#1831)"

This reverts commit fd7dae8a
2020-10-03 22:00:00 -04:00
Matthew Kennedy fd7dae8ab8 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
rusefillc 563f7d9091 https://rusefi.com/forum/viewtopic.php?p=37989#p37989 2020-10-02 14:33:19 -04:00
Matthew Kennedy 3e64861c14 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 3374db1658 Remove dead & useless config (#1834)
* remove dead config

* remove enum
2020-09-29 06:34:39 -04:00
David Holdeman a564ca0526 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 f2f1ef81d5 removing third copy of same values 2020-09-28 21:05:20 -04:00
Matthew Kennedy b79c0fefe5 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
rusefi aea8441e6a Output pin init/deinit needs a linked list #1803 2020-09-27 07:26:56 -04:00
shadowm60 2d665e2c90 Launch control - experimental (#1816)
* 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.

* enable launch control

make use of already existent code + integration

* Delete compile_frankenso_all.sh

remove it since it is not part of the project

* Update main_trigger_callback.cpp

broke unit_Tests

Co-authored-by: rusefi <rusefi@users.noreply.github.com>
2020-09-22 16:25:27 -04:00
rusefi 84afd503a5 https://rusefi.com/forum/viewtopic.php?f=3&t=1523
disabling second channel for one more trigger
2020-09-22 05:25:11 -04:00
Matthew Kennedy d23a48fc53 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
David Holdeman 159e3142ce add shift matrix and pin config (#1798)
* add shift matrix and pin config

* try
2020-09-15 11:34:09 +03:00
David Holdeman e8e2cf2cfd 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 c2eb7c9f4a remove tach output pin (#1779)
* remove from cfg

* cfg

* rip out impl

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

* fiix
2020-09-09 16:27:13 -04:00
Matthew Kennedy eb2bc3201c Selectable AFR axis override (#1771)
* 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

* impl

* unhide option

* fix

* tests
2020-09-08 17:15:18 -04:00
rusefi 1f84f07c71 microRusEFI used as Body Control Module BCM BCU 2020-09-07 17:38:51 -04:00
rusefi 3e6ddb72d6 microRusEFI used as Body Control Module BCM BCU 2020-09-07 17:04:54 -04:00
rusefi e3929978bc Hellen says cyclic buffer 2020-09-07 11:35:02 -04:00
Matthew Kennedy 8adfef930f 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
rusefi fd9b39d887 Bench-testing for ALL assigned output pins #1758 2020-09-06 00:27:02 -04:00
rusefi f06058f62d Bench-testing for ALL assigned output pins #1758 2020-09-05 23:49:21 -04:00
rusefi ea1fbe14b3 OBD CAN sensors #1733 2020-09-03 23:27:53 -04:00
David Holdeman 51258d2cbc [TCU] TS interface and output channels (#1747)
* add tcu ts outputs

* accidental change?

* rearrange
2020-09-02 13:30:54 -04:00
Matthew Kennedy 96a9c7f4c4 Multiple knock sensors (#1745)
* fw

* cfg fields

* fix order

* ui for channel select

* clarify

* comments

* config
2020-09-02 07:19:02 -04:00
Matthew Kennedy 95f858265b detect which cylinder knocked (#1732)
* 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

* multi cylinder knock

* TS

* only sense when running
2020-08-31 21:05:33 -04:00
rusefi 3ee53ddad6 spelling 2020-08-31 17:08:04 -04:00
rusefi 586264e58b https://github.com/rusefi/web_backend/issues/97 2020-08-30 14:58:05 -04:00
rusefi 72060dd68f VVT support for VAG trigger #883 2020-08-29 18:13:00 -04:00
rusefi 4322f78591 verboseVVTDecoding 2020-08-29 17:05:54 -04:00
rusefi eb0e2afbb7 presets 2020-08-29 16:49:56 -04:00
Matthew Kennedy 1b07647e72 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
Matthew Kennedy f20126ba7a more data (#1727)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-08-24 01:26:33 -04:00
Matthew Kennedy cc25333fae Auto cal dual etb (#1725)
* implement

* add bench mode

* add ts cal mode

* TS impl

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-08-23 23:41:35 -04:00
Matthew Kennedy fe9e7a07d4 fix (#1724)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-08-23 23:18:25 -04:00
rusefi 2e9da1387d v12 2020-08-23 15:09:23 -04:00
rusefi 61f9cc6a4a more natural order 2020-08-22 00:03:19 -04:00
Matthew Kennedy ad42a17207 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
Matthew Kennedy 207aafe262 harmonize blocking factor (#1709)
* harmonize blocking factor

* static assert
2020-08-21 14:12:28 -04:00
Matthew Kennedy c03e0eb302 add (#1711) 2020-08-21 08:53:23 -04:00
Matthew Kennedy 222a20d2d3 fix crc command (#1705)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-08-20 07:43:56 -04:00
Matthew Kennedy eb7888fba3 improve (#1702) 2020-08-18 22:37:08 -04:00
Matthew Kennedy 114ffa6cf2 Fuel ts reorder (#1699)
* reorder

* redo injector stuff

* reorder & deadtime limits

* make 2d table bounds reasonable

* more

* only allow bench if not running

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-08-18 13:51:20 -04:00
rusefi 05b67c1992 tuneCrc16Gauge 2020-08-14 12:46:02 -04:00
rusefi 245e559d8c tuneCrc16Gauge 2020-08-14 12:06:05 -04:00
rusefi 0d0aa3dc4d tuneCrc16Gauge 2020-08-14 09:27:18 -04:00
Matthew Kennedy 57e9a9ed5f break-up-connection 2020-08-08 00:02:53 -07:00
rusefi 65b11ac375 TS SD integration #1653 2020-08-07 21:28:50 -04:00
rusefi 491d4c6abf TS SD integration #1653 2020-08-07 20:16:55 -04:00
rusefi fd680403f0 Console commands are broken fix #1671 2020-08-05 19:57:28 -04:00
kon e84f3b13bd Merge branch 'master' of https://github.com/rusefi/rusefi into second_can 2020-08-04 13:22:07 -07:00
Matthew Kennedy 95c17a60d4 Merge remote-tracking branch 'upstream/master' into remove-table 2020-08-03 12:02:24 -07:00
kon b093813594 Merge branch 'master' of https://github.com/rusefi/rusefi into second_can 2020-08-02 19:48:36 -07:00
Matthew Kennedy 1f1243ba95 real names & sensible limits 2020-08-02 15:33:08 -07:00
kon da262d9076 added secondary can config 2020-08-01 20:58:14 -07:00
rusefillc cd9844132d Merge pull request #1632 from mck1117/remove-plain-maf
goodbye, plain maf
2020-08-01 09:16:38 -04:00
Matthew Kennedy 88afe5c993 remove tables from TS 2020-07-31 23:29:02 -07:00
rusefi f29046dd10 TS SD integration #1653 2020-07-31 23:53:56 -04:00
Matthew Kennedy 7009c82993 Merge remote-tracking branch 'upstream/master' into remove-plain-maf 2020-07-31 14:56:29 -07:00
Matthew Kennedy 61519e24b1 log second tps 2020-07-30 11:31:49 -07:00
rusefi 278cda992c NA6 progress 2020-07-29 14:53:36 -04:00
Matthew Kennedy dbad10a253 remove 2020-07-29 01:35:17 -07:00
Matthew Kennedy ea487327e1 Merge remote-tracking branch 'upstream/master' into remove-plain-maf 2020-07-28 20:25:16 -07:00
rusefi 127c1021c9 aux temperature gauges for TS 2020-07-27 22:50:48 -04:00
rusefi 7eac0b0bf4 Weird VAG: DC motor idle valve not ETB #1637 2020-07-26 14:50:17 -04:00
rusefi 7779d6bacf Weird VAG: DC motor idle valve not ETB #1637
TS project logic
2020-07-26 14:11:48 -04:00
rusefi 27285c621d refactoring 2020-07-26 14:03:31 -04:00
rusefi cc66979dda Weird VAG: DC motor idle valve not ETB fix #1637 2020-07-26 11:04:32 -04:00
rusefi caf49f3ce3 code style 2020-07-24 11:41:45 -04:00
Matthew Kennedy b1de1b5c1e table Y axes 2020-07-23 02:54:24 -07:00
Matthew Kennedy b1747ea48b goodbye plain maf 2020-07-23 02:46:45 -07:00
rusefillc a1d4560394 Merge pull request #1626 from mck1117/ign-load
Use ignition load for ignition
2020-07-22 15:39:34 -04:00
Matthew Kennedy 63afe4ed57 always show that option 2020-07-21 14:07:58 -07:00
rusefi 0f922d809c idle logs usability 2020-07-21 12:35:25 -04:00
Matthew Kennedy ca29e0d342 now unused table 2020-07-21 00:07:49 -07:00
Matthew Kennedy d9e90b7932 ign/fuel load 2020-07-20 23:21:04 -07:00
Matthew Kennedy ef3791b163 update ts 2020-07-20 23:13:50 -07:00
rusefi 09af9cd856 EFI_IDLE_INCREMENTAL_PID_CIC should be a runtime parameter #806 2020-07-12 17:34:19 -04:00
rusefi 1b813fcc19 sleepingAwake sorry 2020-07-11 14:34:51 -04:00
rusefi fa71f1f034 https://rusefi.com/forum/viewtopic.php?p=37401#p37401 2020-07-10 14:02:50 -04:00
rusefi 99acf6b443 migrate amazing idle from FSIO to less opaque TS #1581 2020-07-08 21:54:56 -04:00
rusefi 1548be81fb making smart idle more useable 2020-07-07 22:19:22 -04:00
rusefi 7561748609 INI Request: rusEFI 2020.07.06.mre_f4.2108843221 #54 2020-07-07 22:05:05 -04:00
rusefi 172d68d238 INI Request: rusEFI 2020.07.06.mre_f4.2108843221 #54 2020-07-07 21:59:23 -04:00
rusefi 1b33c8f417 INI Request: rusEFI 2020.07.06.mre_f4.2108843221 #54 2020-07-07 21:54:43 -04:00
rusefi 524779dc97 INI Request: rusEFI 2020.07.06.mre_f4.2108843221 #54 2020-07-07 21:48:05 -04:00