Commit Graph

1648 Commits

Author SHA1 Message Date
rusefi b76cfa8ef1 b6 2020-10-28 18:53:30 -04:00
rusefillc 781cc3d326 [EPIC] [Feature Request] Transmission Control #1454 2020-10-28 01:23:05 -04:00
rusefillc 91afd62a53 GDI 2020-10-28 01:01:54 -04: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 74f59ff67e fix MRE digital input mapping (#1910) 2020-10-25 19:26:04 -04: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
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
rusefillc 2a8a0f6af1 GDI Epic #1448 2020-10-22 01:48:28 -04:00
rusefi 4af1bad726 progress 2020-10-22 00:57:11 -04:00
Matthew Kennedy 8f6982dd54 disable i2c, other unused features (#1891)
* dead

* more
2020-10-20 22:24:32 -04:00
rusefi 79d267eba0 VAG radiator control 2020-10-19 23:25:23 -04:00
rusefi 1be1f66edf GDI Epic #1448 2020-10-17 20:17:53 -04:00
rusefillc aec48c294e GDI Epic #1448 2020-10-17 14:53:56 -04:00
rusefillc 54c3d0f15c HW CI has failed 11 times since Oct 2 #1849 2020-10-16 13:54:12 -04:00
rusefillc a37880eb97 GDI Epic #1448 2020-10-13 00:35:04 -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
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
rusefillc 25d02f6356 SD enable 2020-10-06 01:15:17 -04:00
rusefillc d5d5bbba9f tachPulsePerRev needs a safer default, MRE config needs a value 2020-10-06 00:56:49 -04:00
Matthew Kennedy ebc884e8d5 trigger decode cleanup and perf (#1853)
* trigger decode cleanup

* test config ptr patchup

* disable CDM by default
2020-10-04 19:29:26 -04:00
rusefillc c1023504e6 Re-applying #1841
Revert "HW CI has failed 11 times since Oct 2 #1849"

This reverts commit 7d8238e6
2020-10-04 01:54:29 -04:00
rusefillc 7d8238e697 HW CI has failed 11 times since Oct 2 #1849
Revert "configure all sample times - fix MRE knock sampling (#1841)"

This reverts commit e02c86a7
2020-10-03 21:36:09 -04:00
Matthew Kennedy e02c86a7dc configure all sample times - fix MRE knock sampling (#1841)
* configure all sample times

* smpr 1 vs smpr 2

* man I can't type

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-10-02 20:49:56 -04:00
Matthew Kennedy 8520a128bb show SD menu on proteus (#1837)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-09-30 19:18:37 -04:00
rusefi d09d2da420 Cypress artifact needs .hex file #1835 2020-09-29 18:50:51 -04:00
David Holdeman 37f439390e add hex to bundle (#1836) 2020-09-29 17:04:41 -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 0f7b91861a move cd statements to common_make.sh (#1830)
* move cd to compile.sh

* rel path

* undo changes to compile.sh and move cd to common_make
2020-09-28 18:25:15 -04:00
Matthew Kennedy 9632a784f3 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
andreika-git 3db4d3a56f Hellen says fix gen_config for Cypress (#1824)
* Hellen says merge #1772 hardware.cpp

* Hellen says merge #1772 adc.h

* Hellen says fix gen_config for Cypress

* Hellen says fix gen_config actions for Cypress

* Hellen says reset .h files

Co-authored-by: rusefi <rusefillc@gmail.com>
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-09-27 09:56:44 -04:00
rusefi 15cb74bbf8 cypress into GHA #1819
code style match
2020-09-27 07:07:01 -04:00
rusefi 940086ee34 cypress into GHA #1819 2020-09-27 06:43:32 -04:00
rusefi 5d3ded340b cypress into GHA #1819 2020-09-27 06:27:50 -04:00
rusefi 1d99e908a1 cypress into GHA #1819 2020-09-27 06:13:58 -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
shadowm60 c85932727e Mre sw knock detection (#1815)
* Add SW knock control to MRE on AT4

* Update software_knock.cpp

cleanup

* use knock only for final build

* adjust RAM

* Update engine_controller.cpp

Adjust RAM for HW QC special to build
2020-09-22 03:48:17 -04:00
Matthew Kennedy a62089e590 proteus SD card defaults (#1796)
* proteus SD defaults

* disable serial console pins
2020-09-14 10:54:25 +03:00
rusefi b1ec0508f5 Merge remote-tracking branch 'origin/Hellen_fork_point' into master
# Conflicts:
#	firmware/config/boards/common_make.bat
#	firmware/controllers/algo/engine.cpp
#	firmware/controllers/system_fsio.txt
2020-09-11 03:59:06 -04:00
rusefi 8831da2e3b Hellen says merge #1772 fast ADC 2020-09-11 03:54:07 -04: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
rusefi 255f2e5fa3 Hellen says merge #1772 getting closer? 2020-09-10 21:12:25 -04:00
rusefi e69b2436b1 Hellen says merge #1772 getting closer? 2020-09-10 21:09:19 -04:00
Matthew Kennedy 7d7acc3e5f fix miata default (#1781) 2020-09-09 17:11:07 -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
rusefi e3758d3790 microRusEFI used as Body Control Module BCM BCU 2020-09-07 17:59:59 -04:00
rusefi adbb3f07e7 microRusEFI used as Body Control Module BCM BCU 2020-09-07 16:25:00 -04:00
rusefi fdac041e7d Merge remote-tracking branch 'origin/Hellen_fork_point' into master
# Conflicts:
#	firmware/config/boards/kinetis/efifeatures.h
#	firmware/config/boards/prometheus/efifeatures.h
#	firmware/config/boards/skeleton/efifeatures.h
#	firmware/config/boards/subaru-ej20gn/efifeatures.h
#	firmware/config/stm32f4ems/efifeatures.h
#	firmware/config/stm32f7ems/efifeatures.h
2020-09-07 15:32:15 -04:00
rusefi df908db68e Hellen says merge #1772 efifeatures 2020-09-07 15:27:29 -04:00
rusefi b6b4e25551 Revert "Hellen says efifeatures"
This reverts commit 4e60dcdf
2020-09-07 12:24:50 -04:00
rusefi 4e60dcdf00 Hellen says efifeatures 2020-09-07 12:08:36 -04:00
rusefi a87dfb7f87 microRusEFI used as Body Control Module BCM BCU 2020-09-06 22:36:31 -04:00
rusefi bc2aa6601e microRusEFI used as Body Control Module BCM BCU 2020-09-06 20:21:01 -04:00
rusefi 66af0565d8 microRusEFI used as Body Control Module BCM BCU 2020-09-06 20:09:26 -04:00
rusefi f55fee38b4 microRusEFI used as Body Control Module BCM BCU 2020-09-06 19:43:54 -04:00
Matthew Kennedy 4802a47d23 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 ce87837309 migrate VSS to universal event capture #1665
docs
2020-09-03 11:56:15 -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
rusefi cdde5fe11d price of lazy progress 2020-08-31 20:56:46 -04:00
rusefi 581d769227 blinking more LEDs 2020-08-31 17:15:04 -04:00
rusefi d7a63575b2 blinking more LEDs 2020-08-31 14:26:34 -04:00
rusefi 8a1244b7d7 blinking more LEDs 2020-08-31 13:44:58 -04:00
rusefi 1a87b6aa71 blinking more LEDs 2020-08-31 13:27:56 -04:00
rusefi 12abd6a81e B6 2020-08-29 19:01:44 -04:00
rusefi 4322f78591 verboseVVTDecoding 2020-08-29 17:05:54 -04:00
rusefi 8d024f4579 BCM 2020-08-29 14:29:34 -04:00
rusefi acf8031330 B6 2020-08-29 10:06:28 -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
rusefi 7e4e773011 a bit of flexibility 2020-08-26 23:08:48 -04:00
rusefi 22f6063d9f VVT support for VAG trigger #883 2020-08-25 16:19:23 -04:00
rusefi 2e9da1387d v12 2020-08-23 15:09:23 -04:00
rusefi fdbdc6d495 docs 2020-08-21 14:59:24 -04:00
Matthew Kennedy 207aafe262 harmonize blocking factor (#1709)
* harmonize blocking factor

* static assert
2020-08-21 14:12:28 -04:00
rusefi 7fef82742f v12 progress 2020-08-21 14:09:51 -04:00
rusefi 831d99ccee v12 2020-08-19 22:03:27 -04:00
rusefi de5c49d04f v12 2020-08-19 01:09:39 -04:00
rusefi 6439dce79f v12 2020-08-19 00:35:09 -04:00
rusefi d0ee2c78e3 progress 2020-08-17 19:51:50 -04:00
Andrei 178c55e62b vss_exti untested 2020-08-13 18:27:31 +03:00
rusefi 494aff334f 1.6 VAF tune 2020-08-11 22:17:53 -04:00
rusefi ae606a6380 trigger and VSS hw integrated testing #1668 2020-08-08 12:03:24 -04:00
rusefi 64a9440bc0 trigger and VSS hw integrated testing #1668 2020-08-08 11:45:02 -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 1a14c3cde7 no bins 2020-08-03 12:21:49 -07:00
Matthew Kennedy cd547ceb00 no more setFuelMap 2020-08-03 12:14:11 -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 519427cce2 defaults 2020-08-02 16:21:53 -07:00
kon e8746d6c5d Merge branch 'master' of https://github.com/rusefi/rusefi into second_can 2020-08-02 09:32:41 -07:00
rusefi 6930dc813f NA6 progress 2020-08-02 12:08:35 -04:00
rusefi 042f86863f NA6 progress 2020-08-02 11:09:18 -04:00
rusefi 5a2a47e4f6 NA6 progress 2020-08-02 10:18:14 -04:00
kon da262d9076 added secondary can config 2020-08-01 20:58:14 -07:00
rusefi b20d7f7619 dropping legacy stuff 2020-08-01 19:17:58 -04:00
rusefillc cd9844132d Merge pull request #1632 from mck1117/remove-plain-maf
goodbye, plain maf
2020-08-01 09:16:38 -04:00
rusefi fae26e927b NA6 progress 2020-07-31 22:43:32 -04:00
Matthew Kennedy 90738127ea remove 2020-07-31 15:03:09 -07:00
Matthew Kennedy 7009c82993 Merge remote-tracking branch 'upstream/master' into remove-plain-maf 2020-07-31 14:56:29 -07:00
rusefi 611beeb32d NA6 progress 2020-07-31 14:20:50 -04:00
rusefi 965e99df0d NA6 progress 2020-07-31 14:06:30 -04:00
Matthew Kennedy 01988e607e guard 2020-07-30 21:39:12 -07:00