Commit Graph

663 Commits

Author SHA1 Message Date
Matthew Kennedy 8e4994627d default init is ok for these 2024-04-25 15:49:27 -07:00
Matthew Kennedy 8d1029314a delete efitimems_t 2024-04-25 13:52:34 -07:00
Matthew Kennedy e332b32ed1 distinguish between "timestamp" and "duration" 2024-04-25 12:57:10 -07:00
GitHub gen-configs Action 2c42d8d83c Auto-generated configs and docs 2024-01-19 12:02:28 +00:00
Matthew Kennedy 0fbd2ee105 fix indents 2024-01-16 23:12:04 -08:00
rusefillc bdf2c72869
Knock explicit struct (#345)
* explicit struct fields

* explicit struct fields

---------

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2024-01-16 23:11:11 -08:00
rusefillc c121af8b83
encapsulation (#344)
* encapsulation

* encapsulation

---------

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2024-01-14 14:28:22 -08:00
Matthew Kennedy 17c6a46e84 optimize for hot thread stacks and data in CCM 2024-01-06 19:37:35 -08:00
Matthew Kennedy 2091c528f9 guard in sensor checker 2024-01-06 18:58:26 -08:00
Matthew Kennedy caa7e62b0e
new parser datalog support (#205)
* stale comments

* conform inputs

* implement datalog writing

* stale comment

* s

* stub out more support

* OutputChannelWriter

* tweak inputs so there's less diff later
2023-11-23 18:53:56 -08:00
Matthew Kennedy 61900c0f18 check for unused variables 2023-11-03 15:00:44 -07:00
Matthew Kennedy ada987985d efi gpio de-shadowing 2023-11-01 14:54:57 -07:00
Matthew Kennedy 4c6de064ad maf cleanup 2023-11-01 14:12:46 -07:00
GitHub gen-configs Action d94867084b Auto-generated configs and docs 2023-09-18 08:40:04 +00:00
Matthew Kennedy 7a2df32d04 sensor types for #250 2023-09-18 01:04:54 -07:00
Matthew Kennedy 0de6cd44cf debug modes cleanup 2023-09-13 12:19:18 -07:00
Matthew Kennedy 82ed3289bc guard 2023-09-07 12:27:31 -07:00
Matthew Kennedy 38c4a0f8b9 reject impossible pulses 2023-09-07 12:26:00 -07:00
Matthew Kennedy 382de1da14 typos 2023-09-07 12:11:12 -07:00
Matthew Kennedy 89945206a8 stub hella level sensor 2023-09-06 23:20:14 -07:00
GitHub gen-configs Action 62ad0beb1d Auto-generated configs and docs 2023-07-19 07:23:44 +00:00
Matthew Kennedy bed48892aa
new parser touches all input files (#201)
* begin the resurrection

* use hw ci build script

* Revert "use hw ci build script"

This reverts commit e97e693eea.

* list serial ports

* bad merge

* Revert "list serial ports"

This reverts commit a29270405c.

* Revert "bad merge"

This reverts commit ea2541110e.

* unnecessary autoscales

* improve bad autoscale message

* bit group formatting

* formatting matching

* c struct writer mostly works

* tests and formatting alignment

* tests

* cherry pick potential hw ci fix

* format matching

* newparse reads live data files

* vvt scaling

* cleanup

* format matching

* format matching

* format matching

* format matching

* handle arrays of structs

* cleanup for merge

* jars
2023-07-19 00:21:41 -07:00
Matthew Kennedy c36840d0c3 nix gauge generation 2023-07-18 11:39:39 -07:00
Matthew Kennedy abc979058c Inhibit sensor checker when battery voltage low #169 2023-06-23 01:29:51 -07:00
Matthew Kennedy ec8b054093 implement temp sensor pulldown mode #116 2023-06-10 13:36:03 -07:00
Matthew Kennedy c2d058126d obd sensors very broken 2023-06-01 14:08:13 -07:00
Matthew Kennedy 349d3a9b48 completely unused CanCategory 2023-05-30 22:13:54 -07:00
GitHub gen-configs Action 5befc8438e Auto-generated configs and docs 2023-05-07 08:52:55 +00:00
Matthew Kennedy 89d66d4abd stub TIP sensor 2023-05-07 01:51:28 -07:00
GitHub gen-configs Action a10ec0ab0c Auto-generated configs and docs 2023-05-05 09:42:48 +00:00
Matthew Kennedy c3b97dd4e4 wideband prefix 2023-05-05 02:25:57 -07:00
Matthew Kennedy bc51116022 wideband prefix 2023-05-05 02:25:11 -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 d6534157a0 rename obd_code_e -> ObdCode 2023-04-11 16:32:47 -07:00
Matthew Kennedy 323d61d90b sensor checker wasn't checking sensors 2023-04-11 13:47:30 -07:00
GitHub gen-configs Action 9be0f63235 Auto-generated configs and docs 2023-04-02 06:09:34 +00:00
Matthew Kennedy 82794403f8 gear detection in to the sensor model 2023-04-01 23:08:06 -07:00
GitHub gen-configs Action 996cfd2721 Auto-generated configs and docs 2023-03-27 08:38:48 +00:00
Matthew Kennedy 081740c1d6 indicators for ign/inj faults 2023-03-21 11:32:55 -07:00
GitHub gen-configs Action 723795a232 Auto-generated configs and docs 2023-03-15 19:34:12 +00:00
GitHub gen-configs Action 456229d49e Auto-generated configs and docs 2023-03-15 18:57:35 +00: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 718ad4a391 extract expected.h 2023-03-07 00:33:31 -08:00
Matthew Kennedy d8ec197616 todos cleanup 2023-03-03 02:08:39 -08:00
GitHub gen-configs Action b95a1d77b3 Auto-generated configs and docs 2023-02-21 11:00:59 -08:00
Matthew Kennedy c71ba44d61 clean up pretty useless console commands 2023-02-21 02:07:25 -08:00
Matthew Kennedy bc4d1127bc etb style idle valve 2023-02-20 22:56:26 -08:00
Matthew Kennedy cc8f64a371 narrow ego avg 2023-02-20 22:48:37 -08:00
Matthew Kennedy fd09ad7b4f cj125 2023-02-20 22:21:52 -08:00
Matthew Kennedy 321d22e2f3 Revert "moving sensors files a bit"
This reverts commit babcd7c3a0.
2023-02-20 20:38:53 -08:00
GitHub gen-configs Action 0b6aa0ea60 Auto-generated configs and docs 2023-02-21 02:39:44 +00:00
Andrey babcd7c3a0 moving sensors files a bit 2023-02-20 21:37:07 -05:00
Andrey 2881bfa0f7 moving sensors files a bit 2023-02-20 21:21:03 -05:00
GitHub gen-configs Action 3752038667 Auto-generated configs and docs 2023-02-20 16:40:01 +00:00
rusefillc 530824ecae Native SENT TPS input #5079 2023-02-20 11:38:20 -05:00
Matthew Kennedy eee53678bd fire a warning in case of wideband fault (#5109)
* fire a warning in case of wideband fault

* s
2023-02-20 03:42:40 -05:00
GitHub gen-configs Action 0a9ea9c255 Auto-generated configs and docs 2023-02-15 00:56:39 +00:00
rusefi cf7e54a15b Native SENT TPS input #5079 2023-02-14 19:54:22 -05:00
Benas Brazdziunas 9cac9a309a dual ADC wideband support (#5007)
* Initial work on dual ADC wideband

* Added FunctionPointerSensor lambdaSensor2 and registered second sensor

* removed second sensor heater output. Only used for NB and probably can be shared with sensor 1

---------

Co-authored-by: benas-gavea <bbrazdziunas@gavea.co.uk>
2023-01-29 05:01:39 -05:00
Nathan Schulte 76bc7f22fd misc tidy (#4926)
* FrequencySensor: code-style

* smart_gpio: fix indent, tidy BOARD_EXT_GPIOCHIPS

tidy _GPIOCHIPS for #pragma message(STRING(BOARD_EXT_GPIOCHIPS output

* obd_error_codes: fix indent
2023-01-01 15:51:31 -05:00
Matthew Kennedy ecee1dd02d ETB error counter logic (#4854)
* simplify ETB error counter logic

* dropped this: {

* happy test

* reorder logic, test etbErrorCode

* test that fails

* independent TPS and PPS counters

* missed a file

* happy test
2022-11-30 22:20:09 -05:00
Andrey 7547edb566 mock invalid & current state of ETB error counter 2022-11-29 20:36:03 -05:00
Andrey ddc9971a2a refactoring: extracting method 2022-11-29 20:11:29 -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 14b6f7e948 Nissan MAF 2022-11-10 11:25:19 -05:00
rusefillc 99a587a951 Nissan MAF 2022-11-10 11:10:55 -05:00
rusefillc 7219022f79 Nissan MAF 2022-11-09 22:09:39 -05:00
rusefi 98f3bdae3a Nissan 2022-11-09 20:58:09 -05:00
rusefillc 682c57ccf8 Nissan 2022-11-09 20:39:11 -05:00
rusefi 80e02de00b https://rusefi.com/forum/viewtopic.php?p=46603#p46603
calling 'setTimeout' on bad self (cpp class not export)
2022-11-06 20:09:01 -05:00
Andrey G cc9b1517ac compile warnings: signed vs unsigned and unused (#4713) 2022-10-30 09:47:53 -04:00
GitHub gen-configs Action 5191680479 Auto-generated configs and docs 2022-10-28 01:19:55 +00:00
Matthew Kennedy 6b97bf8e07 plumbing for dual MAP sensors (#4704)
* wiring for dual maps

* s
2022-10-27 21:15:04 -04:00
Matthew Kennedy 6a9b481c65 prep for multiple MAP sensors (#4705)
* prep for multiple MAP sensors

* move guard

* sensor info printing

* maybe kinetis memory
2022-10-27 13:59:36 -04:00
Andrey 698c0da164 Revert "prep for multiple MAP sensors (#4677)"
This reverts commit 10ea7ad948.
2022-10-26 21:25:02 -04:00
Matthew Kennedy 10ea7ad948 prep for multiple MAP sensors (#4677)
* prep for multiple MAP sensors

* move guard

* sensor info printing
2022-10-26 18:06:20 -04:00
rusefi 727a6703b4 GM SENT ETB bench test in NJ #4688 2022-10-26 09:27:32 -04:00
GitHub gen-configs Action d49fa94c55 Auto-generated configs and docs 2022-10-24 16:46:53 +00: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
GitHub gen-configs Action 2edbf8ecb0 Auto-generated configs and docs 2022-10-17 03:44:02 +00:00
rusefi 3d748ba34a Lua aux gauge #4672 2022-10-16 23:38:24 -04:00
GitHub gen-configs Action 937c2920da Auto-generated configs and docs 2022-10-12 01:03:24 +00:00
Matthew Kennedy d74ae44b30 allow SD logging non-scaled_channel (#4657)
* allow SD logging non-scaled_channel

* comments and kick ci
2022-10-11 20:58:43 -04:00
rusefi 21527fbf3f FrequencySensor::showInfo 2022-10-05 23:39:19 -04:00
rusefillc 3a55a2d89a auxSpeed1 2022-09-20 23:00:42 -04:00
GitHub gen-configs Action b9a3f29f3d Auto-generated configs and docs 2022-09-19 16:23:04 +00:00
rusefillc a4a1995508 useBiQuadOnAuxSpeedSensors 2022-09-19 12:13:20 -04:00
rusefillc 3e4b514a65 moving confusing around 2022-09-19 12:00:01 -04:00
Andrey e9e040895b different file names for different entities 2022-09-04 23:11:19 -04:00
GitHub gen-configs Action 3f9e800bc9 Auto-generated configs and docs 2022-08-22 14:54:09 +00:00
rusefillc a11789a28d Pavel Xenon is asking for EGT limping mode #3172 2022-08-22 10:48:54 -04:00
rusefillc 23f9ceeb06 EGT nothing 2022-08-14 18:36:09 -04:00
Matthew Kennedy 770f0c6637 ignore invalid diag result when checking ign/inj (#4419)
* ignore invalid pins

* ign too
2022-08-06 07:24:53 -04:00
Matthew Kennedy f49f6494fb report injector, ignition faults (#4408)
* report injector, ignition faults

* guard
2022-08-01 15:41:47 -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
rusefillc 8cbaf70f70 HOW to configure CAN-based accelerator pedal #4369
docs
2022-07-28 09:37:24 -04:00
Matthew Kennedy 14b39b7b0a unexpected contains information about why it failed (#4393)
* unexpected can contain information

* info printing

* sensors return appropriate error codes

* remove reliance on undefined behavior

* s
2022-07-28 10:04:28 +03:00
Matthew Kennedy 9f6ee5f359 detect bad Lua sensor name when registering (#4391)
* format

* lua error on bad sensor

* comment

* name validation

* soft check before the hard check causes a fatal error

* s
2022-07-27 12:41:21 +03:00
Matthew Kennedy efdae2322d Start -> start (#4366) 2022-07-21 15:17:32 -04:00
Matthew Kennedy cd98ad35c2 use libfirmware for a few things (#4351)
* use libfirmware

* unit tests

* crc

* missed one

* bootloader
2022-07-16 02:22:51 -04:00