Commit Graph

1207 Commits

Author SHA1 Message Date
rusefi 6fd983e9b1 Lua is new FSIO 2022-04-23 17:21:08 -04:00
rusefi e5d666a968 Lua is new FSIO 2022-04-23 17:02:50 -04:00
David Holdeman 49f8daae14
More untested transmission features (#4093)
* use ISS for gearbox ratio, add gauge for TC ratio

* measure shift time

* add shift time gauge, todo notes for pc

* do conversion in the right direction

* switch to Timer and seconds

* try fixing build

* try fixing build again

* try defines, remove include

* use shift pcs

* add 3-2 pct curve

* control 3-2 solenoid

* move 3-2 to persistent config

* fix param
2022-04-23 07:34:39 -04:00
David Holdeman 1747b6a6e6
Add ISS sensor, rearrange some transmission config (#4089)
* move other solenoids to new dialog

* change name of menu item

* move buttonshift to new dialog

* add ISS config

* add some iss code

* add iss output

* de-init ISS
2022-04-21 09:07:52 -04:00
rusefillc 2cea633e3d also placing view panels next to controls 2022-04-21 00:20:36 -04:00
rusefillc 07037883a1 proper place for generated dialogs in the overall file, also placing view panels next to controls 2022-04-20 23:16:50 -04:00
rusefillc e5009f1492 https://github.com/rusefi/alphax-2chan/issues/50 2022-04-19 19:52:44 -04:00
rusefillc 451b4a766c Three names of the same thing fix #4085 2022-04-19 19:47:43 -04:00
rusefillc a901fa1e5a https://github.com/rusefi/alphax-2chan/issues/50
more progress
2022-04-19 14:33:46 -04:00
rusefillc 0dba7ddd1d https://github.com/rusefi/alphax-2chan/issues/50 2022-04-19 07:59:19 -04:00
David Holdeman 7de7ea6ad0
TCU features and fixes (#4082)
* add tcc pwm freq field

* add pc fields, make trans fields conditional

* make button shift fields conditional, remove duplicates

* add 3-2 solenoid fields

* add PC curves

* try combining tcc curves

* try combining pc curves

* use airmass instead of tps for pc

* reduce airmass axis

* increase axis digits

* duplicate for per shift, change names

* add pc per shift arrays

* try moving tables

* move more tables

* init solenoid pins

* start adding pwm stuff, change some array names

* fix gear issue

* fix multiple shift issue

* fix transmission controllers not working

* fix transmission controllers not working 2

* rearrange and virtual some things

* make getMode const

* fix pwm
2022-04-18 20:09:27 -04:00
rusefillc 218cd70e08 documentation/readbility 2022-04-18 11:05:04 -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
rusefillc 3b0febeade hash poke 2022-04-18 02:02:04 -04:00
rusefillc 59d7a3fce4 poke. looks like hash does not update even while fancy input files are handled as input files and participate in CRC and hash calculation 2022-04-18 01:32:38 -04:00
rusefillc 3d44f6d2c0 logging of live data structs was: data points #3614
alpha version of TS UI
2022-04-17 22:28:36 -04:00
rusefillc fddc2f52cd poke 2022-04-17 20:36:23 -04:00
rusefillc a35af7bd82 logging of live data structs was: data points #3614 2022-04-17 13:02:01 -04:00
rusefillc 480ca8fa8f this would either fix master or not
really time to sleep now
2022-04-17 03:31:43 -04:00
rusefillc fc0f8e7663 logging of live data structs was: data points #3614
on-topic and off-topic progress
2022-04-17 02:42:04 -04:00
Matthew Kennedy 497e7ffe77
allow setting injection phase by start or center of injection (#4068)
* allow SOI/COI

* other change

* renames and simplify

* clean up ownIndex

* double check in spark logic
2022-04-15 10:22:36 -04:00
David Holdeman fe39f58022
Some untested TCC control (#4066)
* rebase

* save changes

* save changes

* fix whitespace

* try enum class

* change field name

* Add TCC pin fields

* add TCC tables

* add a bit of TCC control logic
2022-04-12 19:15:09 -04:00
David Holdeman e427d1dbe7
overhaul some docs surrounding rusefi_config.txt (#4064)
* overhaul some docs surrounding rusefi_config.txt

* move a little bit more from Dev Tips

* reflect change to output_channels.txt
2022-04-11 18:00:08 -04:00
rusefillc 46327c1862 do not control VVT during cranking fix #3443 2022-04-10 19:31:41 -04:00
Matthew Kennedy baef88d1c7
make the vss fliter parameter work again (#4056)
* vss has adjustable filter

* tooltip and validate

* s
2022-04-09 09:00:19 -04:00
Matthew Kennedy f0b810a81c
Gear detection implementation (#4052)
* gear detect improvements

* ui

* ui for gear ratios

* ui

* output channel

* output channels etc

* implement gear detection

* name

* s

* status loop

* missing function

* ui tweaking

* s
2022-04-07 09:21:11 -04:00
David Holdeman f305db2575
Add interface for selecting GearController and TransmissionController classes (#4048)
* save changes

* save changes

* save changes

* fix mistakes

* try adding empty method

* copy simpleTransmissionController to GM 4L6X controller

* Import 4l6x header

* add to makefile

* fix whitespace

* try enum class

* change field name

* change field name in rusefi.input

* check for gear controller mode

* add mode fields to catch if mode was changed
2022-04-06 17:37:30 -04:00
Matthew Kennedy ad368b2031
Gear detection improvements (#4047)
* gear detect improvements

* ui

* ui for gear ratios

* ui
2022-04-06 16:15:58 -04:00
rusefillc 08c80c8035 Gear detection based on RPM to VSS ratio #3779 2022-04-04 20:18:09 -04:00
Matthew Kennedy dfe6bfb8a9
Flex fuel cranking improvements (#4043)
* improve flex cranking

* call it e85

* don't re-warn

* warning name

* ui
2022-04-04 17:41:36 -04:00
Andrey e53e1ca98e trigger help as URL 2022-04-03 18:48:34 -04:00
Andrey 093de78ff3 Proper cam speed labels in triggers #4021 2022-04-03 17:56:47 -04:00
rusefillc 7f7dcd5c16 Proper cam speed labels in triggers #4021 2022-04-03 14:39:57 -04:00
rusefillc 75318803e8 Proper cam speed labels in triggers #4021 2022-04-03 14:06:22 -04:00
Andrey d3c6c5863d Trigger setup in TS is highly confusing: hide operation mode from users? fix #4031 2022-04-03 02:46:00 -04:00
rusefillc be21105b7f Trigger setup in TS is highly confusing: hide operation mode from users? #4031 2022-04-02 22:08:33 -04:00
rusefillc e9aade8219 Trigger setup in TS is highly confusing: hide operation mode from users? #4031 2022-04-02 21:01:29 -04:00
rusefillc 4d92ee1d51 [EPIC] [Feature Request] Transmission Control #1454 2022-03-28 23:00:33 -04:00
Matthew Kennedy f1742c44ff
output channel tweaks (#4023)
* shuffle around output channels

* postState should take a ref

* s

* s

* patch input file

* limits

* accel bad bounds check

* units

* units

* Revert "accel bad bounds check"

This reverts commit b2bb493be331d5d2cf40b9ed01363a53182c883e.

* missed an autoscale
2022-03-24 08:58:55 -04:00
Matthew Kennedy be47bc1b37
aux linear sensors (#4005)
* aux linear sensors

* comment

* kick build

* fix alignment

* fix alignment
2022-03-20 20:13:04 -04:00
rusefillc 49798aa7f0 AlphaX 2chan new EN lines #3990 2022-03-13 11:54:17 -04:00
rusefillc e7f55f3dc6 AlphaX 2chan new EN lines #3990 2022-03-12 10:01:57 -05:00
Andrey G bca63957b1
Test bench: implement injector test for dead time calculation (#3960)
* Add output channel for TestBench iter counter

* Update testBenchIter from runBench

* rusefi.input: testBenchIter gauge

* rusefi.input: initial Injector test dialog
2022-03-08 19:25:58 -06:00
Matthew Kennedy 9c33ba68d2
fix mangled ts (#3974) 2022-03-02 15:03:15 -06:00
Andrey G 7c896fee99
TS: disable ignition and injector test according to cylindersCount (#3966) 2022-02-26 17:35:34 -05:00
rusefillc bd90fe86bb BMW 6HP gatewy #3954 2022-02-25 20:28:09 -05:00
rusefillc 0d66a5873a Lua CAN relay performance #3911 2022-02-10 21:01:15 -05:00
rusefillc 5eeac56f52 per-bus verbose flag 2022-02-10 10:12:48 -05:00
rusefillc ea0d03d846 L9779WD driver L9779 #3768 2022-02-09 08:00:37 -05:00
Matthew Kennedy 70ac0c378b
support lps22 (#3900)
* support lps22

* s

* changelog, UI
2022-02-07 17:09:51 -05:00
rusefi 6fbdafa1ae I2C EEPROM support #3860 2022-02-06 18:58:31 -05:00
rusefillc 42deca0fd0
Main relay shutdown rebase (#3880)
* aggregate

* main relay controller handles delayed shutoff

* main relay controller handles delayed shutdown

Co-authored-by: Matthew Kennedy <matthewkennedy@outlook.com>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-02-02 00:45:11 -05:00
rusefillc deb8225e91 alpha x 2022-02-01 21:50:54 -05:00
Matthew Kennedy c2eab94534
flex cranking math (#3791)
* flex cranking math

* simplify

* s

* simplify
2022-02-01 20:53:14 -05:00
Matthew Kennedy 0514f76899
SD card UI cleanup (#3870)
* dead config bit

* hide sd pin options

* #3868
2022-02-01 15:42:23 -05:00
Matthew Kennedy 40e96a03d5
table for tcharge interpolation (#3855)
* extract getTChargeCoefficient

* new table
2022-01-30 08:45:11 -05:00
Matthew Kennedy 28950acf3e
disable fuel trim shortly after DFCO (#3847)
* vss based dfco

* fix digits while we're here

* fix some other digits for fun

* don't use custom assert

* simplify test

* less than or equal, test vss behavior

* disable closed loop fuel after dfco1

* I can't type

* correct comparison helps

* poke
2022-01-28 21:35:23 -05:00
rusefillc 96626f9214 this stuff is dead 2022-01-28 20:10:05 -05:00
rusefillc acc6bb6e0b this stuff is dead 2022-01-28 19:52:12 -05:00
Matthew Kennedy 62794ba105
complex wall wetting model (#3849)
* extract logic

* extract interface

* explicitly test wall fuel

* complex wall model tables

* fix unused chunk

* defaults

* doesn't like constexpr scaled_channel
2022-01-28 00:32:36 -05:00
rusefillc 146d386d4e pedal calibration 2022-01-27 20:10:55 -05:00
rusefillc 1cf898e6e2 reducing magic constants 2022-01-27 17:39:46 -05:00
Matthew Kennedy 2444090933
vss based dfco (#3845)
* vss based dfco

* fix digits while we're here

* fix some other digits for fun

* don't use custom assert

* simplify test

* less than or equal, test vss behavior

* even better than comments are tooltips
2022-01-27 14:05:18 -05:00
Matthew Kennedy 966e51cbc6
more tps accel data (#3844) 2022-01-27 07:46:13 -05:00
Matthew Kennedy 717d931e78
refactor decel fuel cut (#3830)
* refactor dfco

* s

* output channel logs dfco

* slightly cheeky comment
2022-01-23 19:44:41 -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
Matthew Kennedy 697846413d
Raw map and ego gauges (#3822)
* raw afr and map

* gauges

* s

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-01-21 15:53:16 -05:00
Andrey 506cf9b746 do not control VVT during cranking #3443 2022-01-20 20:28:51 -05:00
Matthew Kennedy 76fdb4063e
XY Idle VE Table (#3781)
* config & ui

* implement

* test idle VE switching behavior

* use the interface where we can

* s

* re-bump flash version
2022-01-20 14:08:54 -05:00
rusefi 974900ca6b baro L&F 2022-01-19 16:10:20 -05:00
Matthew Kennedy 07024f4c3b
add option to always use instant RPM (#3813)
* option to always use instant RPM

* duh
2022-01-19 07:34:22 -05:00
rusefillc 48239c002e Bosch Quick Start on B6 Passat is confused about phase #3812
preparation
2022-01-19 00:48:39 -05:00
rusefillc 64387689ff On m_event vs lobe vs scheduling #3804 2022-01-18 00:45:24 -05:00
rusefillc 5e2ad39d91 GDI Epic #1448 2022-01-18 00:27:20 -05:00
rusefillc 54d19965da trigger gauges 2022-01-16 15:53:27 -05:00
rusefi 743aaf23e6 wow I did not drink today yet how comes?! 2022-01-15 20:00:39 -05:00
rusefillc d2245c1c73 replace speed sensor gear ratio fix #3793 2022-01-15 18:02:37 -05:00
rusefillc e87c96b0e9 Gear detection based on RPM to VSS ratio #3779 2022-01-15 17:30:08 -05:00
rusefillc e4043cacda Gear detection based on RPM to VSS ratio #3779 2022-01-14 21:32:46 -05:00
rusefillc a31b56c1e0 Gear detection based on RPM to VSS ratio #3779 2022-01-13 22:32:21 -05:00
Matthew Kennedy 7d341cfc9d
improve maf output channels and logging (#3743)
* maf channels

* s

* binary log

* if only I could type

* can

* instant RPM too

* s

* test

* graceful zero rpm

* test works

* float near
2022-01-12 15:41:35 -05:00
rusefillc a2844a2d37 limp ClearReason 2022-01-08 22:52:45 -05:00
rusefillc 177a5faa63 limp ClearReason 2022-01-08 22:13:20 -05:00
rusefi ec281d4e35 some dead stuff & minor progress 2022-01-08 20:35:12 -05:00
rusefillc 2756742898 AlphaX 2022-01-08 20:16:01 -05:00
rusefi 1a8b6d24fc disablePrimaryUart for MRE for GDI 2022-01-08 19:38:02 -05:00
Andrey G e3ece9ea34
Add settings for Stepper driven by Push-Pull outputs (#3749)
With no H-bridge and no special stepper IC
2022-01-06 19:34:20 -05:00
Scott Smith 83d6919c62
GDI/HPFP: Tunerstudio config params (#3735) 2022-01-02 21:26:43 -05:00
rusefillc 6eb438acd6 why so many channels are hidden in debug ? #3614 2022-01-02 02:04:25 -05:00
rusefillc 95136893de GDI Epic #1448 2022-01-01 17:18:11 -05:00
Matthew Kennedy 338c14c3a8
cylinder ignition trim (#3709)
* cylinder ignition trim

* changelog

* changelog

* test

* move UI
2022-01-01 15:47:47 -05:00
Matthew Kennedy ab3e3ac83f
hook up fuel trims (#3715)
* hook up fuel trims

* pass all the params

* store per-cylinder fuel mass directly

* main trigger callback only touches per-cylinder, no banks!

* test test test test

* move UI to happy land

* changelog
2022-01-01 02:19:59 -05:00
rusefillc 63776b1a06 GDI Epic #1448
fixing odd typo & improving L&F
2021-12-31 02:17:02 -05:00
rusefi ca445c9dc8 GDI Epic #1448 2021-12-30 23:47:27 -05:00
rusefillc c664ea2f0a GDI Epic #1448 2021-12-30 22:06:52 -05:00
Matthew Kennedy 6b6fd5e6e8
fix dual CAN init, update UI (#3719)
* CAN init sequence

* config & UI cleanup

* ui

* simplify
2021-12-24 23:33:54 -05:00
rusefi 7b0a3174a1 Second CAN #3687 2021-12-22 11:03:39 -05:00
Matthew Kennedy c176bbebc1
ui & config for fuel/ign trim tables (#3704)
* ui & config

* bump flash version

* compaction

* s

* make things happy

* fsio too

* OK, well those defaults were insane

* b

* why are these defaults insane

* adjust cylinder offset ui

* s

* cleanup
2021-12-20 21:58:53 -05:00
rusefillc 2db6ea3622 torque 2021-12-20 13:54:37 -05:00
rusefillc c1852eb287 TS Bench test problem - Coil 1 test error fix #3490 2021-12-18 18:17:45 -05:00
rusefillc f685bab9eb live data for wastegate and launch control #3588 2021-12-16 16:19:33 -05:00
Matthew Kennedy 479ae44cd7
remove etb status option (#3695)
* remove

* ui

* settings cpp
2021-12-15 08:20:14 -05:00
Matthew Kennedy 8f7344079e
charge temperature estimation UI help (#3693)
* ui

* those too

* format help

* s
2021-12-14 15:44:20 -04:00
rusefillc 17879ef7de MAP phase sensing #3544 2021-12-09 22:16:42 -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
rusefillc b4c07798b5 MAP phase sensing #3544 2021-12-07 08:57:23 -05:00
rusefillc 1dd3370b56 https://rusefi.com/forum/viewtopic.php?f=18&t=2236 2021-12-06 21:31:49 -05:00
rusefillc f0184caa5a https://rusefi.com/forum/viewtopic.php?f=18&t=2236 2021-12-06 20:17:26 -05:00
rusefillc f826fe13aa MAP phase sensing #3544
trigger sync better gauges/logging
2021-12-06 17:04:05 -05:00
rusefillc 934b005acb trigger sync better gauges/logging 2021-12-06 13:08:41 -05:00
rusefillc f1135fe051 CAN stats gauges 2021-12-06 00:22:50 -05:00
Matthew Kennedy 7dc20b368a
Alternator controller is engine module (#3663)
* alternator is engine module

* user can't set pid period
2021-12-05 18:33:50 -05:00
rusefillc 2f45ed205c MAP phase sensing #3544
option to look for high and low peaks
2021-12-05 14:25:26 -05:00
rusefillc 5896a5d8c5 MAP phase sensing #3544
need to skip
2021-12-04 17:49:04 -05:00
rusefillc 004f28a60a MAP phase sensing #3544 2021-12-04 17:19:35 -05:00
rusefillc 00c9131d86 MAP phase sensing #3544 2021-12-03 21:09:00 -05:00
rusefillc 6d4b1e6020 proteus to have enlarged Lua
one step back
2021-11-30 22:35:29 -05:00
rusefillc b03445b421 proteus to have enlarged Lua
one step back
2021-11-30 22:26:36 -05:00
Andrey f8e9a1a180 dead line 2021-11-30 20:44:56 -05:00
rusefillc 4e585df06f target gauge 2021-11-30 17:48:53 -05:00
rusefillc fa6352c08d why so many channels are hidden in debug ? #3614 2021-11-29 11:03:51 -05:00
rusefillc aca89fc778 why so many channels are hidden in debug ? #3614 2021-11-28 23:11:26 -05:00
rusefillc 059093848a automation around outputs section #197
datalog toolset
2021-11-28 18:06:02 -05:00
rusefillc 6a9a267314 automation around outputs section #197
datalog toolset
2021-11-28 17:04:46 -05:00
rusefillc 27e9540e78 automation around outputs section #197
datalog toolset
2021-11-28 16:36:30 -05:00
rusefillc f8576170f6 automation around outputs section #197
datalog toolset
2021-11-28 16:10:09 -05:00
Matthew Kennedy 4537018927
fix (#3629) 2021-11-28 15:36:36 -05:00
Matthew Kennedy a071e2a168
verbose CAN bits picker (#3628)
* verbose bits picker

* s
2021-11-28 14:59:26 -05:00
rusefillc 1bbe587716 automation around outputs section #197
datalog toolset
2021-11-28 14:40:16 -05:00
rusefillc 30ddb4fd22 automation around outputs section #197
datalog toolset
2021-11-28 14:10:13 -05:00
rusefillc d76d0f3326 automation around outputs section #197
refactoring: extract helper class & poke
2021-11-28 13:13:13 -05:00
rusefillc 280b1630b6 automation around outputs section #197 2021-11-27 19:23:35 -05:00
rusefillc d068260edf automation around outputs section #197 2021-11-27 18:34:47 -05:00
rusefillc c4f973c2e2 automation around outputs section #197 2021-11-27 14:08:09 -05:00
rusefillc edb10af9f4 automation around outputs section #197 2021-11-27 13:36:37 -05:00
rusefillc 1cbdd226d5 automation around outputs section #197 2021-11-27 13:05:56 -05:00
rusefillc 412d804350 automation around outputs section #197 2021-11-27 12:28:59 -05:00
rusefillc bd3cd07153 automation around outputs section #197 2021-11-27 10:55:24 -05:00
Matthew Kennedy d5363b814a
better VSS configuration (#3542)
* vss uses real values

* some defaults

* test and correct math

* km, not miles!

* comment

* tooltip

* that macro went away

* 100hz and default settings gives 9kph

* changelog

* order of operations safety

* make the test like the pwm test

* housekeeping

* this is why we need sensor automation

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-27 08:49:07 -05:00
rusefillc 0b5a9fa1db automation around outputs section #197 2021-11-27 01:13:01 -05:00
rusefillc 650527b1af automation around outputs section #197 2021-11-27 00:36:14 -05:00
rusefillc eb2045f02b automation around outputs section #197 2021-11-26 21:54:31 -05:00
rusefillc d630e82b60 automation around outputs section #197 2021-11-26 21:34:05 -05:00
Matthew Kennedy f8403543d6
wall fuel tweaks (#3617) 2021-11-25 18:45:44 -05:00
Andrey 1f019c434e MAP phase sensing #3544 2021-11-24 21:28:49 -05:00
Matthew Kennedy 09bf989995
map averaging usability (#3603) 2021-11-24 14:39:54 -05:00
rusefillc 446252d77d MAP phase sensing #3544 2021-11-24 14:26:41 -05:00
rusefillc a369e7e3d3 unusedLogFormat 2021-11-22 13:37:06 -05:00
rusefillc 54a9b62de1 automation around outputs section #197
packing & making my job easier
2021-11-17 23:22:08 -05:00
Andrey 0cc88ec6e2 Not all launch control options are used #3554 2021-11-15 21:13:01 -05:00