Commit Graph

8581 Commits

Author SHA1 Message Date
GitHub set-date Action 4a81da605e Update date 2020-11-03 00:34:56 +00:00
rusefillc c01c43aab5 GDI Epic #1448 2020-11-02 19:28:46 -05:00
GitHub build-firmware Action a0b7cbe21b Auto-generated configs and docs 2020-11-02 03:27:26 +00:00
Andrey G 63c25ab8a7
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 10977825f4 Update date 2020-11-02 00:34:36 +00:00
rusefi 5f0673e4d4 Merge branch 'master' of https://github.com/rusefi/rusefi 2020-11-01 00:33:42 -04:00
rusefi 93d37634a8 B6 GDI 2020-11-01 00:33:18 -04:00
GitHub set-date Action 1976017785 Update date 2020-11-01 00:36:45 +00:00
rusefi 2b7e33404f wall wetting default 2020-10-31 19:28:27 -04:00
GitHub build-firmware Action 307c3fece1 Auto-generated configs and docs 2020-10-31 21:54:50 +00: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
GitHub set-date Action dd8d10366f Update date 2020-10-31 00:32:15 +00:00
GitHub build-firmware Action 1cb2cd6094 Auto-generated configs and docs 2020-10-30 21:44:34 +00:00
Matthew Kennedy 66cc63b18a
log target lambda (#1919) 2020-10-30 17:42:00 -04:00
GitHub set-date Action c29fb5169b Update date 2020-10-30 00:34:32 +00:00
GitHub build-firmware Action 5d410e94f9 Auto-generated configs and docs 2020-10-29 19:28:08 +00:00
Matthew Kennedy 3e30865e6c
unused tach field (#1918) 2020-10-29 15:26:01 -04:00
rusefi f527972670 b6 2020-10-29 01:15:55 -04:00
GitHub set-date Action e8faed0614 Update date 2020-10-29 00:58:40 +00:00
rusefi ee3879d4e1 b6 2020-10-28 18:53:30 -04:00
Matthew Kennedy f78f52cd2f
create changelog (#1917)
* add changelog

* clarify

* add october release

* mention tle

* add how-to
2020-10-28 17:16:06 -04:00
rusefillc 3635bac90a [EPIC] [Feature Request] Transmission Control #1454 2020-10-28 01:23:05 -04:00
rusefillc 2bd5f135d6 Merge remote-tracking branch 'origin/master' into master 2020-10-28 01:15:53 -04:00
GitHub build-firmware Action 8d0c537533 Auto-generated configs and docs 2020-10-28 05:06:20 +00:00
rusefillc 67789a4b2f GDI 2020-10-28 01:01:54 -04:00
rusefillc b4e3927a92 TCU 2020-10-28 01:01:30 -04:00
GitHub build-firmware Action 7568f7a5d8 Auto-generated configs and docs 2020-10-28 04:22:27 +00:00
rusefillc 106c91efac fluid gauges 2020-10-28 00:20:35 -04:00
GitHub build-firmware Action 60532606c1 Auto-generated configs and docs 2020-10-28 04:18:04 +00:00
rusefillc 0f745b74c1 fluid gauges 2020-10-28 00:16:16 -04:00
rusefillc 27c967477a Merge remote-tracking branch 'origin/master' into master 2020-10-28 00:14:34 -04:00
rusefillc ae5f0a80a4 docs 2020-10-28 00:07:34 -04:00
GitHub set-date Action cd12d752f0 Update date 2020-10-28 00:57:34 +00:00
GitHub build-firmware Action 6d10f2fb61 Auto-generated configs and docs 2020-10-27 12:24:46 +00: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
GitHub set-date Action 4b1d123f15 Update date 2020-10-27 00:56:50 +00:00
GitHub build-firmware Action 733be969ad Auto-generated configs and docs 2020-10-26 22:17:20 +00: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 5e06db6b75
probably fix ci (#1912) 2020-10-26 14:04:22 -04:00
GitHub build-firmware Action d5c929f5ba Auto-generated configs and docs 2020-10-26 11:25:24 +00: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
GitHub build-firmware Action ac9b8fee45 Auto-generated configs and docs 2020-10-26 02:28:28 +00: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
GitHub set-date Action 593780e75d Update date 2020-10-26 00:57:31 +00:00
GitHub build-firmware Action 20b5219def Auto-generated configs and docs 2020-10-25 23:27:30 +00:00
Matthew Kennedy 5a810218aa
fix MRE digital input mapping (#1910) 2020-10-25 19:26:04 -04:00
Matthew Kennedy 946fe5091c
remove spiMtx (#1907) 2020-10-25 17:26:46 -04:00
Matthew Kennedy f37ed597c5
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 15363e9a41 Update date 2020-10-25 00:58:09 +00:00
GitHub set-date Action 779381a125 Update date 2020-10-24 00:55:30 +00:00
Matthew Kennedy 10c1ad7698
use fuel model (#1901)
* use fuel model

* spit'n'polish
2020-10-23 20:25:47 -04:00
GitHub build-firmware Action 27207dde9c Auto-generated configs and docs 2020-10-23 19:48:01 +00: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
Matthew Kennedy 08d8262f77
oops (#1899) 2020-10-23 15:45:44 -04:00
GitHub build-firmware Action 0ae003dcd3 Auto-generated configs and docs 2020-10-23 16:27:21 +00:00
Andrey G 8e11675afd
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 ec17daeee7 Auto-generated configs and docs 2020-10-23 16:25:10 +00:00
rusefillc 8e329ff750 gettig ready for Tle8888 big update 1 #1892 2020-10-23 12:23:17 -04:00
GitHub build-firmware Action 82587e97cf Auto-generated configs and docs 2020-10-23 11:33:40 +00: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
rusefi a7a475a1df B6 2020-10-23 00:39:22 -04:00
GitHub build-firmware Action 7a65b7e715 Auto-generated configs and docs 2020-10-23 03:26:03 +00:00
rusefillc f8bfafccf0 GDI Epic #1448 2020-10-22 23:24:15 -04:00
GitHub build-firmware Action d3a7d9e329 Auto-generated configs and docs 2020-10-23 03:19:42 +00:00
rusefillc edd7cc34d1 GDI Epic #1448 2020-10-22 23:17:29 -04:00
GitHub set-date Action 93da2717af Update date 2020-10-23 00:55:50 +00:00
Matthew Kennedy e4c5ca4af0
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 9359c15cc1
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 c0c1eefd55 GDI Epic #1448 2020-10-22 01:48:28 -04:00
rusefi 64ba8b3e99 Merge remote-tracking branch 'origin/master' 2020-10-22 01:12:14 -04:00
rusefi e12e3f9dc6 progress 2020-10-22 00:57:11 -04:00
GitHub build-firmware Action 3f9dd26478 Auto-generated configs and docs 2020-10-22 02:51:46 +00:00
Matthew Kennedy 6605877326
gppwm debug (#1895)
* dbg gppwm

* fix channel

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

* more
2020-10-20 22:24:32 -04:00
GitHub set-date Action 24fb167a34 Update date 2020-10-21 00:54:27 +00:00
rusefi 580872d88e VAG radiator control 2020-10-19 23:25:23 -04:00
rusefi 51e840eaa6 code style 2020-10-19 22:47:09 -04:00
rusefi 2ce0bef9b9 refactoring 2020-10-19 22:44:44 -04:00
rusefi e0a5c3dc12 GDI Epic #1448 2020-10-19 22:04:06 -04:00
GitHub set-date Action 4b920250c6 Update date 2020-10-20 00:54:38 +00:00
GitHub build-firmware Action dbf3b68e33 Auto-generated configs and docs 2020-10-19 12:06:22 +00: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
Matthew Kennedy 42bfad807b
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 c0d45d5b82 Update date 2020-10-19 00:54:39 +00:00
Matthew Kennedy ee5d0bf07b
remove (#1887) 2020-10-18 20:49:42 -04:00
Matthew Kennedy 44653da2e5
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 09f7667bd5 Update date 2020-10-18 00:55:31 +00:00
rusefi 15dcecb9c5 GDI Epic #1448 2020-10-17 20:17:53 -04:00
rusefillc a87c28a8ad dead legacy code - current implementation is definitely more correct 2020-10-17 18:46:07 -04:00
rusefillc b24f173892 refactoring: better method name 2020-10-17 18:45:08 -04:00
rusefillc 665900d76a GDI Epic #1448 2020-10-17 14:53:56 -04:00
Matthew Kennedy a68cbae0dc
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 7099ca6cb6 Update date 2020-10-17 00:52:43 +00:00
rusefillc bd7dcf1709 HW CI has failed 11 times since Oct 2 #1849 2020-10-16 13:54:12 -04:00
rusefillc ef5bc9f669 Merge remote-tracking branch 'origin/master' into master 2020-10-16 13:21:25 -04:00
Matthew Kennedy 7eeb60a8a0
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 749282c807
more safe parts probably (#1883) 2020-10-15 22:04:42 -04:00
GitHub set-date Action a2c23d4a6c Update date 2020-10-16 00:53:08 +00:00
rusefillc 322ebe7fcd Merge remote-tracking branch 'origin/master' into master 2020-10-15 16:16:51 -04:00
Matthew Kennedy a8057cfc16
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 4aac58065e Auto-generated configs and docs 2020-10-15 12:59:24 +00:00
Matthew Kennedy 2083b34cf9
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 8c8eb005f8 Merge remote-tracking branch 'origin/master' into master 2020-10-14 23:32:00 -04:00
GitHub build-firmware Action 906675166e Auto-generated configs and docs 2020-10-15 02:42:20 +00:00
Matthew Kennedy 568ec91fc0
fix temp sensor & validate it (#1879)
* fix temp sensor & validate

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

* test fix
2020-10-14 22:02:09 -04:00
GitHub set-date Action 6cafebc6bd Update date 2020-10-15 00:52:07 +00:00
rusefillc 68eb50332c Merge remote-tracking branch 'origin/master' into master 2020-10-14 20:09:50 -04:00
Matthew Kennedy 2855e04234
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 2a0205e3c4
switch to single precision constants (#1880)
* adjust builds

* fix test
2020-10-14 20:04:35 -04:00
GitHub set-date Action b39df90612 Update date 2020-10-14 00:51:46 +00:00
rusefillc ba906c2cee GDI Epic #1448 2020-10-13 00:35:04 -04:00
GitHub set-date Action 2a597d4786 Update date 2020-10-13 00:51:50 +00:00
Matthew Kennedy 605e2590f1
buffered writer - progress on #1463 (#1875)
* add buffered writer

* rename
2020-10-12 15:10:34 -04:00
rusefillc 14ddec0336 docs 2020-10-12 09:18:36 -04:00
rusefi dfa3e69186 GDI Epic #1448 2020-10-11 23:39:40 -04:00
rusefi 12a720dde2 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 b77c4ab55a 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 5bb332138a Update date 2020-10-12 00:51:55 +00:00
Matthew Kennedy 018db0df94
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 fc5f47a653 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 99923b17b7 Auto-generated configs and docs 2020-10-11 23:07:39 +00: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 9653eebe9d 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 2d9a63b8ef Auto-generated configs and docs 2020-10-11 21:49:05 +00:00
rusefi 4f74a5fc73 GDI Epic #1448 2020-10-11 17:47:16 -04:00
GitHub set-date Action 13f96c3504 Update date 2020-10-11 00:52:48 +00:00
rusefi e1621a5b63 poke 2020-10-10 00:07:15 -04:00
GitHub build-firmware Action c15083efac Auto-generated configs and docs 2020-10-10 03:36:50 +00: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
GitHub set-date Action b76afc46e4 Update date 2020-10-10 00:50:10 +00:00
GitHub build-firmware Action 2638fb63fa Auto-generated configs and docs 2020-10-09 21:19:04 +00:00
Matthew Kennedy 83fe9dae77
ign mode overrides (#1869) 2020-10-09 17:16:49 -04:00
GitHub build-firmware Action d1ec5522ac Auto-generated configs and docs 2020-10-09 06:11:02 +00:00
rusefillc 0a49ea933e https://rusefi.com/forum/viewtopic.php?f=4&t=1844 2020-10-09 02:08:52 -04:00
GitHub build-firmware Action 0f52622409 Auto-generated configs and docs 2020-10-09 06:07:46 +00:00
rusefillc ee2a013960 https://rusefi.com/forum/viewtopic.php?f=4&t=1844 2020-10-09 02:05:47 -04:00
Matthew Kennedy 2cb665cc51
Check for sd buffer overrun (#1867)
* use actual header size

* and the buffer can be a little smaller
2020-10-08 21:02:15 -04:00
GitHub set-date Action a5d4dedcea Update date 2020-10-09 00:49:56 +00:00
rusefillc a71528a458 SD card logs not valid for REO #1864 2020-10-08 20:35:32 -04:00
rusefillc 0726f168cf SD card logs not valid for REO #1864 2020-10-08 20:17:32 -04:00
rusefillc e721acc60c SD card logs not valid for REO #1864 2020-10-08 20:06:07 -04:00
rusefi b87fb3686f SD card logs not valid for REO #1864 2020-10-08 17:58:58 -04:00
rusefi 048c7a6025 SD card logs not valid for REO #1864 2020-10-08 17:50:43 -04:00
rusefillc 07a905b1fe revering functional part of
Etb function cfg, try again #1860
try again from #1831
2020-10-08 17:09:00 -04:00
GitHub build-firmware Action c5d4150377 Auto-generated configs and docs 2020-10-08 18:14:09 +00:00