Commit Graph

8266 Commits

Author SHA1 Message Date
rusefillc e6e211ffcf Merge remote-tracking branch 'origin/master' into master 2020-11-03 07:59:20 -05:00
rusefi 4dc5c61f60 Output pin init/deinit needs a linked list #1803
trying to make things more consistent & smarter
2020-11-03 00:46:03 -05:00
rusefi c464dfdca6 Output pin init/deinit needs a linked list #1803 2020-11-03 00:21:39 -05:00
rusefi 66b61f76a7 Output pin init/deinit needs a linked list #1803 2020-11-03 00:09:42 -05:00
rusefi 9aa8273cbb Merge remote-tracking branch 'origin/master' 2020-11-02 23:53:38 -05:00
rusefi 82768bed1e typo 2020-11-02 23:52:26 -05:00
GitHub build-firmware Action dd2d1c01d5 Auto-generated configs and docs 2020-11-03 04:48:42 +00:00
rusefi 8dcb2fe55f this stuff is just too dead 2020-11-02 23:46:41 -05:00
rusefillc 05c5b82431 Merge remote-tracking branch 'origin/master' into master 2020-11-02 20:09:37 -05:00
GitHub set-date Action 6903b348ec Update date 2020-11-03 00:34:56 +00:00
rusefillc 238cc8d3f9 GDI Epic #1448 2020-11-02 19:28:46 -05:00
GitHub build-firmware Action f230f0abe8 Auto-generated configs and docs 2020-11-02 03:27:26 +00:00
Andrey G e14fa4b189 Tle8888 small update (#1908)
* TLE8888: add support MR switching from SW

Main Relay has limitation - it is always active while KEY=1. When
KEY=0 MR can be switched on from SW.

* TLE8888: support reading of KEY and WAKE inputs

* Rusefi enums: add new TLE8888 pins
2020-11-01 22:19:55 -05:00
GitHub set-date Action 26336f3f5c Update date 2020-11-02 00:34:36 +00:00
rusefi a00229c843 Merge branch 'master' of https://github.com/rusefi/rusefi 2020-11-01 00:33:42 -04:00
rusefi d2d8b78073 B6 GDI 2020-11-01 00:33:18 -04:00
GitHub set-date Action cc9fde8095 Update date 2020-11-01 00:36:45 +00:00
rusefi 1d6c6eb804 wall wetting default 2020-10-31 19:28:27 -04:00
GitHub build-firmware Action 5186c4813c Auto-generated configs and docs 2020-10-31 21:54:50 +00:00
Matthew Kennedy a29f73f467 log afr in addition to lambda (#1920)
* log afr

* log it

* weird double commas
2020-10-31 17:52:07 -04:00
GitHub set-date Action 9b58ac9fd8 Update date 2020-10-31 00:32:15 +00:00
GitHub build-firmware Action 057bdb540a Auto-generated configs and docs 2020-10-30 21:44:34 +00:00
Matthew Kennedy c0ed7cab62 log target lambda (#1919) 2020-10-30 17:42:00 -04:00
GitHub set-date Action c53a9824f6 Update date 2020-10-30 00:34:32 +00:00
GitHub build-firmware Action 36850f76b9 Auto-generated configs and docs 2020-10-29 19:28:08 +00:00
Matthew Kennedy bcabb51222 unused tach field (#1918) 2020-10-29 15:26:01 -04:00
rusefi f16556bdc5 b6 2020-10-29 01:15:55 -04:00
GitHub set-date Action 8a0ea8c8fd Update date 2020-10-29 00:58:40 +00:00
rusefi b76cfa8ef1 b6 2020-10-28 18:53:30 -04:00
Matthew Kennedy 3aed0a083c create changelog (#1917)
* add changelog

* clarify

* add october release

* mention tle

* add how-to
2020-10-28 17:16:06 -04:00
rusefillc 781cc3d326 [EPIC] [Feature Request] Transmission Control #1454 2020-10-28 01:23:05 -04:00
rusefillc 2f8f0bdd3c Merge remote-tracking branch 'origin/master' into master 2020-10-28 01:15:53 -04:00
GitHub build-firmware Action 046f4247df Auto-generated configs and docs 2020-10-28 05:06:20 +00:00
rusefillc 91afd62a53 GDI 2020-10-28 01:01:54 -04:00
rusefillc eb06ce55cd TCU 2020-10-28 01:01:30 -04:00
GitHub build-firmware Action 2d12a998a0 Auto-generated configs and docs 2020-10-28 04:22:27 +00:00
rusefillc 31256f6559 fluid gauges 2020-10-28 00:20:35 -04:00
GitHub build-firmware Action 28ba6a9025 Auto-generated configs and docs 2020-10-28 04:18:04 +00:00
rusefillc 3677f63737 fluid gauges 2020-10-28 00:16:16 -04:00
rusefillc 81f425b3d0 Merge remote-tracking branch 'origin/master' into master 2020-10-28 00:14:34 -04:00
rusefillc cc4ce62113 docs 2020-10-28 00:07:34 -04:00
GitHub set-date Action 94f49adf34 Update date 2020-10-28 00:57:34 +00:00
GitHub build-firmware Action 5019042e10 Auto-generated configs and docs 2020-10-27 12:24:46 +00:00
shadowm60 3e8c184eba 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
GitHub set-date Action bec70e3cd4 Update date 2020-10-27 00:56:50 +00:00
GitHub build-firmware Action c202e8b15c Auto-generated configs and docs 2020-10-26 22:17:20 +00:00
Matthew Kennedy b8c2041467 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 61865292ff probably fix ci (#1912) 2020-10-26 14:04:22 -04:00
GitHub build-firmware Action e862d2c1fe Auto-generated configs and docs 2020-10-26 11:25:24 +00:00
Matthew Kennedy 6abc80e74c 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
GitHub build-firmware Action 959e6e9a62 Auto-generated configs and docs 2020-10-26 02:28:28 +00:00
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
GitHub set-date Action b5605c9fba Update date 2020-10-26 00:57:31 +00:00
GitHub build-firmware Action 7ff2189e60 Auto-generated configs and docs 2020-10-25 23:27:30 +00:00
Matthew Kennedy 74f59ff67e fix MRE digital input mapping (#1910) 2020-10-25 19:26:04 -04:00
Matthew Kennedy 4c3046a707 remove spiMtx (#1907) 2020-10-25 17:26:46 -04:00
Matthew Kennedy 5189e0b1d9 fix double deadtime (#1904)
* move global correction factor to fuel mass

* tests

* the fix
2020-10-25 00:12:05 -04:00
GitHub set-date Action 5b627e0e77 Update date 2020-10-25 00:58:09 +00:00
GitHub set-date Action af13c26680 Update date 2020-10-24 00:55:30 +00:00
Matthew Kennedy 5296de1493 use fuel model (#1901)
* use fuel model

* spit'n'polish
2020-10-23 20:25:47 -04:00
GitHub build-firmware Action f504ba90b8 Auto-generated configs and docs 2020-10-23 19:48:01 +00: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 5fc47d0153 oops (#1899) 2020-10-23 15:45:44 -04:00
GitHub build-firmware Action a873f9f72b Auto-generated configs and docs 2020-10-23 16:27:21 +00:00
Andrey G 88e830d635 Tle8888 big update 1 (#1892)
* smart gpio: fix tle8888 direct pin mapping for MRE

* MRE: use TLE8888 pins instead of MCU gpios that drives TLE8888

* TLE8888: cleanup

* TLE8888: do not reset driver private data on WD/undervoltage reset

* TLE8888: diagnostic updates

* TLE8888 driver: BIG driver rework

* TLE8888: check SPI answers for abnormal states

Reply with other than requested register can be a sign of:
-Power-On-Reset, then OpStat0 will be replyed
-WatchDog reset, then FWDStat1 will be replyed
-Invalid communication frame, then Diag0 will be replyed

Keep tracking last accessed register and check with the next reply.

* TLE8888: debug clean-up

* TLE8888: implement spi array write

This reduce CS inactive state time between two consequent accesses
from 8.8 uS to 1.4 uS

* TLE8888: fix PP outputs in OD mode

* TLE8888: cleanup register definitions

* TLE8888: run separate driver thread for each chip instance

Calculating poll interval for few chips become more complex, avoid
this running thread for each device.

* TLE8888: fix cypress and kinetic compilation

Both platforms define its own MAX and cause redifination error if
common.h is included in driver.

* MRE: update mapping.yaml and fix direct pin mapping for TLE8888

* TLE8888: diagnnostic: disable switch off in case of overcurrent

For all output, use current limiting instead

* TLE8888: check for overvoltage on OUT8..OUT13

* TLE8888: add TODO note about how to recover from failure condition

Currently TLE8888 automaticly recovers only from overcurrent and
(may be) overtemperature conditions.
Short to bat cause output disable (bit in OECONFIG is reset) and
needs driver/host intervention.

* TLE8888: save few bytes of RAM

* TLE8888: Lada Kalina is test mule for IDLE stepper on TLE8888

Don't forget to enable PP mode for TLE8888 outputs 21..24:
uncomment line 1087 in tle8888.c

* TLE8888: reorder code, cleanup

* TLE8888: mode all debug/statisctic to per-chip struct

* TLE8888: rework poll interval calculation

* MRE: use TLE8888 pins instead of MCU gpios that drives TLE8888 #2
2020-10-23 12:25:30 -04:00
GitHub build-firmware Action 7342b18291 Auto-generated configs and docs 2020-10-23 16:25:10 +00:00
rusefillc 804cf7f436 gettig ready for Tle8888 big update 1 #1892 2020-10-23 12:23:17 -04:00
GitHub build-firmware Action 36cf2d5e4c Auto-generated configs and docs 2020-10-23 11:33:40 +00: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
rusefi 25189a70a8 B6 2020-10-23 00:39:22 -04:00
GitHub build-firmware Action 451d893a34 Auto-generated configs and docs 2020-10-23 03:26:03 +00:00
rusefillc 9ad38bd6a9 GDI Epic #1448 2020-10-22 23:24:15 -04:00
GitHub build-firmware Action eee55b77ec Auto-generated configs and docs 2020-10-23 03:19:42 +00:00
rusefillc fd30576dca GDI Epic #1448 2020-10-22 23:17:29 -04:00
GitHub set-date Action fd0d145a5b Update date 2020-10-23 00:55:50 +00:00
Matthew Kennedy e4c891f328 no sd enable (#1894)
* no sd enable

* add assert

* Revert "no sd enable"

This reverts commit fd997381ee884c890fe7664e56ed2b0f0caef2ff.
2020-10-22 20:51:28 -04:00
Andrey G 4c074fb9c8 common.h: define MIN and MAX macro only if nod defined yet (#1896)
This fix compilation error for Kinetis and Cypress if common.h
is included after platform includes which also defines MIN MAX.
2020-10-22 08:41:44 -04:00
rusefillc 2a8a0f6af1 GDI Epic #1448 2020-10-22 01:48:28 -04:00
rusefi 8c4dd19edd Merge remote-tracking branch 'origin/master' 2020-10-22 01:12:14 -04:00
rusefi 4af1bad726 progress 2020-10-22 00:57:11 -04:00
GitHub build-firmware Action 9ebd97289c Auto-generated configs and docs 2020-10-22 02:51:46 +00:00
Matthew Kennedy 38b6e9ba2b gppwm debug (#1895)
* dbg gppwm

* fix channel

* TS guard
2020-10-21 22:49:38 -04:00
GitHub build-firmware Action a9cad5c3f0 Auto-generated configs and docs 2020-10-22 02:37:10 +00:00
rusefi c43f7869d9 reducing the mess around FSIO bench commands 2020-10-21 22:35:08 -04:00
rusefi 73d53db758 code style 2020-10-21 22:13:18 -04:00
GitHub set-date Action ad515b0f14 Update date 2020-10-22 00:55:13 +00:00
Matthew Kennedy 8f6982dd54 disable i2c, other unused features (#1891)
* dead

* more
2020-10-20 22:24:32 -04:00
GitHub set-date Action c72bfdabe7 Update date 2020-10-21 00:54:27 +00:00
rusefi 79d267eba0 VAG radiator control 2020-10-19 23:25:23 -04:00
rusefi 69e48e1e44 code style 2020-10-19 22:47:09 -04:00
rusefi 4343f96fd4 refactoring 2020-10-19 22:44:44 -04:00
rusefi ca89cf9b95 GDI Epic #1448 2020-10-19 22:04:06 -04:00
GitHub set-date Action c25bf07abf Update date 2020-10-20 00:54:38 +00:00
GitHub build-firmware Action 782ffdaf6e Auto-generated configs and docs 2020-10-19 12:06:22 +00: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
Matthew Kennedy 5337d9f723 Etb wastegate hookup (#1888)
* remove

* cleanup

* implement ETB parts

* hook up to boost controller

* tests
2020-10-18 21:57:04 -04:00
GitHub set-date Action e4cab65723 Update date 2020-10-19 00:54:39 +00:00
Matthew Kennedy 8c11a6fb4b remove (#1887) 2020-10-18 20:49:42 -04:00
Matthew Kennedy 2c23085715 Etb function cfg: actually read config (#1884)
* 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-18 17:26:38 -04:00
GitHub set-date Action 79f02f09ce Update date 2020-10-18 00:55:31 +00:00
rusefi 1be1f66edf GDI Epic #1448 2020-10-17 20:17:53 -04:00
rusefillc c354d1deb2 dead legacy code - current implementation is definitely more correct 2020-10-17 18:46:07 -04:00
rusefillc 3314394dd9 refactoring: better method name 2020-10-17 18:45:08 -04:00
rusefillc aec48c294e GDI Epic #1448 2020-10-17 14:53:56 -04:00
Matthew Kennedy c73978310f Remove trigger listener list (#1886)
* avoid 64b on hot path

* no tooth log when fast

* use crit section locker

* final

* only flip pins if not also self stim

* only trace if doing work

* slightly drop lateDelay

* trace if not bailing out

* remove listener array
2020-10-17 08:00:11 -04:00
GitHub set-date Action 32e7391ffb Update date 2020-10-17 00:52:43 +00:00
rusefillc 54c3d0f15c HW CI has failed 11 times since Oct 2 #1849 2020-10-16 13:54:12 -04:00
rusefillc ac677ffd55 Merge remote-tracking branch 'origin/master' into master 2020-10-16 13:21:25 -04:00
Matthew Kennedy f6f3e514d2 trigger/scheduler perf improvements (#1885)
* avoid 64b on hot path

* no tooth log when fast

* use crit section locker

* final

* only flip pins if not also self stim

* only trace if doing work

* slightly drop lateDelay

* trace if not bailing out
2020-10-16 11:04:27 -04:00
Matthew Kennedy 87d34ffcee more safe parts probably (#1883) 2020-10-15 22:04:42 -04:00
GitHub set-date Action e82306deaa Update date 2020-10-16 00:53:08 +00:00
rusefillc 3ceb6fe2a5 Merge remote-tracking branch 'origin/master' into master 2020-10-15 16:16:51 -04:00
Matthew Kennedy 02c47eeec8 write SD header using new Writer class (#1882)
* write header

* hooray, free memory!

* fix test

* is there really this much free space...?

* no, there is not
2020-10-15 16:00:13 -04:00
GitHub build-firmware Action 2332ab26a0 Auto-generated configs and docs 2020-10-15 12:59:24 +00:00
Matthew Kennedy 94bd5921c5 simplify getTimeNowNt() (#1876)
* remove old impl

* add cpp wrapper to os_access

* clean up os_access

* remove touchTimeCounter

* new impl

* put comment about lock free impl

* include cpp wrappers for BL

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-10-15 08:57:13 -04:00
rusefillc a3614019f6 Merge remote-tracking branch 'origin/master' into master 2020-10-14 23:32:00 -04:00
GitHub build-firmware Action 7b4c02eb6c Auto-generated configs and docs 2020-10-15 02:42:20 +00:00
Matthew Kennedy eac2b179c7 fix temp sensor & validate it (#1879)
* fix temp sensor & validate

* smaller here should work
2020-10-14 22:39:16 -04:00
Matthew Kennedy abfa17216b etb function config 1 (#1881)
* this should all be safe...

* test fix
2020-10-14 22:02:09 -04:00
GitHub set-date Action ed3a341c89 Update date 2020-10-15 00:52:07 +00:00
rusefillc 08a867668c Merge remote-tracking branch 'origin/master' into master 2020-10-14 20:09:50 -04:00
Matthew Kennedy 4868068e2f start using BufferedWriter (#1878)
* do the part up to actual usage

* borrow some memory for now
2020-10-14 20:06:05 -04:00
Matthew Kennedy 554304dac3 switch to single precision constants (#1880)
* adjust builds

* fix test
2020-10-14 20:04:35 -04:00
GitHub set-date Action 9df7b80835 Update date 2020-10-14 00:51:46 +00:00
rusefillc a37880eb97 GDI Epic #1448 2020-10-13 00:35:04 -04:00
GitHub set-date Action 97663a0594 Update date 2020-10-13 00:51:50 +00:00
Matthew Kennedy c5291888d0 buffered writer - progress on #1463 (#1875)
* add buffered writer

* rename
2020-10-12 15:10:34 -04:00
rusefillc 1dcfa743b9 docs 2020-10-12 09:18:36 -04:00
rusefi 9de3031378 GDI Epic #1448 2020-10-11 23:39:40 -04:00
rusefi 996806d710 QC control mode to crash if RPM = 0 and to mark successful 3 minute test with self-stimulation RPM increase #1871 2020-10-11 22:57:31 -04:00
rusefi 1c84b0dd9f QC control mode to crash if RPM = 0 and to mark successful 3 minute test with self-stimulation RPM increase fix #1871 2020-10-11 22:46:08 -04:00
GitHub set-date Action 3df68f838c Update date 2020-10-12 00:51:55 +00:00
Matthew Kennedy 3985b7a6c9 Fix #1873 - compute dynamic PWM iterationLimit (#1874)
* fix

* remove define

* add an assert

* typo

* don't do a 64bit divide

* oh that's a float
2020-10-11 20:25:38 -04:00
rusefi b4208f585c 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:16:41 -04:00
GitHub build-firmware Action 08d03374d4 Auto-generated configs and docs 2020-10-11 23:07:39 +00:00
rusefi 4743718663 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 6fe1f18067 Trigger sync lost every 2^32 CPU cycles #1873
only a random code comment
2020-10-11 18:17:30 -04:00
GitHub build-firmware Action b537290fdb Auto-generated configs and docs 2020-10-11 21:49:05 +00:00
rusefi df378f8f45 GDI Epic #1448 2020-10-11 17:47:16 -04:00
GitHub set-date Action a5babfa28a Update date 2020-10-11 00:52:48 +00:00
rusefi dd9b8ee62b poke 2020-10-10 00:07:15 -04:00
GitHub build-firmware Action cb71a9ba23 Auto-generated configs and docs 2020-10-10 03:36:50 +00: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
GitHub set-date Action c646fe2be7 Update date 2020-10-10 00:50:10 +00:00
GitHub build-firmware Action c6d12d8459 Auto-generated configs and docs 2020-10-09 21:19:04 +00:00
Matthew Kennedy 51d407aaf0 ign mode overrides (#1869) 2020-10-09 17:16:49 -04:00
GitHub build-firmware Action f01583be7a Auto-generated configs and docs 2020-10-09 06:11:02 +00:00
rusefillc 6395e22ce6 https://rusefi.com/forum/viewtopic.php?f=4&t=1844 2020-10-09 02:08:52 -04:00
GitHub build-firmware Action e3cfc760d0 Auto-generated configs and docs 2020-10-09 06:07:46 +00:00
rusefillc 8e69003080 https://rusefi.com/forum/viewtopic.php?f=4&t=1844 2020-10-09 02:05:47 -04:00