Commit Graph

5131 Commits

Author SHA1 Message Date
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
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
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
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
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
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
GitHub set-date Action b39df90612 Update date 2020-10-14 00:51:46 +00: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
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
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
GitHub build-firmware Action 2d9a63b8ef Auto-generated configs and docs 2020-10-11 21:49:05 +00:00
GitHub set-date Action 13f96c3504 Update date 2020-10-11 00:52:48 +00: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
GitHub build-firmware Action 0f52622409 Auto-generated configs and docs 2020-10-09 06:07:46 +00: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 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
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
Matthew Kennedy 24503cd31c
fix fuel pump (#1865) 2020-10-07 22:30:24 -04:00
GitHub set-date Action 7098c50592 Update date 2020-10-08 00:41:29 +00:00
Matthew Kennedy a9e2a5cd1e
fix (#1863) 2020-10-07 14:59:24 -04:00
Matthew Kennedy cb47cde068
switch from float to expected<float> (#1862) 2020-10-06 22:33:00 -04:00
Matthew Kennedy 8cff16e797
FSIO refactoring (#1861)
* better fsio tests

* condense operators

* minor parser cleanup too

* comments, too!
2020-10-06 21:54:49 -04:00
GitHub set-date Action 3ded888df3 Update date 2020-10-07 00:49:32 +00:00
rusefillc 5f15b8e48b tachPulsePerRev needs a safer default, MRE config needs a value 2020-10-06 00:56:49 -04:00
GitHub set-date Action c49a241993 Update date 2020-10-06 00:48:58 +00:00
Matthew Kennedy c9fdde4472
remove virtual calls from hot path (#1857)
* const ref-ify

* no virtual 

* even more const

* tests

* fix tests
2020-10-05 16:42:50 -04:00
Matthew Kennedy 5925a5f4bd
const ref-ify trigger (#1856)
* const ref-ify

* tests
2020-10-05 14:22:59 -04:00
Matthew Kennedy c885db32f0
use expected for event queue next event (#1859)
* use expected for event queue next event

* minor cleanup

* tests
2020-10-05 13:53:34 -04:00
Matthew Kennedy dd6b02d555
we don't need two loops (#1855) 2020-10-05 08:57:00 -04:00
Matthew Kennedy aad5d987a2
pwm perf (#1858)
* pwm perf

* this trace is now redundant
2020-10-05 08:23:30 -04:00
Matthew Kennedy 86b5edecbc
missing iat (#1854) 2020-10-04 21:33:54 -04:00
GitHub set-date Action d9fb908b4f Update date 2020-10-05 00:50:15 +00:00
Matthew Kennedy 3aa4f2bd97
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 348b387483 Trigger performance: variable gapTrackingLength #1851
cool change but looks to have made zero difference
2020-10-04 13:05:49 -04:00
rusefillc 53ece86a88 fixing Kinetis build 2020-10-04 03:04:01 -04:00
rusefillc 96a126d60f 60/2 perf grab #1850
unused parameter
2020-10-04 02:09:12 -04:00
rusefillc efacf26554 Re-applying #1841
Revert "HW CI has failed 11 times since Oct 2 #1849"

This reverts commit 7f6a8311
2020-10-04 01:54:29 -04:00
rusefillc 030ec42ac7 60/2 perf grab #1850
a) removing more of stack validating - one validation within the deepest method would be enough

b) un-wrapping main callback loop for explicit order of execution
2020-10-04 01:43:02 -04:00
rusefillc 6b95579706 60/2 perf grab #1850 2020-10-04 01:26:29 -04:00
rusefillc c9d3d1f01a 60/2 perf grab #1850 2020-10-04 01:04:15 -04:00
rusefillc e2ca642f97 60/2 perf grab #1850 2020-10-04 00:15:40 -04:00
GitHub build-firmware Action c047397cf7 Auto-generated configs and docs 2020-10-04 02:02:15 +00: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 7f6a831117 HW CI has failed 11 times since Oct 2 #1849
Revert "configure all sample times - fix MRE knock sampling (#1841)"

This reverts commit b3596f89
2020-10-03 21:36:09 -04:00
rusefillc 9273659d69 Merge remote-tracking branch 'origin/master' into master 2020-10-03 20:53:29 -04:00
rusefillc a9d669ba83 HW CI has failed 11 times since Oct 2 #1849 2020-10-03 20:53:23 -04:00
GitHub set-date Action ed60cd3bce Update date 2020-10-04 00:51:05 +00:00
rusefillc dd7dd3b8eb HW CI has failed 11 times since Oct 2 #1849 2020-10-03 20:25:37 -04:00
rusefillc dce24274a2 HW CI has failed 11 times since Oct 2 #1849 2020-10-03 19:45:39 -04:00
GitHub build-firmware Action 17c87dbd90 Auto-generated configs and docs 2020-10-03 23:29:56 +00:00
GitHub build-firmware Action 2c0db8e970 Auto-generated configs and docs 2020-10-03 14:42:14 +00:00
rusefillc 5cf8ce1db8 Merge remote-tracking branch 'origin/master' into master 2020-10-03 10:39:54 -04:00
rusefillc e5b8e0e515 new VVT trigger shape? #1847 2020-10-03 10:39:43 -04:00
GitHub build-firmware Action 71d603bcc9 Auto-generated configs and docs 2020-10-03 14:27:55 +00:00
GitHub build-firmware Action 4c403fbb22 Auto-generated configs and docs 2020-10-03 14:06:31 +00:00
GitHub build-firmware Action 1b37b2a0b8 Auto-generated configs and docs 2020-10-03 00:52:49 +00: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
Matthew Kennedy b3596f8969
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
GitHub set-date Action 20312b0009 Update date 2020-10-03 00:47:49 +00:00
GitHub build-firmware Action 4eb2d8b42c Auto-generated configs and docs 2020-10-02 18:35:16 +00:00
GitHub set-date Action c40228d77e Update date 2020-10-02 00:47:06 +00:00
Matthew Kennedy c8b4fac456
move scheduling to its own file (#1842)
* move scheduling to its own file

* header

* protip don't include a cpp file
2020-10-01 17:55:03 -04:00
Matthew Kennedy a05b06f5f0
print red (#1843) 2020-10-01 17:14:25 -04:00
GitHub build-firmware Action 7a9a623b07 Auto-generated configs and docs 2020-10-01 04:06:05 +00:00
GitHub set-date Action d9713c84a4 Update date 2020-10-01 00:49:04 +00:00
GitHub build-firmware Action 90b8c991da Auto-generated configs and docs 2020-10-01 00:21:49 +00: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
GitHub build-firmware Action 476c55fd4e Auto-generated configs and docs 2020-09-30 23:20:30 +00:00
GitHub set-date Action 33ddf08e1d Update date 2020-09-30 00:47:11 +00:00
GitHub build-firmware Action 5f72947d6f Auto-generated configs and docs 2020-09-29 10:36:50 +00:00
Matthew Kennedy 16bfd39bac
Remove dead & useless config (#1834)
* remove dead config

* remove enum
2020-09-29 06:34:39 -04:00
GitHub build-firmware Action 6b7c42b85e Auto-generated configs and docs 2020-09-29 01:41:06 +00: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
GitHub build-firmware Action fb2fa9aa62 Auto-generated configs and docs 2020-09-29 01:20:53 +00:00
rusefi 23e0851101 adding 1+16 trigger 2020-09-28 21:18:47 -04:00
rusefi c2efe95ee0 refactoring: magic constants 2020-09-28 21:11:04 -04:00
GitHub build-firmware Action 27570472cc Auto-generated configs and docs 2020-09-29 01:07:43 +00:00
rusefi 53412d1dd9 Merge remote-tracking branch 'origin/master' into master 2020-09-28 20:59:58 -04:00
rusefi 1adc9444a8 removing third copy of same values 2020-09-28 20:58:21 -04:00
GitHub set-date Action fbc25ecca4 Update date 2020-09-29 00:46:48 +00:00
David Holdeman 4d0b953129
switch to pass by reference (#1832) 2020-09-28 19:17:17 -04:00
GitHub build-firmware Action 589acfc7db Auto-generated configs and docs 2020-09-28 20:34:48 +00: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
GitHub build-firmware Action c8c673b8e0 Auto-generated configs and docs 2020-09-28 18:47:21 +00:00
GitHub set-date Action 55e26836f1 Update date 2020-09-28 00:47:27 +00:00
GitHub build-firmware Action 17fc77de71 Auto-generated configs and docs 2020-09-27 15:03:29 +00:00
GitHub build-firmware Action 6ddaa0a334 Auto-generated configs and docs 2020-09-27 13:59:42 +00:00
GitHub build-firmware Action bf6b9e3bb2 Auto-generated configs and docs 2020-09-27 12:51:50 +00:00
rusefi 0e24f9c5af Output pin init/deinit needs a linked list #1803 2020-09-27 07:58:22 -04:00
rusefi eae7995782 Output pin init/deinit needs a linked list #1803 2020-09-27 07:48:38 -04:00
GitHub build-firmware Action f5b1157d05 Auto-generated configs and docs 2020-09-27 11:38:53 +00: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 0b628cea75 Output pin init/deinit needs a linked list #1803 2020-09-27 07:22:09 -04:00
GitHub set-date Action 7e4644249e Update date 2020-09-27 00:48:28 +00:00
rusefi 1e503c2ada Output pin init/deinit needs a linked list #1803
more fun around pin referencing
2020-09-26 05:04:27 -04:00
GitHub set-date Action 4b661ef929 Update date 2020-09-26 00:45:57 +00:00
GitHub set-date Action 6d3c488f2b Update date 2020-09-25 00:46:43 +00:00
GitHub set-date Action 4be3582142 Update date 2020-09-24 00:46:48 +00:00
andreika-git 6e5a3fbbe9
Hellen says fix cypress build (#1818)
* fix compilation

* fresh generated files

* more files

Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-09-23 14:06:22 -04:00
GitHub set-date Action 1491a0c229 Update date 2020-09-23 00:45:21 +00:00
GitHub build-firmware Action a5aedf9967 Auto-generated configs and docs 2020-09-22 20:27:30 +00:00
shadowm60 8d8e8ec260
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
GitHub build-firmware Action 2614020c6b Auto-generated configs and docs 2020-09-22 09:29:44 +00:00
GitHub build-firmware Action 91ea6cd91b Auto-generated configs and docs 2020-09-22 08:59:31 +00:00
rusefi ab41bccd21 helping CI 2020-09-22 04:57:07 -04:00
GitHub build-firmware Action cc3381c175 Auto-generated configs and docs 2020-09-22 07:49:56 +00:00
shadowm60 a70e24bf6c
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
GitHub set-date Action 900842da16 Update date 2020-09-22 00:45:38 +00:00
rusefi 2d771018e8 unit test for start/stop hardware and pin repository #1811 2020-09-21 12:29:01 -04:00
rusefi c957541cf4 ADC progress 2020-09-21 06:10:25 -04:00
Matthew Kennedy df551d77fb
move AEM xseries lambda to new sensor (#1764)
* lambda sens

* fix init

* new sensor aem

* comment

* g

* format

* x

* guard

* fix init for tests

* fix

* put back

* put back

* fix

* fix init

* why is this different

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-09-21 06:01:54 -04:00
shadowm60 f2edf843e5
Update can_vss.cpp (#1813)
update vss reading from can
2020-09-21 05:55:09 -04:00
GitHub set-date Action 8bb5ffba05 Update date 2020-09-21 00:46:18 +00:00
rusefi 749c3e5f1d Merge remote-tracking branch 'origin/master' into master 2020-09-20 14:04:33 -04:00
rusefi e69167c8f0 Revert "reorder ADC channel index #1763"
This reverts commit 67bc72eb
2020-09-20 14:04:24 -04:00
David Holdeman 68012c18b7
Debounce refactor (#1809)
* 1,2,4,7,9

* 6

* fix type mismatch

* change field

* comment

* Revert "comment"

This reverts commit f7ce8ed48d015490ed82d692270198817569b5a3.

* Revert "Revert "comment""

This reverts commit 99f2d5cadcbf444bf58acf9e57a6fed61355d5be.

* Revert "change field"

This reverts commit 55ec050cd947696cdffccae6b29fe48d95ab5f17.

* rename var

* comments

* use func in init

* default values

* remove redundant check
2020-09-20 14:01:00 -04:00
rusefi 67bc72ebd3 reorder ADC channel index #1763
we forgot about something
2020-09-20 13:59:54 -04:00
GitHub build-firmware Action f5114d7f1b Auto-generated configs and docs 2020-09-20 17:45:00 +00:00
GitHub set-date Action ec7de00cd4 Update date 2020-09-20 00:46:52 +00:00