rusefi
ec77afeaa0
reducing ugly
2022-11-06 20:47:57 -05:00
Andrey
77a3f5d795
trigger refactoring: instance RPM #4740
2022-11-06 11:56:18 -05:00
Andrey
83e736b06a
trigger refactoring: instance RPM #4740
2022-11-06 11:47:23 -05:00
rusefillc
e3fd84ed08
minor trigger refactoring
2022-11-06 00:32:38 -04:00
Matthew Kennedy
940e0dc369
require ignition on for firing ( #4628 )
...
* require ignition on for firing
* too much havoc for a unit test
* patch up references
* last one
* fix changelog mangling
* fix the changelog template too
* bad merge
* fix the template again
* s
* fake battery voltage on hw ci
* ugh merge
* ugh merge
2022-10-04 20:36:03 -04:00
rusefi
529fb35c66
need Proteus QC
2022-10-01 22:00:25 -04:00
Andrey
baaec6a603
refactoring: encapsulation
2022-09-28 22:42:08 -04:00
Andrey
2ec9cca5e2
Honda K cam wheels #3405
2022-09-24 23:49:41 -04:00
Andrey
61cfff1e9e
K progress - just a rename
2022-09-24 23:25:36 -04:00
Matthew Kennedy
dfe1b47b4d
remove ignitionPin ( #4608 )
...
* remove ignitionPin
* now that's gone
* BMW test
2022-09-23 17:30:10 -04:00
rusefillc
61134b452a
tear down Engine god object #4511
...
oh I hope this ends well
2022-09-15 23:41:06 -04:00
rusefillc
ec0e567989
tear down Engine god object #4511
2022-09-15 21:46:01 -04:00
Andrey
0c87bb7260
deep rabbit holes are the best ones!
...
refactoring: encapsulation
2022-09-14 02:45:31 -04:00
Andrey
0e91914266
deep rabbit holes are the best ones!
...
refactoring: encapsulation
2022-09-14 02:35:55 -04:00
Andrey
663c39afdc
deep rabbit holes are the best ones!
...
refactoring: encapsulation
2022-09-14 02:24:41 -04:00
Andrey
2c0ce0ec7d
deep rabbit holes are the best ones!
...
refactoring: encapsulation
2022-09-14 02:17:04 -04:00
Andrey
12d857b99c
deep rabbit holes are the best ones!
...
refactoring: encapsulation
2022-09-14 02:06:52 -04:00
Andrey
6cdb0dc0af
deep rabbit holes are the best ones!
...
refactoring: encapsulation
2022-09-14 01:53:17 -04:00
Andrey
82cda62bac
inline method to reduce confusion
2022-09-14 01:34:52 -04:00
Andrey G
69d9716fa6
tle8888 dead code ( #4568 )
2022-09-12 18:54:29 -04:00
rusefillc
5c8d44eec7
at the moment efiWatchdog always fails on enable, would this fix?
2022-09-11 21:31:42 -04:00
rusefi
88011024d9
at the moment efiWatchdog always fails on enable, would this fix?
2022-09-11 21:15:25 -04:00
Andrey G
55c1f53c75
dead code, reduce typedefs ( #4566 )
...
* Do lightweight checks first
* Dead getTimeIgnitionSeconds()
Dead since 81fffe87b7
* Get rid of efitime_t.
Purpose are not clear. Use efitick_t where ticks are used,
use efitimeus_t for uS, use efitimems_t or efitimems64_t for mS.
* Fix unit tests
* Fix misc: stm32f1_test_project
2022-09-11 16:08:11 -04:00
Andrey G
91d4844e38
time routines refactor ( #4563 )
...
* Extract time helpers from engine_controller_misc to efitime.cpp
* Rename currentTimeMillis() to getTimeNowMs()
We have getTimeNowNt(), getTimeNowUs(), currentTimeMillis() and getTimeNowSeconds()
Align a bit.
find . -type f -name '*.c*' -exec sed -i 's/currentTimeMillis/getTimeNowMs/g' {} \;
* Rename getTimeNowSeconds() to getTimeNowS()
To align with Nt, Us, Ms versions.
* Some comments about getTimeNowLowerNt()
2022-09-11 13:06:03 -04:00
Andrey G
19226cb656
efiWatchdog: avoid converting time to float ( #4562 )
...
https://stackoverflow.com/questions/68690961/why-does-converting-int-to-float-lose-precision-in-c-programming-language
2022-09-11 05:46:55 -04:00
rusefillc
2a05a31550
refactoring: type safety
2022-09-11 03:46:50 -04:00
rusefillc
541cd5caee
Proteus with SD card outside of vehicle looses a second #4557
...
message correction
2022-09-10 11:43:25 -04:00
rusefillc
3f6d05dce0
Proteus with SD card outside of vehicle looses a second #4557
2022-09-09 20:17:02 -04:00
rusefillc
8d770daca8
"Blip" with trigger error on several boards #4552
...
exploratory watchdog
2022-09-09 19:21:29 -04:00
rusefillc
a3d86c61f2
"Blip" with trigger error on several boards #4552
...
exploratory watchdog
2022-09-09 18:27:16 -04:00
rusefillc
45eaa0546c
refactoring: better method name
2022-09-09 18:02:38 -04:00
Andrey
52869d63bb
tear down Engine god object #4511
...
just trying different things
2022-09-07 20:25:49 -04:00
Andrey
6e8d248408
brutal encapsulation
2022-09-07 19:37:11 -04:00
Andrey
ab4b451195
os_access.h dead?
2022-09-07 15:56:45 -04:00
Andrey
4934d76d88
tear down Engine god object #4511
...
just trying different things
2022-09-05 04:24:17 -04:00
Andrey
f1f447df45
tear down Engine god object #4511
...
just trying different things
2022-09-05 03:38:44 -04:00
Andrey
99d8801dc6
tear down Engine god object #4511
...
just trying different things
2022-09-05 02:59:38 -04:00
Andrey
268a5c7964
tear down Engine god object #4511
...
just trying different things
2022-09-05 02:44:06 -04:00
Andrey
6d72805a56
tear down Engine god object #4511
...
just trying different things
2022-09-05 02:28:46 -04:00
Andrey
c1b218b772
refactoring: let's use different names for different things
2022-09-05 01:16:24 -04:00
Matthew Kennedy
9407150544
more granular trigger error messages ( #4526 )
...
* granular trigger error messages
* adjust test expectations
* explicitly test behavior
2022-09-04 09:15:24 -04:00
Andrey
6b4e6c8169
tear down Engine god object #4511
...
just trying different things
2022-09-03 11:07:26 -04:00
Andrey
da66fa055c
refactoring: enum name clean-up
2022-09-01 00:23:33 -04:00
Matthew Kennedy
ca4936d3fe
rename and fix skyactiv cam mode ( #4505 )
2022-08-31 22:12:45 -04:00
rusefillc
deba48e13a
TT_VVT_MAZDA_MYSTERY
2022-08-28 22:57:44 -04:00
rusefillc
172f054d25
separate atomic change ( #4494 )
...
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-08-27 22:09:54 -04:00
rusefillc
67055c69bf
progress or maybe even a fix of logging?
2022-08-25 22:24:35 -04:00
rusefillc
09ec99f192
Idle air add via Lua fix #4465
...
AddressSanitizer being useful?
2022-08-21 00:58:59 -04:00
rusefillc
6d634e3c6a
Idle air add via Lua fix #4465
2022-08-21 00:32:34 -04:00
Matthew Kennedy
165e5bb869
misc fixes ( #4411 )
...
* fix warnings
* break to debugger in case of panic
* move the check
* s
2022-08-02 12:19:50 -04:00
rusefillc
9b83ee7d6e
cherry pick https://github.com/rusefi/rusefi/pull/4365
2022-07-21 15:26:41 -04:00
rusefillc
975329fcc7
Detail on how to set up iDrive or equivalent CAN button control #226
...
boost lua
2022-07-14 14:04:21 -04:00
rusefillc
39df02fe35
Detail on how to set up iDrive or equivalent CAN button control #226
...
boost lua
2022-07-14 13:03:08 -04:00
rusefillc
cad14d6541
#4308 progress
2022-07-14 12:36:55 -04:00
rusefillc
67ec949eb6
Lua A/C Input #4333
2022-07-08 00:51:53 -04:00
rusefillc
483395fa2e
https://github.com/rusefi/rusefi_documentation/issues/226 ( #4306 )
...
* https://github.com/rusefi/rusefi_documentation/issues/226
* https://github.com/rusefi/rusefi_documentation/issues/226
* https://github.com/rusefi/rusefi_documentation/issues/226
* https://github.com/rusefi/rusefi_documentation/issues/226
* https://github.com/rusefi/rusefi_documentation/issues/226
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-06-29 23:34:00 -04:00
rusefillc
f7ecebaa64
logging of live data structs was: data points #3614
2022-06-29 02:37:24 -04:00
Matthew Kennedy
9d62aeb81f
force o2 heating ( #4275 )
2022-06-23 14:32:34 -04:00
rusefi
a552d58d42
verbose trigger sync should reuse engineSnifferRpmThreshold #4259
...
reducing complexity
2022-06-18 14:17:36 -04:00
Matthew Kennedy
932f5e1f30
cam/crank sync improvements ( #4152 )
...
* clarify getOperationMode
* wait for phase synchronize to transition to sequential mode
* one test
* encapsulate vvtSyncCounter
* test
* Add option to stop VVT sync above some RPM
* getOrZero
* Revert "synchronized Phase handling improvements fix #4099"
This reverts commit 32d46d1f09
.
* Revert "m_hasSynchronizedSymmetrical handling improvements #4099"
This reverts commit d5e131b1d0
.
* remove synchronizedPhase
* only crank needs this
* changelog
* needsDisambiguation()
* test
* s
* bad merge
* put the timer back
* s
* s
* changelog
* test for new behavior
* correct parameter order
* spelling
* s
* s
* s
* tests merge happy
* bad merge
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-06-09 17:21:22 -04:00
Matthew Kennedy
c0d8cbfef4
Trigger cleanup init ( #4222 )
...
* extra parameter
* name decoders in constructor
* s
2022-06-01 00:55:34 -04:00
Matthew Kennedy
f945e6efc9
trigger configuration refactoring for clarity ( #4212 )
...
* This field was ignored.
* move pad out
* gone
* make trigger configuration a little clearer
* even simpler!
* format
* test fix
2022-05-30 19:36:47 -04:00
Matthew Kennedy
170d574a5d
move logic in to trigger decoder ( #4162 )
...
* move logic in to trigger decoder
* status loop
* minor cleanup
* s
2022-05-10 23:55:28 +03:00
Matthew Kennedy
d4509cab8a
TriggerState -> TriggerDecoder ( #4157 )
2022-05-10 11:41:39 +03:00
Matthew Kennedy
76ccb19453
clarify doesTriggerImplyOperationMode ( #4153 )
2022-05-09 15:28:30 -04:00
rusefillc
2132cec3fc
Remove value copy from controller into outputChannels #4095
2022-05-09 06:12:17 -04:00
Matthew Kennedy
bc6a87cadc
allow enum_class in rusefi_hw_enums.h ( #4104 )
...
* make things c++ friendly
* install various canaries in coal mines
* using is much clearer than typedef
* fixing builds
* lps25
* trigger includes were a mess
* c -> c++ cleanup
* os util
* why did so many include os_util.h?
* fwd declare
* cypress/kinetis
* s
* eg33 happy
* happy sim
* cypress usb
* pch
* cypress
* doesn't need to include all that
* h7
2022-04-25 20:38:16 -04:00
Matthew Kennedy
16de438ab8
knock threshold table fix ( #4077 )
...
* fix knock threshold table
* defaults
* knock controller is engine module
* testable
* test builds
* knock tests work
* s
* format
* everyone loves changelogs
2022-04-18 08:03:16 -04:00
Matthew Kennedy
92eab7f3ba
check voltage instead of temperature ( #4062 )
2022-04-10 17:41:41 -04:00
rusefillc
19007ade64
MRE QC build broken #4059
2022-04-10 15:48:35 -04:00
rusefi
155b3ec8bb
MRE QC build broken fix #4059
...
nasty work-around
2022-04-09 19:13:55 -04:00
rusefillc
e1235c4f2e
Air Conditioning Improvements #4054
2022-04-09 00:26:52 -04:00
rusefillc
e631988b22
Proper cam speed labels in triggers #4021
2022-04-03 12:22:47 -04:00
rusefillc
291d90ff48
Proper cam speed labels in triggers #4021
...
i cannot explain this since line so let's remove it
2022-04-03 12:15:19 -04:00
Andrey
204ac3961b
Trigger setup in TS is highly confusing: hide operation mode from users? #4031
...
WOW it works?!
2022-04-03 02:30:43 -04:00
Andrey
9d335c1261
Trigger setup in TS is highly confusing: hide operation mode from users? #4031
2022-04-03 01:38:52 -04:00
rusefillc
6b5747d4c8
refactoring: method rename
2022-04-02 21:01:29 -04:00
Andrey
b3fdd790b5
new VVT trigger shape? #1847
2022-03-22 06:34:22 -04:00
Matthew Kennedy
f742ae8b7e
limp mangaer handles more stuff ( #3983 )
2022-03-20 09:28:17 -04:00
Andrey
402f36aad6
Mitsubishi 3A92 Support - 3 cylinder #4011
2022-03-19 22:06:19 -04:00
Matthew Kennedy
1af68ff30b
fix gap override logic ( #3946 )
2022-02-18 17:13:45 -08:00
Matthew Kennedy
40d16291b0
Remove fsio part 2 ( #3876 )
...
* dead config stuff
* fsio state
* remove tests
* getEngineValue
* put part back
2022-02-02 00:49:44 -05:00
rusefillc
751355a04b
Limp shutdown rebase ( #3879 )
...
* limp manager handles engine stop
* use timer
* dead relevant fsio
* this stuff needs its own ticket
* if we can comment out 'business logic' and tests do not fail it's not a great sign :(
Co-authored-by: Matthew Kennedy <matthewkennedy@outlook.com>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-02-01 20:47:17 -05:00
Matthew Kennedy
a718f3a30a
Remove fsio part 1 ( #3871 )
...
* dead includes
* move last logic out of fsio
* dead functions
2022-02-01 15:42:04 -05:00
rusefillc
1d64929f33
Remove Miata MX5 NB1 trigger fix #3488
2022-01-31 18:20:43 -05:00
Matthew Kennedy
b5232ab5e6
decouple TPS accel enrichment from trigger ( #3825 )
...
* move call site
* move thresholding out of fast path
* adjust config
* test
2022-01-23 15:31:39 -05:00
Andrey
e55eb28086
migrating to SensorType::Rpm API
2022-01-20 22:42:13 -05:00
rusefillc
bc66096574
Better handling of RPM during stop of cranking #3803
...
refactoring: reusing existing method
2022-01-17 21:00:49 -05:00
rusefillc
240c6fe8b6
GDI red FATAL led on cranking fix #3766
2022-01-12 01:01:33 -05:00
rusefillc
6ee0a55eaf
RE usability: live data for idle controller
2022-01-10 19:48:58 -05:00
Matthew Kennedy
d5c4b79b1a
Nb2 crank sync special case ( #3727 )
...
* extract isSyncPoint
* test because why not
* check vvt resync nb2
* custom nb decoder
* test only resyncs once!
* good job valgrind, you found a bug!
2021-12-31 15:47:25 -05:00
Matthew Kennedy
95ad75318d
improved noFiringUntilVvtSync logic ( #3696 )
...
* s
* poke
* poke again for science
* kick for science
* kick
* kick
* comment kick
* s
* don't try to compare the array decay pointer to 0 (!)
* collateral damage
* adjust miata sync
* reset trigger states correctly on engine stop
* s
* nissan MR too
2021-12-27 12:09:38 -05:00
rusefillc
8bc542b40b
https://github.com/rusefi/hellen154hyundai/issues/49
2021-12-17 16:39:12 -05:00
rusefillc
4292c2fb1d
MAP phase sensing fix #3544
...
removing dead implementation
2021-12-16 21:28:27 -05:00
rusefillc
31ed18fe84
clutch input via CAN #3605
2021-12-15 19:20:07 -05:00
rusefillc
b3a240f893
clutch input via CAN #3605
2021-12-15 17:48:21 -05:00
Matthew Kennedy
4148ee76bf
smarter priming logic ( #3674 )
...
* ignition controller detects rising edge on voltage
* update test
* comment
* ignore negative transients
* tweak
* test
* priming happens on ignition-on
* priming has its own scheduling
* config & UI
* dead config
* implementation
* look, the test caught a bug
* keep the watchdog happy
* bad merge
* changelog
* easier to read the test
* test naming
2021-12-08 16:20:19 -05:00
Andrey
940b04ab24
Let's always have TS structure so that unit tests can check values in outputChannels, kind of making outputChannels a god dump for state but whatever since Live View is coming
2021-12-07 20:18:47 -05:00
Andrey
e9d16bfa13
MAP phase sensing #3544
...
new implementation
2021-12-07 20:00:50 -05:00
Andrei
99daecb7c7
better ignition_voltage_detected message
2021-12-04 01:41:25 -05:00