Commit Graph

2351 Commits

Author SHA1 Message Date
Matthew Kennedy 9d8a23241b better log 2024-04-12 12:13:12 -07:00
Matthew Kennedy 61dd44a4ba test for noisy triggers and another fix 2024-04-12 11:29:38 -07:00
Matthew Kennedy 52c2aa45ea
fix overdwell in case of noisy trigger (#410) 2024-04-12 04:08:58 -05:00
rusefillc f269d56474
Odd fire unit (#407) 2024-04-10 21:36:01 -05:00
rusefillc 89462092a1
default argument to improve test API (#405) 2024-04-09 22:42:16 -07:00
Matthew Kennedy 3f8931f341 we often mean inline when we say static 2024-03-28 18:20:40 -07:00
Matthew Kennedy 3face67d0d maybe fix mac 2024-03-23 13:13:04 -07:00
Matthew Kennedy 25e2a40b53 avoid UB in tests 2024-03-22 12:07:58 -07:00
Matthew Kennedy 3a4bce217c Make toyota 3 tooth decoder more robust #382 2024-03-19 15:08:06 -07:00
rusefillc b251e2ba9d
cleanup & explicit Builds on windows are not supported by FOME (#392) 2024-03-19 12:54:41 -07:00
Matthew Kennedy 8680b22816 move a bunch of tables out of engine_configuration_s #371 2024-03-17 12:06:14 -07:00
Matthew Kennedy 362e681dcb does it fail with ASAN disabled? 2024-03-17 03:13:28 -07:00
Matthew Kennedy a9d47da54e make clean deletes generated 2024-03-15 01:06:00 -07:00
Matthew Kennedy e2fa08478e test etb rounding 2024-03-14 15:49:38 -07:00
Matthew Kennedy d8898a4665 cherry picks from #385 2024-03-13 00:56:53 -07:00
Matthew Kennedy e4fd095a2c unit tests get a board name for now 2024-03-07 22:59:47 -08:00
Matthew Kennedy da1ad5b34f scripts should fail harder when they fail 2024-03-07 22:17:37 -08:00
Matthew Kennedy 5e1359c919 correct big buffer move assignment/constructor behavior 2024-02-29 00:09:57 +00:00
Stefan de Kraker 4c65992017
Add cranking taper duration multiplier based on CLT (#370)
* Add Cranking taper duration multiplier based on CLT

* Fixed same merge error in TS config

* Fixed existing unit test for getCrankingTaperFraction, and added a new one to test multiplier table for cranking taper duration.

* Fixed existing header file for unit test getCrankingTaperFraction

* Changed naming

* changed logic

* Forgot to update name here too

* Forgot to update name here too, second time
2024-02-25 17:36:30 -08:00
Matthew Kennedy e5fb7f7f3f
gen config with make (#363) 2024-02-22 10:58:03 -08:00
Matthew Kennedy f8070a922a
implement & test backend for injection splitting (#367)
* framing dual injection

* fix test

* uncomment logic

* format

* start test

* good test

* add todo
2024-02-21 10:54:27 -08:00
Matthew Kennedy 705a238435 dead scripts 2024-02-16 14:38:54 -08:00
Matthew Kennedy f3b335fe8d
all generated files in one dir (#348)
* delete existing generated source files

* ignore new generated dir

* move all the generated files

* cleanup

* jars

* makefile

* bootloader

* simulator+tests
2024-01-17 14:25:00 -08:00
Matthew Kennedy 6b432ffef5 Actually separate injector model for second stage 2024-01-16 23:11:01 -08:00
Matthew Kennedy 9673ff01f3
implement staged injection (#331)
* output channel

* duty cycle etc math for second stage

* action_s utility

* basic enable switch

* staging fraction math

* implement staging logic

* wire up pins for second stage injectors

* staging UI

* Improve staged injection test, check scheduler arguments for other injection tests

* Stage 2 last pulse output channel, correct fuel consumption logic

* wall wet on the whole shot

* int vs size_t

* use a define instead of function so we get line numbers

* fix batch injection

* gauges

* bad test merge

* stub out secondary injector model
2024-01-07 15:22:39 -08:00
Matthew Kennedy 26f57fd226 no trailing semicolon 2024-01-07 12:32:18 -08:00
Matthew Kennedy a45b9ab611 minor housekeeping 2024-01-06 23:10:56 -08:00
Matthew Kennedy d38a9ef0c0 missed a spot 2024-01-06 22:37:41 -08:00
Matthew Kennedy 47c5ac14e3 update googletest, because why not 2023-11-17 00:20:21 -08:00
Matthew Kennedy e5a751e3b1
remove ccache (#288) 2023-11-02 11:28:14 -07:00
Matthew Kennedy 0ef0882597 this test worked on everything but apple silicon apparently 2023-11-01 21:46:08 -07:00
Matthew Kennedy 4ed8906748 fix tests for no shadowing 2023-11-01 17:31:08 -07:00
Matthew Kennedy 83c6ac9f97 these lines just did NOTHING? 2023-11-01 17:16:14 -07:00
Matthew Kennedy fc308d400a prep adding Werror=shadow 2023-11-01 15:37:00 -07:00
Matthew Kennedy 0fd5e33b89 happy hpfp test 2023-11-01 15:35:41 -07:00
Matthew Kennedy 21998dae2d tests 2023-11-01 15:14:53 -07:00
Matthew Kennedy 36643bb7f4 dead pid auto tune 2023-11-01 13:54:48 -07:00
Matthew Kennedy 56abb0c3b6 happy CAN filter test 2023-10-31 01:07:46 -07:00
Matthew Kennedy dd0e34346c unit test for wrapAngle 2023-10-24 01:03:02 -07:00
Matthew Kennedy 38c873252e
smarter injector duty cycle limiting (#215)
* config for duty cycle limiting

* implement timeout duty cycle limiting

* comment

* make overlapping injections actually work!

* missed one

* test

* call addFuelEvents from fast callback

* update comment about why we call it again in main trigger callback

* one more extra call

* undo addFuelEvents change

* cleanup

* minor encapsulation

* fix

* changelog

* dead obd code
2023-10-14 14:27:19 -07:00
Matthew Kennedy e09ed790eb extract injection refactoring from #215 2023-10-12 18:00:33 -07:00
Matthew Kennedy b0fd6596ea limp test doesn't rely on defaults 2023-10-11 16:15:22 -07:00
Matthew Kennedy 3c001f759f
Miata presets (#236)
* rename existing

* rename existing

* 1.6 progress

* nb2 progress

* format

* stub nb1

* nb1 progress

* msm

* msm

* brake switch, MSM IAT

* gppwm, clutch pin

* cleanup

* allow setting lua heap size

* Revert "allow setting lua heap size"

This reverts commit 82533b5c7b.

* guard 1.6

* everyone wins a more sensible tps/tps AE table

* guard for tests

* nb2 vvt angle tweak

* tweak tests for changed defaults
2023-09-25 11:12:34 -07:00
Matthew Kennedy ce8855056a triggers.txt 2023-09-14 13:59:18 -07:00
Matthew Kennedy 6418cba04e test 2023-09-14 13:59:04 -07:00
Matthew Kennedy a6a25ba020 toyota 3 tooth cam decoder #237 2023-09-13 22:30:14 -07:00
Matthew Kennedy 94c29d4cfb
simplify cam input single tooth modes (#178) 2023-08-03 00:52:19 -07:00
Matthew Kennedy 30f85245ec test lambda monitor response #75 2023-07-26 00:35:28 -07:00
Matthew Kennedy 6f4a4fc373
implement ignition timing clamping (#212)
* implement ignition timing clamping

* ui, improved comment

* wrap atdc timing correctly

* tests
2023-07-21 15:55:04 -07:00
Matthew Kennedy fb8cb4987e
fan control is engine module (#203)
* fan is engine module

* mockable AC

* mockable AC

* mock AC controller in fan test

* constexpr fan livedata

* isPtr
2023-07-21 01:28:25 -07:00
Matthew Kennedy e2550105b8
vvt is engine module (#202)
* vvt refactoring

* vvt constexpr livedata

* format

* fix null deref
2023-07-19 22:16:29 -07:00
Matthew Kennedy 9b6d964919 lambda monitor test file 2023-07-17 19:51:07 -07:00
Matthew Kennedy 7ae11160d9 simplify adjustCrankPhase 2023-06-28 18:12:38 -07:00
Matthew Kennedy 04a1eb6950
real test of 12+1 (#177) 2023-06-28 16:48:42 -07:00
Matthew Kennedy 06e818f89a explicit tests for batch and single point 2023-06-26 01:11:43 -07:00
Matthew Kennedy 01b4f1191a fix (honestly gross) tests to work in two wire batch 2023-06-24 20:55:17 -07:00
Matthew Kennedy b0c3357cba #23 and fix https://github.com/rusefi/rusefi/issues/5353 2023-06-24 20:14:37 -07:00
Matthew Kennedy 8cb484f3e0 happy test #111 #117 2023-06-23 02:21:53 -07:00
Matthew Kennedy daadce32a6 disable test 2023-06-22 01:19:56 -07:00
Matthew Kennedy ec8b054093 implement temp sensor pulldown mode #116 2023-06-10 13:36:03 -07:00
Matthew Kennedy 06b39dbb07
trigger and engine types -> enum class (#113)
* trigger type is enum class

* java tooling

* enum class engine_type_e

* enum class engine_type_e
2023-06-01 13:47:49 -07:00
Matthew Kennedy ef10a91c59 start switching TriggerValue to bool #55 2023-05-30 22:55:03 -07:00
Matthew Kennedy ce1dad1100 trigger structure api accepts bool #55 2023-05-30 22:48:07 -07:00
Matthew Kennedy b1b1ec7fdf add postState flag to airmass model calls #107 2023-05-15 17:18:35 -07:00
Matthew Kennedy 99fbf7f01f Test fix due to scaling change 2023-05-04 14:57:04 -07:00
Matthew Kennedy 7cc3fb5472 Test fix due to scaling change 2023-05-04 14:43:18 -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 fa41247fde ancient history dead histogram 2023-04-11 17:02:56 -07:00
Matthew Kennedy d6534157a0 rename obd_code_e -> ObdCode 2023-04-11 16:32:47 -07:00
Matthew Kennedy cef6856f15 rename test binary 2023-04-11 16:26:15 -07:00
Matthew Kennedy b7fe618db8 s 2023-04-11 13:51:32 -07:00
Matthew Kennedy 323d61d90b sensor checker wasn't checking sensors 2023-04-11 13:47:30 -07:00
Matthew Kennedy 416cfa1a92 happy tests 2023-04-02 02:09:35 -07:00
Matthew Kennedy c682c49d46 register/unregister 2023-04-01 23:17:50 -07:00
Matthew Kennedy 82794403f8 gear detection in to the sensor model 2023-04-01 23:08:06 -07:00
Matthew Kennedy b9d065ae4e more dead stuff 2023-03-31 23:11:01 -07:00
Matthew Kennedy 461e448162 fewer console cmd slots 2023-03-31 23:05:17 -07:00
Matthew Kennedy f090a97b0b remove specs_s struct, flatten config 2023-03-27 00:58:18 -07:00
Matthew Kennedy bdeeb82f93 better idle VE table transition 2023-03-27 00:42:56 -07:00
Matthew Kennedy cb0e81b062 support abs+gauge+diff fuel pressure #32 2023-03-25 13:53:16 -07:00
Matthew Kennedy 3d72c297b7 exact miata test 2023-03-17 14:54:50 -07:00
Matthew Kennedy 0fef22667d this is more robust 2023-03-16 01:37:42 -07:00
Matthew Kennedy c47d7394c5 convert throttle model to g/s instead of kg/s 2023-03-16 01:19:03 -07:00
Matthew Kennedy a430c10ed4 unit tests get board name 2023-03-16 01:10:02 -07:00
Matthew Kennedy d14d442157 throttle model tests 2023-03-13 15:43:39 -07:00
Matthew Kennedy 5a589be697 tests can have some more, I guess 2023-03-13 14:09:42 -07:00
Matthew Kennedy 556a04b8d4 use fixed number instead of nproc 2023-03-13 14:03:33 -07:00
Matthew Kennedy 7ee63df142 Throttle model #63 2023-03-13 13:25:45 -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 4a8ff4dcc0 test 2023-03-01 17:27:53 -08:00
Matthew Kennedy 0072e8f33c nobody should use NA6 VAF 2023-02-28 20:04:47 -08:00
Matthew Kennedy a2652d31dc invert vvt in one spot, like trigger 2023-02-28 13:13:29 -08:00
Matthew Kennedy d19b394439 no jni check needed 2023-02-28 03:26:26 -08:00
Matthew Kennedy b6e3f105df state sequence api doesn't use triggervalue #55 2023-02-28 02:25:38 -08:00
Matthew Kennedy d7681bf194 no TriggerValue for vvt: #55 2023-02-28 02:11:28 -08:00
Matthew Kennedy 56c5b8d2e9
remove displayLogicLevelsInEngineSniffer (#56)
* configs

* remove displayLogicLevelsInEngineSniffer

* test
2023-02-28 01:57:50 -08:00
Matthew Kennedy cd99553fbf test 2023-02-26 15:52:37 -08:00
Matthew Kennedy 6c2e4f00f6 test 2023-02-25 01:34:23 -08:00
Matthew Kennedy 4cd08fbc4b
table-only map fallback (#46)
* table-only map fallback

* InSequence
2023-02-23 15:05:56 -08:00
Matthew Kennedy 8b5337f0a5 camOffsetAdd 2023-02-23 13:29:03 -08:00