Commit Graph

6321 Commits

Author SHA1 Message Date
Matthew Kennedy a3d3638232 more graceful chibios assertion failure (#2859)
* no custom assert hook

* dead

* setjmp/longjmp

* always call tid hook

* tests get threadid

* simulator threadid

* kick

* stubs for kinetis

* make it happier

* noreturn

* oops

* comments

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-07-05 18:18:58 -04:00
GitHub build-firmware Action 3e62beec6d Auto-generated configs and docs 2021-07-05 22:08:39 +00:00
rusefi 342727bdd2 Nissan 2021-07-05 17:58:31 -04:00
rusefi fd98a631c3 Nissan 2021-07-05 17:57:25 -04:00
GitHub set-date Action 19e8d468f1 Update date 2021-07-05 00:54:44 +00:00
Andrey G fdfec5ea3c Fix swap macro (#2904)
* convert swap macroses to inline functions

* clean-up workarounds
2021-07-04 18:03:17 -04:00
GitHub build-firmware Action 02d65f51a1 Auto-generated configs and docs 2021-07-04 13:37:12 +00:00
Matthew Kennedy 3247d4de00 Gate closed loop idle on road speed (#2901)
* implement

* test

* b

* config
2021-07-04 09:35:12 -04:00
GitHub build-firmware Action efc9ab6f97 Auto-generated configs and docs 2021-07-04 13:25:09 +00:00
Matthew Kennedy 9d41a19adc misc (#2899)
* dead fields

* defaults

* ui

* configs
2021-07-04 09:22:42 -04:00
GitHub build-firmware Action 3fc9c4ed32 Auto-generated configs and docs 2021-07-04 04:34:53 +00:00
GitHub build-firmware Action 9faee00030 Auto-generated configs and docs 2021-07-04 04:11:05 +00:00
GitHub build-firmware Action a14e9cfa43 Auto-generated configs and docs 2021-07-04 03:49:47 +00:00
GitHub build-firmware Action 56d65ba336 Auto-generated configs and docs 2021-07-04 01:26:21 +00:00
rusefillc 5438bb5a4b human readable warning codes into TS #2898
preparation
2021-07-03 21:01:42 -04:00
GitHub set-date Action 57e1ff6edd Update date 2021-07-04 00:57:29 +00:00
Andrey 4c19e22237 Nissan VVT trigger decoder #2887
one step back
2021-07-03 12:42:07 -04:00
Andrey fb7639f347 Nissan VVT trigger decoder #2887 2021-07-03 12:26:31 -04:00
GitHub build-firmware Action a12c1c58cf Auto-generated configs and docs 2021-07-03 16:12:21 +00:00
Andrey e34b04bd46 Nissan VVT trigger decoder #2887 2021-07-03 12:02:00 -04:00
GitHub build-firmware Action 346d93879c Auto-generated configs and docs 2021-07-03 15:33:11 +00:00
Andrey 2ad22a262b Nissan VVT trigger decoder #2887 2021-07-03 11:08:22 -04:00
Andrey 9ad5ec8044 refactoring: getShaftSynchronized 2021-07-03 10:37:03 -04:00
Andrey 26fdfb1ab6 Nissan VVT trigger decoder #2887 2021-07-03 10:15:41 -04:00
Andrey a8d5ff0a85 Nissan VVT trigger decoder #2887 2021-07-03 09:48:59 -04:00
Andrey f3ffecbc2b Nissan VVT trigger decoder #2887 2021-07-03 09:43:27 -04:00
GitHub set-date Action 2d2536f202 Update date 2021-07-03 00:55:05 +00:00
Andrey cd4842f2b8 Nissan VVT trigger decoder #2887 2021-07-02 20:28:15 -04:00
Andrey 9339f0169d Nissan progress 2021-07-02 20:12:31 -04:00
Andrey 2911e128d9 Nissan progress 2021-07-02 19:57:26 -04:00
Andrey 7b21e5cf29 wow we have weird code! 2021-07-02 19:49:00 -04:00
GitHub build-firmware Action 8134452d10 Auto-generated configs and docs 2021-07-02 23:16:26 +00:00
Andrey 4e18c2a0ae todo: vvt 2021-07-02 19:06:07 -04:00
GitHub build-firmware Action 7253a11b9c Auto-generated configs and docs 2021-07-02 21:56:55 +00:00
Andrey 7ffe09aa96 Nissan progress 2021-07-02 16:31:10 -04:00
Andrey 8013e598df Nissan progress 2021-07-02 16:26:23 -04:00
Andrey 1fe9389ede Nissan VVT trigger decoder #2887 2021-07-01 23:53:53 -04:00
Andrey 11def6d9e3 Nissan VVT trigger decoder #2887 2021-07-01 22:27:43 -04:00
Andrey fd3aa4ec18 Nissan VVT trigger decoder #2887 2021-07-01 21:48:47 -04:00
Matthew Kennedy 9ae1ada582 Stricter miata sync (#2891)
* strict mazda trigger shape

* this is an even better gap

* sync point moved so things are different now

* fix

* update instantrpm in test

* s

* s

* this is safer

* test

* tests

* instant rpm

* cleanup
2021-07-01 21:29:04 -04:00
GitHub set-date Action a51892047f Update date 2021-07-02 00:55:37 +00:00
Matthew Kennedy 20937455a0 Fix pre sync timestamp copy (#2892)
* fix tests

* fix pre sync copy

* this fixes the issue
2021-07-01 18:58:28 -04:00
GitHub build-firmware Action 2719cac4ce Auto-generated configs and docs 2021-07-01 21:43:39 +00:00
Andrey 6c7d2700b3 Nissan VVT trigger decoder #2887 2021-07-01 17:28:52 -04:00
GitHub build-firmware Action 1534df09bf Auto-generated configs and docs 2021-07-01 21:06:08 +00:00
Andrey af01242555 Nissan VVT trigger decoder #2887 2021-07-01 17:03:17 -04:00
Matthew Kennedy ebf6083d95 test dc_motor.cpp (#2890)
* use ipwm where possible

* mock ipwm

* initialize

* test
2021-07-01 09:21:18 -04:00
Matthew Kennedy 2cf2db8fb2 fix instant rpm (#2886)
* fix instant rpm

* this is what it should look like!

* warning

* comment issue link

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-07-01 09:19:16 -04:00
Matthew Kennedy 77f9c68733 not const getAirmass (#2883)
* not const

* test
2021-07-01 00:05:42 -04:00
GitHub set-date Action 2b0f12d7ec Update date 2021-07-01 00:59:08 +00:00
GitHub build-firmware Action 470730a6c8 Auto-generated configs and docs 2021-06-30 19:12:17 +00:00
GitHub build-firmware Action 3db8f25d5b Auto-generated configs and docs 2021-06-30 19:01:13 +00:00
Matthew Kennedy f804bdb602 target lambda table (#2879)
* move function

* put that back

* fancy lamba table
2021-06-30 06:56:43 -04:00
GitHub set-date Action da815445e4 Update date 2021-06-30 01:01:58 +00:00
GitHub build-firmware Action 0c5d5b3b0d Auto-generated configs and docs 2021-06-29 21:30:44 +00:00
GitHub build-firmware Action c237e0e39c Auto-generated configs and docs 2021-06-29 21:00:38 +00:00
GitHub build-firmware Action 7881c50495 Auto-generated configs and docs 2021-06-29 05:14:46 +00:00
Andrey a125ba8210 https://github.com/rusefi/hellen121nissan-issues/issues/2 2021-06-29 01:04:39 -04:00
GitHub build-firmware Action eb5495c526 Auto-generated configs and docs 2021-06-29 03:41:20 +00:00
GitHub set-date Action d73818d6c0 Update date 2021-06-29 00:53:47 +00:00
Matthew Kennedy ee6f49e65f Consolidate hwHandleShaftSignal (#2875)
* consolidate trigger input

* merge functions

* comment

* dead

* hw vs. not hw

* stray comma

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-06-28 10:06:22 -04:00
GitHub build-firmware Action c938ab7cf4 Auto-generated configs and docs 2021-06-28 12:55:05 +00:00
Matthew Kennedy 0defaccb15 no fan if stopped engine (#2822)
* no fan if stopped engine

* config

* use config

* more tests

* merge

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-06-28 08:52:54 -04:00
Matthew Kennedy 6b93647c5f deinit lua pins when not used (#2876)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-06-28 08:39:03 -04:00
GitHub build-firmware Action 75ef77dca3 Auto-generated configs and docs 2021-06-28 01:07:22 +00:00
GitHub set-date Action 9c7f7a383f Update date 2021-06-28 00:57:46 +00:00
GitHub build-firmware Action 611d88becc Auto-generated configs and docs 2021-06-27 22:54:02 +00:00
Matthew Kennedy fe6f123be5 Move AC logic out of FSIO (#2872)
* new impl

* remove fsio

* inject "is ac active" to fan

* include the correct code

* include

* test

* more AC features

* AC switch vs. actual AC indicators

* include

* duh
2021-06-27 18:51:34 -04:00
Andrey eefba195d0 VW warnings on cranking #2861
same resilience for some other triggers
2021-06-27 13:29:09 -04:00
Andrey 8185eb2de3 refactoring maybe making code reuse more possible in the future 2021-06-27 13:00:01 -04:00
Andrey 967f423391 VW warnings on cranking #2861 2021-06-27 12:31:18 -04:00
GitHub build-firmware Action afb7e52549 Auto-generated configs and docs 2021-06-27 16:16:51 +00:00
Andrey a5b64cd6cf DRAM SDRAM #2551 2021-06-27 02:13:52 -04:00
Andrey 0668bf899e so many wonderful discoveries 2021-06-27 00:54:38 -04:00
Andrey 083a2e12f9 depressing code comment 2021-06-26 23:01:47 -04:00
Andrey 738b03b63e refactoring - crankDivider etc etc 2021-06-26 22:42:53 -04:00
Andrey 4627707e1c refactoring - explicit read method 2021-06-26 22:17:07 -04:00
Andrey 25afc6e67c refactoring - explicit read method 2021-06-26 22:11:42 -04:00
Andrey 1003056f85 refactoring - explicit read method 2021-06-26 22:07:45 -04:00
Matthew Kennedy 71cbe6a3a6 dc motor api (#2869)
* iwpm

* dc motor has configure

* consume

* format

* spelling
2021-06-26 21:42:40 -04:00
GitHub set-date Action 4dfae99be3 Update date 2021-06-27 01:09:33 +00:00
Matthew Kennedy e39eadce85 dead fsio alt (#2871) 2021-06-26 20:15:48 -04:00
Matthew Kennedy b0ef8313cd warnings (#2862)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-06-25 20:58:38 -04:00
GitHub set-date Action ea214581d4 Update date 2021-06-26 00:54:21 +00:00
Matthew Kennedy 95f9e949a5 fix trigger changed logic (#2860)
* reenable

* fix

* longer interval between updates

* only deinit hard trigger outputs if necessary

* init logic

* init order

* warning

* guard

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-06-25 19:38:42 -04:00
rusefillc f262be8c99 Minor change of Miata NA trigger shape #2855 #669 (#2856)
* Minor change of Miata NA trigger shape #2855 #669

* Minor change of Miata NA trigger shape #2855 #669
2021-06-25 14:12:18 -04:00
Andrey bb5500dbb3 Trigger: warning code on normal engine start up #669
better TDC unit test approach?
2021-06-25 13:19:16 -04:00
Andrey 8d4b9c4535 Trigger: warning code on normal engine start up #669
making more code unit-testable
2021-06-25 12:50:19 -04:00
Andrey 1b968fbcbc helping build? 2021-06-25 12:28:55 -04:00
Andrey 78af6fd432 helping build? 2021-06-25 12:26:29 -04:00
Andrey da2e7101aa refactoring 2021-06-25 12:01:59 -04:00
Andrey bd29dedbca Trigger: warning code on normal engine start up #669
making more code unit-testable
2021-06-25 11:50:23 -04:00
Andrey fef89328d3 helping build? 2021-06-25 11:48:17 -04:00
Andrey 742935567b Trigger: warning code on normal engine start up #669
making more code unit-testable
2021-06-25 11:30:06 -04:00
Andrey 57094f43cc refactoring: reducing code duplication 2021-06-25 10:55:46 -04:00
rusefillc d69ad4f45c unit_tests: mapAveragingTriggerCallback causes segmentation fault fix #2858 2021-06-25 10:43:58 -04:00
rusefillc dc331a3b63 unit_tests: mapAveragingTriggerCallback causes segmentation fault #2858 2021-06-25 10:21:31 -04:00
Andrey 0a5f688697 global static not good, there shall be only one god object /s 2021-06-25 01:37:43 -04:00
Andrey f567c764ab giving unit tests a chance to use tdcMarkCallback 2021-06-25 01:31:53 -04:00
Andrey 1269e7f4ea Minor change of Miata NA trigger shape #2855 #669 2021-06-24 22:21:30 -04:00