Commit Graph

754 Commits

Author SHA1 Message Date
Matthew Kennedy 6534650105 Fix autotune in AFR mode: add "gas scale AFR" output channels & gauges 2023-10-03 18:29:17 -07:00
Matthew Kennedy d98c6a9fc3 odometry output channels 2023-10-02 22:25:35 -07:00
Matthew Kennedy 4b354f047b
trip odometer (#260) 2023-09-25 13:16:17 -07:00
Matthew Kennedy 2346086b06
knock live data (#261)
* Move knock data to knock controller

* appease tsConfigVersion

* make reapply logic easier to read
2023-09-25 11:06:48 -07:00
Matthew Kennedy 0bd9bff4b4 cdp/tip output channels #250 2023-09-18 02:08:54 -07:00
Matthew Kennedy 5ca06de55d new temp sensor output channels #250 2023-09-18 01:54:49 -07:00
Matthew Kennedy 7ff224da12 Revert "debug channels cleanup"
This reverts commit 3b0d033dcd.
2023-09-13 15:40:21 -07:00
Matthew Kennedy 3b0d033dcd debug channels cleanup 2023-09-13 15:34:17 -07:00
Matthew Kennedy 3df1ee9c5f debug channel cleanups 2023-09-13 12:23:27 -07:00
Matthew Kennedy 565a5996c8 live data injector model 2023-07-01 20:51:01 -07:00
Matthew Kennedy 9fde5828da remove config lookup entirely 2023-06-05 00:11:06 -07:00
Matthew Kennedy 823830a613 add weak linked functions for LED pin fetching 2023-06-04 23:34:31 -07:00
Matthew Kennedy 75e57b1821 shared define for all LED pin mode 2023-06-04 23:32:14 -07:00
Matthew Kennedy 41339c5418 change to log base timing 2023-05-31 11:22:41 -07:00
Matthew Kennedy 18493f9083 TPS AE log cleanup 2023-05-05 02:34:48 -07:00
Matthew Kennedy a8fef36342 more log fields cleanup, lots of duplicates around fuel logic #98 2023-05-05 02:09:42 -07:00
Matthew Kennedy d0c645bad5 Add gego channel to make VE analyze happy #82 2023-05-04 14:22:36 -07:00
Matthew Kennedy c3092cb1ab cool, logging duplicate stuff! #98 2023-05-04 14:00:18 -07:00
Matthew Kennedy 3044589613 apparently we duplicated idle position, field renaming #98 2023-05-04 13:35:17 -07:00
Matthew Kennedy d5f9479f28
ObdCode is enum class (#77)
* change ObdCode to enum class builds firmware

* test builds

* don't need this line at all

* can we go down to uint16_t?
2023-04-12 23:44:33 -07:00
Matthew Kennedy 82794403f8 gear detection in to the sensor model 2023-04-01 23:08:06 -07:00
Matthew Kennedy f090a97b0b remove specs_s struct, flatten config 2023-03-27 00:58:18 -07:00
Matthew Kennedy df03f3c536
Fix afr dropdown, switch AFR to sensor model (#62)
* move presets to ini, like clt/iat

* call deinit

* init lambda using proper sensors

* raw output channel

* init lambda test

* ve blend 1 should use bias table 1, good eye @nmstec
2023-03-09 11:25:30 -08:00
Matthew Kennedy 68f3b69a2e misc cleanups 2023-03-06 01:05:48 -08:00
Matthew Kennedy cd6b770945 is this just dead? 2023-03-03 02:05:50 -08:00
Matthew Kennedy fbb90f2c04
use shared txt instead of parsing full rusefi_config (#59) 2023-03-02 11:52:36 -08:00
Matthew Kennedy ecaaff544b de-pointerize outputMode #49 2023-02-25 00:31:12 -08:00
Matthew Kennedy bc0444acdb switch to use gitversion.h 2023-02-22 15:39:27 -08:00
Matthew Kennedy 5d7a30ce2b no qc 2023-02-22 14:53:31 -08:00
Matthew Kennedy bc4d1127bc etb style idle valve 2023-02-20 22:56:26 -08:00
Matthew Kennedy 495b5aebc7 mcp3208, hip9011 2023-02-20 22:40:31 -08:00
Matthew Kennedy 0e12622371 cdm ion 2023-02-20 22:37:14 -08:00
Matthew Kennedy 666a41e496 hip9011 2023-02-20 22:29:48 -08:00
Matthew Kennedy fd09ad7b4f cj125 2023-02-20 22:21:52 -08:00
Matthew Kennedy 1370d96112 lcd & joystick 2023-02-20 21:57:53 -08:00
Matthew Kennedy 61c17791b8 joystick, lcd 2023-02-20 21:54:10 -08:00
Andrey b6ccfadca1 Nick wonders if DC wastegate is still FUBAR #5075 2023-02-13 18:27:58 -05:00
Andrey 85766f75f9 Nick wonders if DC wastegate is still FUBAR #5075 2023-02-13 18:26:22 -05:00
Andrey e1af0aec18 logging of live data structs was: data points, we are moving away from debug mode #3614 2023-01-14 22:38:38 -05:00
Andrey e57403618a totalFuel and totalIgnition correction gauges in Tunerstudio #4955 2023-01-14 15:33:17 -05:00
rusefillc b7409470f9 guards 2022-12-17 15:23:32 -05:00
rusefillc d619d3df25 reducing aux/lua mess 2022-12-04 12:38:58 -05:00
rusefillc c01ffa3716 ETB overheats due to constant isTpsError true/false/true/false jitter #4832
refactoring: extract method
2022-11-27 18:44:44 -05:00
rusefillc c729b10bbe refactoring: constexpr fuel computer (#4830)
* refactoring: constexpr fuel computer

* refactoring: constexpr fuel computer

* refactoring: constexpr fuel computer

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-11-26 12:25:04 -05:00
Andrey 65f5c00616 trigger refactoring: instance RPM #4740 2022-11-06 11:56:18 -05:00
Matthew Kennedy 32b170810e duplicate log field names (#4730)
* remove duplicate target lambda/afr

* names on fuel computer

* remove more copies

* sensor.java

* everybody loves hard dependencies on generated fields

* target afr gauge fix

* test

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-11-05 20:23:09 -04:00
rusefillc 1ae30673ce target lambda & afr log fields broken #4727 2022-11-02 22:37:52 -04:00
rusefillc 661b12aa69 target lambda & afr log fields broken #4727 2022-11-02 22:35:40 -04:00
rusefillc 955a90327d target lambda & afr log fields broken #4727 2022-11-02 22:17:00 -04:00
Matthew Kennedy ede3df75f5 dual MAF sensors (#4697)
* add second MAF

* output channesl

* move them around

* ok let's try at the very end

* is the logic wrong, or something else?

* ooh it's the sensor order
2022-10-24 12:41:05 -04:00
rusefillc aedfc0c093 Lua aux gauge #4672 2022-10-18 15:52:32 -04:00
rusefillc 9bf4622ddc Lua aux gauge #4672 2022-10-18 15:25:47 -04:00
rusefillc 69a503a0ee Lua aux gauge #4672 2022-10-17 21:21:23 -04:00
rusefillc 367d2ec324 Lua aux gauge #4672 2022-10-17 20:01:46 -04:00
rusefillc fa0b07bf20 startStopStateToggleCounter to live data 2022-10-06 18:55:29 -04:00
Andrey 3e66120aed livedata has replaced that legacy command-line approach 2022-09-28 19:46:47 -04:00
Matthew Kennedy 91566b86d3 simulator reads/writes configuration (#4605)
* simulator reads/writes configuration

* c_str

* include order
2022-09-23 08:47:50 -04:00
rusefillc 3a55a2d89a auxSpeed1 2022-09-20 23:00:42 -04:00
Matthew Kennedy e737141a6f add fuel/spark cut codes to TS indicators (#4592)
* add fuel/spark cut codes to TS indicators

* fix list

* only set clearReason if not cleared
2022-09-19 22:01:03 -04:00
rusefillc 672f0b8acc mapFast into logs 2022-09-15 14:55:49 -04:00
Matthew Kennedy 3358cdab11 resurrect EFI_CLOCK_LOCKS (#4572)
* resurrect EFI_CLOCK_LOCKS

* missing extern

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-09-13 14:07:25 -04:00
rusefillc 5da9012d70 moving SD logic to better source 2022-09-12 20:39:43 -04:00
Andrey G 1ca5988877 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 8fd5e46472 refactoring: reducing outputChannels copy 2022-09-04 22:38:05 -04:00
Andrey f008a98b94 refactoring: reducing outputChannels copy 2022-09-03 17:12:47 -04:00
Andrey e56924310b tear down Engine god object #4511
just trying different things
2022-09-03 07:44:24 -04:00
rusefillc 54e05ba0fc moving state into specific class (#4520)
* moving state into specific class

* moving state into specific class
2022-09-02 14:38:03 -04:00
Andrey 436c294770 refactoring: reducing outputChannels copy 2022-09-01 10:58:16 -04:00
Andrey b64e553d5d refactoring: reducing outputChannels copy 2022-09-01 01:06:49 -04:00
Andrey be790e2c44 less code is better 2022-08-31 23:14:20 -04:00
Andrey G aefea6d3ff output channels: isFuelPumpOn vs isPumpOn, remove second one (#4490) 2022-08-27 14:28:33 -04:00
rusefillc ec9a705cf6 docs 2022-08-23 22:25:08 -04:00
Matthew Kennedy 58e27505db log missed exti events (#4473)
* log missed exti events

* units

* s

* guard

* stub for non stm32
2022-08-23 19:45:28 -04:00
rusefillc fdde38c203 better method name 2022-08-22 18:07:59 -04:00
Matthew Kennedy 6218edd040 allow logging multiple warnings at once (#4414)
* allow logging multiple warnings at once

* comment

* .Code

* Revert ".Code"

This reverts commit 2b986bd50035aeec051d11aafd83fdbc1694351c.

* add a better comparison operator instead of conversion

* dot code

* Revert "dot code"

This reverts commit 35f6ae1007c41e3b30ea129a324f33ab4205036d.

* force gcc-10 maybe?

* Revert "force gcc-10 maybe?"

This reverts commit 4ddf8bcefddd354ccdc1da682c5fff1e68d44273.

* vq

* dot code

* dead

* dot code

* return may be null

* static_vector; maybe cyclic_buffer is broken or wrong tool for the job?

* move static vector

* put cyclic buffer back how it was since we don't use it now
2022-08-17 01:12:25 -04:00
rusefillc cad9791b35 https://github.com/rusefi/alphax-4chan/issues/57 2022-08-11 10:54:54 -04:00
Matthew Kennedy 57263e9300 more CAN verbose (#4402)
* add stuff

* don't read invalid value
2022-08-01 15:27:06 -04:00
Matthew Kennedy d4721bee89 implement sensor checker (#4395)
* implement sensor checker

* use default

* s

* fix

* properly report non-timeout errors

* it's not safe to read Value when invalid

* it's not safe to read Value when invalid
2022-07-30 17:08:48 -04:00
Matthew Kennedy 4865213537 Log gppwm output values (#4385)
* remove debug option

* purpose built output channels

* name

* embiggen sd log buffer

* Revert "embiggen sd log buffer"

This reverts commit 37432a56535b24c221ae92e9aaded23de4d4a579.

* embiggen SD log buffer
2022-07-27 12:10:00 +03:00
Matthew Kennedy efdae2322d Start -> start (#4366) 2022-07-21 15:17:32 -04:00
rusefillc 64a9f84872 scaling of microRusEFI ADC gauges fix #4356 2022-07-18 08:26:17 -04:00
rusefillc d586a7dc9c raw aux inputs gauges fix #4346 2022-07-15 06:37:30 -04:00
Matthew Kennedy 6267b8621a big delete ICU (#4270)
* big delete

* icu vestiges

* changelog
2022-07-07 15:27:59 -04:00
rusefillc 92119af801 logging of live data structs was: data points #3614 2022-06-29 02:37:24 -04:00
Matthew Kennedy c2f61dc95f Remove third trigger channel (#4226)
* remove third trigger

* clean up the honda mess

* there was nothing novel about this engine config

* include

* missed a few

* s

* x

* changelog

* don't set the third trigger input

* don't redefine the same thing 3 times

* only two inputs!

* test
2022-06-01 21:24:20 -04:00
rusefillc 2649c99ea7 hard requirement for console version match #4187 2022-06-01 11:07:28 -04:00
rusefillc 0a47d3a7b9 Maintenability: frequency sensors need a simple event counter in the logs #4173 2022-05-14 08:39:08 -04:00
Matthew Kennedy cf89b42716 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 83caf1ea1b Brain pin is enum class (#4108)
* change most usages to Gpio::

* board configs

* engine configs etc

* isBrainPinValid, smart gpio

* generator

* generator

* generator

* connector yamls

* kinetis enums

* cypress txt

* kinetis config

* frankenso

* config generator

* actually do it for the others

* disable skips for pr ci

* fix tle8888

* misc

* weird cast from int

* needs this operator too

* this can be an unsigned subtract

* happy tests

* s

* kinetis isConfigurationChanged weirdness

* missed J/K

* cypress efifeatures

* build script mistake (!)

* mistake in smart gpio

* debounce

* eg33

* kinetis, so needy

* it's pretty green, we can skip these again
2022-04-28 17:32:39 -04:00
Matthew Kennedy a2e1a079b8 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
David Holdeman 918224fbc1 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
Matthew Kennedy 8650686ab7 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 f9d222bce1 random progress & method rename 2022-04-16 17:35:59 -04:00
Matthew Kennedy a7673066c3 aux linear fixes (#4069) 2022-04-15 07:22:52 -04:00
rusefi 2bb799af42 American 2022-04-09 17:53:24 -04:00
Matthew Kennedy 88ff526764 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
Matthew Kennedy 405f7f3b43 Gear detection improvements (#4047)
* gear detect improvements

* ui

* ui for gear ratios

* ui
2022-04-06 16:15:58 -04:00
Matthew Kennedy 178db1975b don't get afr raw if no sensor exists (#4040)
* don't get afr raw if no sensor exists

* fix timing correction units
2022-04-03 17:39:29 -04:00
Matthew Kennedy f0013f71b5 limp mangaer handles more stuff (#3983) 2022-03-20 09:28:17 -04:00
rusefillc 7792ccefb6 refactoring 2022-03-14 23:02:00 -04:00