rusefi
7300bbe750
improving QC process
2021-04-23 00:45:36 -04:00
rusefi
be0f2210c5
improving QC process
2021-04-22 21:23:20 -04:00
Matthew Kennedy
b6fc9befc8
finish it off: remove scheduleMsg ( #2575 )
...
* finish it off
* one more logger ptr
* fwd decl
* Revert "one more logger ptr"
This reverts commit a21fb0087ddc748978d716db2710800cf26e437b.
* unused
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-21 15:33:40 -04:00
Matthew Kennedy
5f0791f9fb
Destroy all shared logger ( #2574 )
...
* most of shared logger
* a few more
* one more
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-21 14:28:48 -04:00
Matthew Kennedy
737ee444b8
rip the bandaid: find-replace most of scheduleMsg ( #2572 )
...
* biiiig find replace
* more trivial find replace
* pwm
* almost all of them
* few more
* gpio
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-21 12:53:13 -04:00
rusefillc
9c1aa580f1
WOW major scheduling drama on NB2 running with Proteus #2533
2021-04-15 19:12:09 -04:00
rusefillc
f0c98325be
WOW major scheduling drama on NB2 running with Proteus #2533
...
totally same numbers for NB1 just simpler code
2021-04-15 18:44:37 -04:00
rusefillc
6bc7a0e134
WOW major scheduling drama on NB2 running with Proteus #2533
...
removing weird comments
2021-04-15 18:22:23 -04:00
rusefillc
28afbd648b
dead code - same value set by 's->initialize'
2021-04-13 01:11:03 -04:00
rusefillc
80adaadd7a
Kawasaki KX450F trigger wheel #2538
2021-04-13 00:24:52 -04:00
rusefillc
448dafb5f2
https://rusefi.com/forum/viewtopic.php?p=40383
2021-04-11 18:20:35 -04:00
rusefillc
2547283f45
Kawasaki KX450F trigger wheel #2538
2021-04-09 12:44:28 -04:00
rusefillc
06ada8562b
Kawasaki KX450F trigger wheel #2538
2021-04-08 22:16:14 -04:00
rusefillc
ffe845ab1a
CUSTOM_ERR_VVT_OUT_OF_RANGE warning false-positive fix #2534
2021-04-08 14:39:26 -04:00
rusefi
3d89cc2093
trigger and VVT duty cycle integration into limp manager #2523
2021-04-07 15:17:01 -04:00
rusefillc
c886394947
trigger and VVT duty cycle integration into limp manager #2523
2021-04-07 12:16:23 -04:00
rusefillc
9c26a84be9
trigger and VVT duty cycle integration into limp manager #2523
2021-04-07 01:21:28 -04:00
rusefillc
a9e822f790
'displayLogicLevelsInEngineSniffer' on VVT input reports too much into engine sniffer fix #2528
2021-04-04 23:12:07 -04:00
rusefillc
f8aa71bf63
refactoring
2021-04-04 23:03:51 -04:00
rusefillc
181db048fe
todo?
2021-04-04 22:05:55 -04:00
Andrey G
5fda278503
hip9011: get callback from spark on each cylinder ( #2499 )
...
* hip9011: get callback from spark on each cylinder
* hip9011: cleanup unused
2021-03-27 14:12:49 -04:00
Matthew Kennedy
4e1d30f86d
plumbing for multiple vvt ( #2488 )
...
* plumb multiple vvt
* fix test
* s
* fix barra while we're at it
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-25 07:39:23 -04:00
Matthew Kennedy
db7856523c
barra vvt cam pattern ( #2483 )
...
* barra vvt cam pattern
* two tooth sync
* I think this needs to be here too
2021-03-22 07:48:29 -04:00
Andrey G
aa05ff195d
Hip9011 and cleanups ( #2477 )
...
* hip9011: move hipCs out of EnginePins to hip9011 driver
* hip9011: cleanup debug output, save few RAM bytes
* Supress few signed vs unsigned warnings
2021-03-20 08:40:36 -04:00
Matthew Kennedy
925a6ca086
harden against various no-boot scenarios ( #2468 )
...
* zero length trigger
* validate config
* validate cylinder count
* wrong type on cylinder count
* invalid comment
* invalid SPI
2021-03-17 09:24:13 -04:00
Matthew Kennedy
c168c748ea
dead code, warnings ( #2461 )
2021-03-15 10:23:19 -04:00
Matthew Kennedy
ce3878949c
stop trigger emulator PWM when disabled ( #2443 )
...
* simplify trig emulator
* spelling is hard
* fix various builds
* spelling again
* add command/button for external stimulation
* enable hw stim for HW-in-loop test
* s
* I does spelling good
* clear flag when disabled
* generate enough for console build
* don't disable that
* this test needs external stimulation enabled
* import
* ui improvements
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-11 08:38:52 -05:00
rusefillc
c954803292
TDC Trigger Position #2428
...
any single-tooth primary trigger should automatically run with "useOnlyPrimaryForSync = true;"
2021-03-08 00:00:48 -05:00
rusefillc
1b1bd0065d
removing dead code - initialize() sets 'true' already
2021-03-07 23:37:54 -05:00
Matthew Kennedy
d5bc14719e
trigger decoder timer ( #2427 )
...
* part 2
* stale comment
* include
* why was this a macro
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-07 16:35:58 -05:00
Matthew Kennedy
abdce83190
virtual zero timer ( #2426 )
...
* virtual zero timer
* it would help to call the correct function
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-07 15:32:41 -05:00
rusefillc
654a739e6b
M62T vanos support #2243
2021-02-08 22:21:02 -05:00
rusefillc
dc79ee1511
M62T vanos support #2243
2021-02-08 22:07:14 -05:00
rusefillc
8fa1a6530b
M62T vanos support #2243
2021-02-08 21:50:31 -05:00
rusefi
d39b285834
M62T vanos support #2243
2021-02-08 21:28:57 -05:00
rusefi
1012b61e02
M62T vanos support #2243
2021-02-08 20:38:38 -05:00
rusefi
2ccb75a064
refactoring: naming consistency
2021-02-08 18:20:53 -05:00
rusefillc
11e8a35c15
Trigger pattern request Škoda Favorit fix #2302
2021-02-06 20:53:30 -05:00
rusefillc
4dc9c013c9
Trigger pattern request Škoda Favorit #2302
2021-02-06 20:12:58 -05:00
Matthew Kennedy
9b5fa40d16
add option to disable ETB if engine not spinning ( #2280 )
...
* config/ui
* trigger central mods
* implement
2021-02-05 17:19:57 -06:00
rusefillc
2bfac97f93
GM/Daewoo 60/2/2/2 Trigger Pattern #2264
2021-02-02 11:06:32 -05:00
rusefillc
0f49d48a42
GM/Daewoo 60/2/2/2 Trigger Pattern #2264
2021-02-02 09:50:20 -05:00
rusefillc
782ae69cc3
GM/Daewoo 60/2/2/2 Trigger Pattern #2264
2021-02-01 23:44:14 -05:00
rusefillc
6043d6d8f2
GM/Daewoo 60/2/2/2 Trigger Pattern #2264
2021-02-01 23:18:11 -05:00
rusefillc
ce62edb56b
GM/Daewoo 60/2/2/2 Trigger Pattern #2264
2021-02-01 22:49:49 -05:00
rusefillc
7fb7cc6679
extracting runtime state from trigger central
2021-01-31 22:41:17 -05:00
rusefillc
11aa253ae9
vvt/cam events to pass index
2021-01-31 22:24:45 -05:00
rusefillc
aa24ba3068
M62T vanos support #2243
2021-01-26 22:54:25 -05:00
rusefillc
c0e9d2914b
M62T vanos support #2243
2021-01-26 21:43:23 -05:00
rusefillc
9ce59f5da4
M62T vanos support #2243
2021-01-26 21:16:47 -05:00
rusefi
0cc7cb8eb4
Revert "Save more space in the angle cache ( #2228 )"
...
This reverts commit 1800219e
2021-01-18 18:53:00 -05:00
Matthew Kennedy
1800219e44
Save more space in the angle cache ( #2228 )
...
* store event angles in a scaled field
* tests
* comment
2021-01-18 18:31:06 -05:00
Andrey G
d134fabc51
Simplify Makefile, unify board.mk files ( #2229 )
...
* Proper way to add lis302 driver
* Proper way to add license directory to includes
* Makefile: simplify
All ChibiOS stuff is accumulated in ALLCSRC, ALLINC and so on.
* board.mk: append sources and includes to ALLSRC, ALLCPPSRC, ALLINC
* Cypress: fix CANv2 includence into build
2021-01-17 09:32:06 -05:00
Matthew Kennedy
a294dfeadd
save 1440 bytes ( #2226 )
2021-01-16 21:22:30 -05:00
Matthew Kennedy
b047ec4f12
clean up some includes ( #2227 )
...
* cleanup
* make c happy
2021-01-16 09:45:45 -05:00
Matthew Kennedy
5bfee13c21
fix instant rpm ( #2180 )
...
* consumers
* impl
* instant rpm in idle timing
2021-01-14 20:45:55 -05:00
Matthew Kennedy
c870215c46
part of 2217 which may fix it alone ( #2220 )
2021-01-11 08:01:54 -05:00
Andrey G
b61ae75fe2
gpio helper ( #2195 )
...
* gpios: isBrainPinValid helper
* LCD HD44780: do not touch pins if DM_NONE or invalid gpio
* Fix isEnabled checks for GPS and Joystick
* LCD HD44780: writePad use this method wider
2021-01-08 20:01:26 -05:00
Matthew Kennedy
56b4d87fcd
generate triggers.txt from parametric test ( #2186 )
...
* add new test
* comment
* remove old
* main cleanup
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-01-05 17:58:34 -05:00
rusefillc
28e975b096
RAM efficiency of VR crank trigger shapes #2182
...
Audi OEM 5-cyl trigger pattern aka "Tri-Tach" https://rusefi.com/forum/viewtopic.php?f=5&t=1912
2021-01-04 23:44:31 -05:00
rusefillc
3ed2cdcc72
RAM efficiency of VR crank trigger shapes #2182
...
Audi OEM 5-cyl trigger pattern aka "Tri-Tach" https://rusefi.com/forum/viewtopic.php?f=5&t=1912
2021-01-04 23:34:19 -05:00
rusefillc
fea596e867
RAM efficiency of VR crank trigger shapes #2182
...
Audi OEM 5-cyl trigger pattern aka "Tri-Tach" https://rusefi.com/forum/viewtopic.php?f=5&t=1912
fixing build?
2021-01-04 22:13:59 -05:00
rusefillc
a51634fd2b
RAM efficiency of VR crank trigger shapes #2182
...
Audi OEM 5-cyl trigger pattern aka "Tri-Tach" https://rusefi.com/forum/viewtopic.php?f=5&t=1912
2021-01-04 22:00:37 -05:00
rusefillc
72759ab4a8
Audi OEM 5-cyl trigger pattern aka "Tri-Tach" https://rusefi.com/forum/viewtopic.php?f=5&t=1912
2021-01-04 21:30:54 -05:00
rusefillc
da8c1a3ed4
Audi OEM 5-cyl trigger pattern aka "Tri-Tach" https://rusefi.com/forum/viewtopic.php?f=5&t=1912
2021-01-04 21:05:16 -05:00
rusefillc
08e8764051
RAM efficiency of VR crank trigger shapes #2182
2021-01-04 00:26:05 -05:00
rusefillc
dda6b31d3c
Audi OEM 5-cyl trigger pattern aka "Tri-Tach" https://rusefi.com/forum/viewtopic.php?f=5&t=1912
2021-01-03 14:05:24 -05:00
rusefillc
6eb11dc60a
Audi OEM 5-cyl trigger pattern aka "Tri-Tach" https://rusefi.com/forum/viewtopic.php?f=5&t=1912
2021-01-03 13:52:53 -05:00
rusefillc
43586d5348
Audi OEM 5-cyl trigger pattern aka "Tri-Tach" https://rusefi.com/forum/viewtopic.php?f=5&t=1912
2021-01-03 13:34:00 -05:00
rusefi
663ff4656f
FATAL while bench testing VR #2153
2021-01-01 14:07:52 -05:00
Matthew Kennedy
279f8bad03
use limp mgr for trigger disable ( #2145 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-26 18:12:36 -05:00
rusefillc
1d434336f8
VR_HW_CHECK_MODE
2020-12-21 13:33:09 -05:00
rusefi
9194323b5d
proteus_f4_hardware_QC_special_build
2020-12-20 11:17:38 -05:00
Matthew Kennedy
30fd52d82d
Fix gpio reinit race condition ( #2098 )
...
* fix unregister api for gpio
* consumers
* guard with a critical section
* index
* guard less
* unregister under lock
* fix reinit
* dead flag
* fix most tests
* initialize properly
* initialize properly
* assertions in tests
* fix message
* we must lock earlier to be truly safe
* this was using huge memory
* devirtualize
2020-12-18 17:18:12 -05:00
Matthew Kennedy
08d77ffd32
init pins ( #2095 )
2020-12-18 01:30:17 -05:00
rusefillc
4c2ea35269
TT_SUBARU_7_WITHOUT_6
2020-12-13 17:46:48 -05:00
rusefi
dc655a81ed
subi ops
2020-12-13 16:41:53 -05:00
rusefi
ada45c3962
poke
2020-12-13 16:31:47 -05:00
rusefi
1a205b9973
maybe this would just work?
2020-12-13 16:22:02 -05:00
rusefillc
47db5d0d99
clang warnings again #2055
2020-12-11 10:33:00 -05:00
rusefillc
84ae2722c5
dead code
2020-12-10 21:45:25 -05:00
rusefillc
3c623d8ed1
GM x24 is a well defined trigger needs hard-coded tdcPosition fix #2054
2020-12-10 19:38:33 -05:00
rusefillc
4072db3052
trigger lifecycle
2020-12-09 12:19:25 -05:00
rusefillc
166167f805
basic hw in the loop - pwm self validation #2028
2020-12-08 05:30:12 -05:00
rusefillc
d6ea410424
basic hw in the loop - pwm self validation #2028
2020-12-08 05:07:03 -05:00
rusefillc
2f15c08498
basic hw in the loop - pwm self validation #2028
2020-12-08 04:52:49 -05:00
Matthew Kennedy
73fc01ceec
put back safe part of #2005 ( #2036 )
...
* put back some safe bits
* dumb typo
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-06 22:28:29 -05:00
rusefillc
b463166297
minor fixes
2020-12-06 19:25:48 -05:00
rusefillc
8d6255b1e2
Revert "switch rpm calculator to use timer class ( #2005 )"
...
This reverts most of 622021e799
commit.
2020-12-06 18:05:53 -05:00
Matthew Kennedy
622021e799
switch rpm calculator to use timer class ( #2005 )
...
* add api
* rpm calculator
* fix fsio
* fix float
* remove wrong comment
* fix timer
* clang didn't like this
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-06 16:01:45 -05:00
rusefillc
5464498909
6.1 Hemi V8 decoder fix #2010
2020-12-04 16:50:26 -05:00
rusefillc
589558b5f1
6.1 Hemi V8 decoder #2010
2020-12-04 16:33:29 -05:00
rusefillc
9871d5b501
refactoring: magic constants
2020-12-04 16:24:19 -05:00
rusefillc
5ae3347927
6.1 Hemi V8 decoder #2010
2020-12-04 16:03:27 -05:00
rusefillc
2b2ffe9d7d
6.1 Hemi V8 decoder #2010
2020-12-04 15:33:07 -05:00
rusefillc
45e47220ab
6.1 Hemi V8 decoder #2010
2020-12-04 15:22:53 -05:00
rusefillc
d191d31272
all triggers should be documented way nicer #2001
2020-12-04 14:00:49 -05:00
rusefillc
24eff376fe
all triggers should be documented way nicer #2001
2020-12-04 13:54:16 -05:00
rusefillc
59e4e3187b
all triggers should be documented way nicer #2001
2020-12-04 11:58:26 -05:00
rusefillc
d3a21bcb63
6.1 Hemi V8 decoder #2010
2020-12-04 01:02:09 -05:00
rusefillc
eb3dd94390
6.1 Hemi V8 decoder #2010
2020-12-04 00:30:22 -05:00
rusefillc
9a897007c4
FORD ST170 CAM TRIGGER PATTERN fix #2009
2020-12-03 23:54:08 -05:00
rusefillc
c6d49e9621
DAIHATSU 3CYLINDER TRIGGER WHEEL SUPPORT fix #2008
2020-12-03 23:12:30 -05:00
rusefillc
c9a5a41a2f
DAIHATSU 3CYLINDER TRIGGER WHEEL SUPPORT #2008
2020-12-03 21:31:58 -05:00
Matthew Kennedy
bb2208fb52
add timer since last trigger tooth ( #2004 )
...
* add elapsed time to timer
* store trigger time
* fsio method
* don't do a 64b divide
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-03 11:13:45 -05:00
rusefillc
ba0503177c
more dead code
2020-12-03 10:49:20 -05:00
rusefillc
bcd5e029fa
dead code matches Mazda SOHC
2020-12-03 01:36:43 -05:00
rusefillc
238e639c53
dead trigger, this would now be vvt+60/2
2020-12-03 01:22:57 -05:00
rusefillc
7327fd6e6c
all triggers should be documented way nicer #2001
2020-12-02 22:17:38 -05:00
Matthew Kennedy
be71d06dfc
remove ( #1985 )
2020-11-23 20:10:17 -05: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
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
b9c26efd57
fix ( #1863 )
2020-10-07 14:59:24 -04:00
Matthew Kennedy
e112bbd07e
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
060cfbd778
const ref-ify trigger ( #1856 )
...
* const ref-ify
* tests
2020-10-05 14:22:59 -04:00
Matthew Kennedy
60329b55a5
we don't need two loops ( #1855 )
2020-10-05 08:57:00 -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
9808e675f5
Trigger performance: variable gapTrackingLength #1851
...
cool change but looks to have made zero difference
2020-10-04 13:05:49 -04:00
rusefillc
61186a8d80
fixing Kinetis build
2020-10-04 03:04:01 -04:00
rusefillc
e6bac27c70
60/2 perf grab #1850
...
unused parameter
2020-10-04 02:09:12 -04:00
rusefillc
8c32b13567
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
edc8ee7299
60/2 perf grab #1850
2020-10-04 01:26:29 -04:00
rusefillc
149bc309f7
60/2 perf grab #1850
2020-10-04 01:04:15 -04:00
rusefillc
d9102b3c3c
60/2 perf grab #1850
2020-10-04 00:15:40 -04:00
rusefillc
c9bdd59220
new VVT trigger shape? #1847
2020-10-03 10:39:43 -04:00
rusefi
2836954b9c
adding 1+16 trigger
2020-09-28 21:18:47 -04:00
rusefi
bfc9ebd730
removing third copy of same values
2020-09-28 20:58:21 -04:00
rusefi
50ff019711
VVT support for VAG trigger #883
2020-08-29 18:37:13 -04:00
rusefi
b19ffa7075
TriggerConfiguration getPrintPrefix
2020-08-29 17:25:42 -04:00
rusefi
bf2d51b8c3
VVT support for VAG trigger fix #883
2020-08-27 01:01:03 -04:00
rusefi
f7b03d8e6e
common sense change? "should be safe" famous last words
2020-08-27 00:31:59 -04:00
rusefi
ed3eaf319c
VVT support for VAG trigger #883
2020-08-27 00:06:10 -04:00
rusefi
e46681f552
VVT support for VAG trigger #883
2020-08-26 23:35:11 -04:00
rusefi
0992f90f18
VVT support for VAG trigger #883
2020-08-26 20:57:11 -04:00
rusefi
35702163ee
const
2020-08-26 17:37:15 -04:00
rusefi
f268af5165
const
2020-08-26 17:30:13 -04:00
rusefi
22f6063d9f
VVT support for VAG trigger #883
2020-08-25 16:19:23 -04:00
rusefi
5718d93c44
another attempt at dead code
2020-08-25 15:58:56 -04:00
rusefi
b64c9bd9d3
VVT support for VAG trigger #883
2020-08-25 13:14:46 -04:00
rusefi
470a9f5a5a
VVT support for VAG trigger #883
2020-08-25 12:45:18 -04:00
rusefi
536fb52365
oh, here it is
2020-08-25 01:38:56 -04:00
rusefi
1b49c57bc1
VVT support for VAG trigger #883
2020-08-25 01:24:15 -04:00
rusefi
0007927b83
better variable name
2020-08-25 01:07:32 -04:00
rusefi
7d53f5859d
VVT support for VAG trigger #883
2020-08-25 00:59:07 -04:00
rusefi
978c3ff16d
VVT support for VAG trigger #883
...
a bit of dead code?
2020-08-24 02:31:27 -04:00
rusefi
4ccb209df3
VVT support for VAG trigger #883
2020-08-24 02:23:13 -04:00
rusefi
4e333dac1c
VVT support for VAG trigger #883
2020-08-24 02:07:58 -04:00
rusefi
bdbee0d38b
VVT support for VAG trigger #883
2020-08-24 02:01:50 -04:00
rusefi
0f9e8bf83e
VVT support for VAG trigger #883
2020-08-24 01:21:42 -04:00
rusefi
d0705f14ee
Allow negative VVT position feedback #1713
2020-08-23 11:49:46 -04:00