Commit Graph

6457 Commits

Author SHA1 Message Date
GitHub build-firmware Action 1d48a36777 Auto-generated configs and docs 2021-06-27 22:54:02 +00:00
Matthew Kennedy cd5eb6a77c
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 41060a1235 VW warnings on cranking #2861
same resilience for some other triggers
2021-06-27 13:29:09 -04:00
Andrey 21c06e1514 refactoring maybe making code reuse more possible in the future 2021-06-27 13:00:01 -04:00
Andrey 2e252022aa VW warnings on cranking #2861 2021-06-27 12:31:18 -04:00
GitHub build-firmware Action 5c95fba778 Auto-generated configs and docs 2021-06-27 16:16:51 +00:00
Andrey 6819ce9032 DRAM SDRAM #2551 2021-06-27 02:13:52 -04:00
Andrey 82439b3ffd so many wonderful discoveries 2021-06-27 00:54:38 -04:00
Andrey 4463ca1fdb depressing code comment 2021-06-26 23:01:47 -04:00
Andrey 5adb42f939 refactoring - crankDivider etc etc 2021-06-26 22:42:53 -04:00
Andrey eaff083377 refactoring - explicit read method 2021-06-26 22:17:07 -04:00
Andrey 1822426d0c refactoring - explicit read method 2021-06-26 22:11:42 -04:00
Andrey a5eeb19c4d refactoring - explicit read method 2021-06-26 22:07:45 -04:00
Matthew Kennedy cd055a687d
dc motor api (#2869)
* iwpm

* dc motor has configure

* consume

* format

* spelling
2021-06-26 21:42:40 -04:00
GitHub set-date Action c1178a0464 Update date 2021-06-27 01:09:33 +00:00
Matthew Kennedy a498e86944
dead fsio alt (#2871) 2021-06-26 20:15:48 -04:00
Matthew Kennedy 2475cb283b
warnings (#2862)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-06-25 20:58:38 -04:00
GitHub set-date Action d83cdbfc0c Update date 2021-06-26 00:54:21 +00:00
Matthew Kennedy ce4eb2b55d
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 0af5de0934
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 942eb46471 Trigger: warning code on normal engine start up #669
better TDC unit test approach?
2021-06-25 13:19:16 -04:00
Andrey c40f801e6d Trigger: warning code on normal engine start up #669
making more code unit-testable
2021-06-25 12:50:19 -04:00
Andrey 12067584e9 helping build? 2021-06-25 12:28:55 -04:00
Andrey 265339a50b helping build? 2021-06-25 12:26:29 -04:00
Andrey 5e87b326f2 refactoring 2021-06-25 12:01:59 -04:00
Andrey 266e50f4ca Trigger: warning code on normal engine start up #669
making more code unit-testable
2021-06-25 11:50:23 -04:00
Andrey 28a27367e5 helping build? 2021-06-25 11:48:17 -04:00
Andrey 66b091a5a5 Trigger: warning code on normal engine start up #669
making more code unit-testable
2021-06-25 11:30:06 -04:00
Andrey 0c97b4bc83 refactoring: reducing code duplication 2021-06-25 10:55:46 -04:00
rusefillc b84369c8c0 unit_tests: mapAveragingTriggerCallback causes segmentation fault fix #2858 2021-06-25 10:43:58 -04:00
rusefillc 6605935015 unit_tests: mapAveragingTriggerCallback causes segmentation fault #2858 2021-06-25 10:21:31 -04:00
Andrey 761d9fc40e global static not good, there shall be only one god object /s 2021-06-25 01:37:43 -04:00
Andrey 71fdfe6756 giving unit tests a chance to use tdcMarkCallback 2021-06-25 01:31:53 -04:00
Andrey 3092164e48 Minor change of Miata NA trigger shape #2855 #669 2021-06-24 22:21:30 -04:00
Andrey 03f18cd0c8 OMG dead code?! 2021-06-24 22:01:57 -04:00
GitHub set-date Action cba533d257 Update date 2021-06-25 01:01:18 +00:00
Matthew Kennedy 7eb3b9890d
misc threading/safety improvements (#2854)
* allow termination of thread controller

* no gpio if fatal

* stub for test
2021-06-24 20:18:23 -04:00
Matthew Kennedy fd49590a4e
don't stack overflow on early ch dbg assert (#2853) 2021-06-24 16:36:20 -04:00
GitHub set-date Action 8ef5e0d1c9 Update date 2021-06-24 00:44:43 +00:00
Andrey a6dae486e0 fan2 bench 2021-06-23 17:16:11 -04:00
GitHub build-firmware Action 232f8296aa Auto-generated configs and docs 2021-06-23 21:07:38 +00:00
Andrey bbd9a6aee1 fan2 bench 2021-06-23 17:03:55 -04:00
GitHub build-firmware Action 03296ed07c Auto-generated configs and docs 2021-06-23 18:54:44 +00:00
Andrey 1c48a61339 refactoring 2021-06-23 06:37:32 -04:00
Andrey a57d7c48fb global static not good, there shall be only one god object /s 2021-06-23 06:10:27 -04:00
GitHub set-date Action 2efe5f555b Update date 2021-06-23 00:49:48 +00:00
GitHub set-date Action a8e6078f04 Update date 2021-06-22 00:52:52 +00:00
Andrey 50d00f1f73 as of today we still do not have desperate time debugging "writepin" command 2021-06-21 13:03:18 -04:00
Andrey 31a62d664f Actually two for SWAP_UINT16 :) 2021-06-21 10:47:43 -04:00
Andrey 498358247e performance optimization by dron0gus 2021-06-21 09:27:09 -04:00
Andrey 607ece65c2 flash writer thread name by dron0gus 2021-06-21 09:00:54 -04:00
Andrey 35a63cad89 Revert "TS Burned All Data engine stop #2839"
This reverts commit dcb52a5b
2021-06-21 08:53:39 -04:00
Andrey dcb52a5b37 TS Burned All Data engine stop #2839
second guess
2021-06-21 03:10:59 -04:00
Andrey 3aab93b122 TS Burned All Data engine stop #2839
first wild guess
2021-06-21 02:51:12 -04:00
Andrey c13bb8dbe1 looks like this parameter is very well used now? 2021-06-21 02:12:14 -04:00
Andrey cd0990ccb4 TS Burned All Data engine stop #2839
reusing constant
2021-06-21 00:53:37 -04:00
GitHub build-firmware Action 187fdcb5c8 Auto-generated configs and docs 2021-06-21 03:35:31 +00:00
GitHub build-firmware Action 22cefc1468 Auto-generated configs and docs 2021-06-21 02:40:41 +00:00
GitHub set-date Action 2d17a24b00 Update date 2021-06-21 00:59:18 +00:00
GitHub build-firmware Action af284d47af Auto-generated configs and docs 2021-06-20 21:45:12 +00:00
Andrey 47b62a5a3a https://www.rusefi.com/forum/viewtopic.php?p=41296 2021-06-20 17:26:24 -04:00
GitHub set-date Action 5919122484 Update date 2021-06-20 00:58:37 +00:00
GitHub build-firmware Action f72581b1d7 Auto-generated configs and docs 2021-06-19 13:14:32 +00:00
GitHub build-firmware Action ef66ebcae4 Auto-generated configs and docs 2021-06-19 03:23:44 +00:00
GitHub build-firmware Action 55b7fc08d8 Auto-generated configs and docs 2021-06-19 00:55:47 +00:00
GitHub build-firmware Action 7e58366778 Auto-generated configs and docs 2021-06-18 20:33:41 +00:00
GitHub build-firmware Action 993298a93e Auto-generated configs and docs 2021-06-18 19:49:42 +00:00
GitHub set-date Action 1a92197937 Update date 2021-06-18 00:56:57 +00:00
GitHub build-firmware Action 41b23d2063 Auto-generated configs and docs 2021-06-17 15:41:07 +00:00
GitHub build-firmware Action 9270425bc6 Auto-generated configs and docs 2021-06-17 13:51:57 +00:00
GitHub set-date Action c163d3bbed Update date 2021-06-17 00:54:30 +00:00
GitHub build-firmware Action a5063adacd Auto-generated configs and docs 2021-06-16 21:31:59 +00:00
Matthew Kennedy 3a30f038ce
kill engine if no oil pressure (#2800)
* min oil pressure for crank

* do it time-based

* rename field

* include

* fix existing test

* tests

* fix logic

* more test

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-06-16 17:20:28 -04:00
GitHub build-firmware Action 850d19aaa9 Auto-generated configs and docs 2021-06-16 21:09:18 +00:00
GitHub build-firmware Action 59b2cee173 Auto-generated configs and docs 2021-06-16 15:30:04 +00:00
GitHub build-firmware Action 08b5ca6046 Auto-generated configs and docs 2021-06-16 12:54:10 +00:00
Matthew Kennedy 93adb8ea76
Etb rev limit (#2820)
* cfg

* impl

* a test

* don't break the ts channel

* text
2021-06-16 08:44:48 -04:00
GitHub set-date Action 46494877af Update date 2021-06-16 00:56:27 +00:00
GitHub build-firmware Action b54c4c1738 Auto-generated configs and docs 2021-06-15 21:32:56 +00:00
Matthew Kennedy a4973a6f3d
fan/AC idle improvements (#2818)
* fan 2 open loop bump

* we had an AC target bump all this time?!

* format

* enable test

* I can't type
2021-06-15 17:30:35 -04:00
GitHub set-date Action f10607e6d5 Update date 2021-06-15 00:58:38 +00:00
GitHub build-firmware Action c264b94ba6 Auto-generated configs and docs 2021-06-14 01:39:17 +00:00
Andrey 640097f327 Review default H64 tune #2815 2021-06-13 21:27:03 -04:00
Andrey 3c62881fe8 Review default H64 tune #2815 2021-06-13 21:17:22 -04:00
GitHub set-date Action 6670077dba Update date 2021-06-14 00:54:30 +00:00
GitHub build-firmware Action 2c135cf838 Auto-generated configs and docs 2021-06-14 00:43:24 +00:00
Andrey 67f9e5a595 forgotten MPX4100 sensor 2021-06-13 20:30:51 -04:00
GitHub build-firmware Action b8a6c15881 Auto-generated configs and docs 2021-06-13 12:09:09 +00:00
Matthew Kennedy 097bf85faf
dual fans (#2806)
* remove fsio

* hard code impl

* test it

* enable fan with AC

* make commented stuff match

* second fan config

* second fan ui

* defaults

* impl
2021-06-13 08:06:45 -04:00
GitHub build-firmware Action ca2244a043 Auto-generated configs and docs 2021-06-13 12:01:23 +00:00
Matthew Kennedy 7d2057e74a
remove cranking dwell angle (#2814)
* config & impl

* settings

* engines & boards

* this test doesn't do anything interesting
2021-06-13 07:52:07 -04:00
GitHub set-date Action 12191bfcec Update date 2021-06-13 00:58:08 +00:00
Matthew Kennedy 15d172ab08
apply open loop idle when in automatic mode (#2745)
* always apply open loop in closed loop

* simplify flags

* comment

* move

* comment

* missed one

* config for fan bump

* adjust miata defaults

* test fan/ac open loop

* idle CL tests

* test coasting

* test integration case

* fix merge

* put back reset logic for now

* s

* don't need that part

* I guess use OL as baseIdlePosition

* reset condition
2021-06-12 14:21:11 -04:00
GitHub build-firmware Action e94bf1fc6e Auto-generated configs and docs 2021-06-12 18:07:43 +00:00
Andrey 158296f990 reverting TCU cherry pick 2021-06-12 13:52:18 -04:00
Andrey 76cd257221 sorry last change for trans selector 2021-06-12 13:00:54 -04:00
Andrey 62160c6e86 helping build 2021-06-12 07:32:12 -04:00
GitHub build-firmware Action 74c4d4ea7f Auto-generated configs and docs 2021-06-12 11:28:45 +00:00
rusefillc 4bd0ea04d2 TCU cherry 2021-06-12 07:06:57 -04:00
GitHub build-firmware Action 6eed4b6c90 Auto-generated configs and docs 2021-06-12 11:03:20 +00:00
GitHub build-firmware Action 3001d20513 Auto-generated configs and docs 2021-06-12 04:19:09 +00:00
GitHub build-firmware Action 855efcb1be Auto-generated configs and docs 2021-06-12 04:12:35 +00:00
GitHub build-firmware Action d1ec77847c Auto-generated configs and docs 2021-06-12 04:03:50 +00:00
rusefillc 4fa19b88a0 TCU cherry 2021-06-11 23:48:57 -04:00
rusefillc d8e217da28 TCU cherry 2021-06-11 23:39:50 -04:00
GitHub set-date Action fe0db62294 Update date 2021-06-12 00:51:57 +00:00
GitHub build-firmware Action cb205c98f9 Auto-generated configs and docs 2021-06-11 16:25:58 +00:00
GitHub build-firmware Action a4f86a892a Auto-generated configs and docs 2021-06-11 10:27:21 +00:00
Matthew Kennedy c27549b2e8
hard coded fan logic (#2805)
* remove fsio

* hard code impl

* test it

* enable fan with AC

* make commented stuff match
2021-06-11 06:25:12 -04:00
GitHub set-date Action ebd8c39579 Update date 2021-06-11 00:56:20 +00:00
GitHub build-firmware Action a9207d1b0a Auto-generated configs and docs 2021-06-11 00:00:17 +00:00
Andrey G a1387d3bd2
Fixes (#2807)
* tle6240: fix Matt's trap

* map: report some default value if no map sensor configured

Othervise user will get "unexpected MAP value" warning

Thread 2 hit Breakpoint 1, validateMap (mapKPa=3121.66162) at ./controllers/sensors/map.cpp:126
126		if (cisnan(mapKPa) || mapKPa < CONFIG(mapErrorDetectionTooLow) || mapKPa > CONFIG(mapErrorDetectionTooHigh)) {
(gdb) bt
 0  validateMap (mapKPa=3121.66162) at ./controllers/sensors/map.cpp:126
 1  0x002717dc in getMap () at ./controllers/engine_cycle/map_averaging.cpp:334
 2  0x0028175a in GetMapWrapper::getMap (this=0x2004214c <mapWrapper>) at ./init/sensor/init_map.cpp:12
 3  0x0028177c in operator() (__closure=0x0) at ./init/sensor/init_map.cpp:20
 4  0x002817a8 in _FUN () at ./init/sensor/init_map.cpp:21
 5  0x002811de in FunctionPointerSensor::get (this=0x20042150 <mapSensor>) at ./controllers/sensors/function_pointer_sensor.h:24
 6  0x002651c0 in SensorRegistryEntry::get (this=0x2003ddf0 <s_sensorRegistry+48>) at ./controllers/sensors/sensor.cpp:111
 7  0x002653e2 in Sensor::get (type=SensorType::Map) at ./controllers/sensors/sensor.cpp:208
 8  0x00261f38 in updateTunerStudioState (tsOutputChannels=0x2003d2e8 <tsOutputChannels>) at ./console/status_loop.cpp:637
 9  0x00262e48 in prepareTunerStudioOutputs () at ./console/status_loop.cpp:900
 10 0x00260914 in TunerStudio::cmdOutputChannels (this=0x20021a64 <tsInstance>, tsChannel=0x2003d4dc <usbChannel>, offset=0, count=340) at ./console/binary/tunerstudio_commands.cpp:24
 11 0x00260584 in TunerStudioBase::handleCrcCommand (this=0x20021a64 <tsInstance>, tsChannel=0x2003d4dc <usbChannel>, data=0x2003d4e1 <usbChannel+5> "", incomingPacketSize=5)
    at ./console/binary/tunerstudio.cpp:701
 12 0x0025fb3c in tsProcessOne (tsChannel=0x2003d4dc <usbChannel>) at ./console/binary/tunerstudio.cpp:537
 13 0x0025fbe2 in TunerstudioThread::ThreadTask (this=0x2003d608 <usbConsole>) at ./console/binary/tunerstudio.cpp:554
 14 0x0025f094 in ThreadController<1200>::StaticThreadTaskAdapter (thread=0x2003d608 <usbConsole>) at ./controllers/system/thread_controller.h:37
 15 0x0020035e in _port_thread_start () at ChibiOS/os/common/ports/ARMCMx/compilers/GCC/chcoreasm_v7m.S:201
2021-06-10 19:39:48 -04:00
GitHub set-date Action e82e5bcb84 Update date 2021-06-10 01:01:40 +00:00
GitHub build-firmware Action fefa953117 Auto-generated configs and docs 2021-06-10 00:48:08 +00:00
GitHub set-date Action db976da4fe Update date 2021-06-09 01:03:02 +00:00
GitHub build-firmware Action cef7536bf8 Auto-generated configs and docs 2021-06-08 18:29:34 +00:00
GitHub build-firmware Action 8d70567282 Auto-generated configs and docs 2021-06-08 11:55:00 +00:00
GitHub set-date Action 125c873251 Update date 2021-06-08 01:24:03 +00:00
GitHub set-date Action eaf5d4a0a4 Update date 2021-06-07 01:26:14 +00:00
GitHub set-date Action b201c266f5 Update date 2021-06-06 01:25:25 +00:00
GitHub build-firmware Action 50681d3eaf Auto-generated configs and docs 2021-06-05 20:42:46 +00:00
GitHub build-firmware Action 3319037794 Auto-generated configs and docs 2021-06-05 20:21:28 +00:00
Andrey 24131cdc0e s/controlPin1/controlPin/ 2021-06-05 16:19:01 -04:00
GitHub build-firmware Action 3b2ed0e1a1 Auto-generated configs and docs 2021-06-05 20:09:52 +00:00
GitHub build-firmware Action b6ef193b4c Auto-generated configs and docs 2021-06-05 19:51:13 +00:00
GitHub build-firmware Action e754165211 Auto-generated configs and docs 2021-06-05 11:00:25 +00:00
GitHub set-date Action f30a0e0ea9 Update date 2021-06-05 01:34:35 +00:00
Matthew Kennedy 7cef936a6d
update wideband (#2795)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-06-04 01:34:30 -04:00
GitHub set-date Action cb79707831 Update date 2021-06-04 01:55:47 +00:00
Matthew Kennedy e7f17b0365
move ign & cranking defaults (#2791)
* ignition defaults

* cranking

* s
2021-06-03 14:40:19 -04:00
Matthew Kennedy 3ef969d743
warnings & assorted cleanup (#2793)
* lua hook

* validateBuffer

* tables

* simplify fsio table

* test

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-06-03 14:30:25 -04:00
GitHub set-date Action d489a50d1b Update date 2021-06-03 02:25:33 +00:00
Matthew Kennedy 981e8f5047
defaults cleanup: base engine & fuel (#2790)
* build

* fuel and base

* fix build

* cleanup

* extern

* tps/tps

* alternator

* tps

* iat timing

* cranking RPM

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-06-03 00:50:07 +03:00
Andrey G e561836c58
trigger: subaru 7+6: update cranck angles, add comments (#2789) 2021-06-02 19:19:52 +03:00
Matthew Kennedy ab214f974c
Bandaid for 2735 (#2788)
* bandaid

* fix test

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-06-02 12:02:52 +03:00
GitHub build-firmware Action 9aaa33e583 Auto-generated configs and docs 2021-06-02 05:30:38 +00:00
Matthew Kennedy 790ac08a2e
Cranking defaults (#2787)
* defaults

* more

* cranking fuel

* cranking timing

* cranking time digits

* ugh these tests shouldn't depend on defaults
2021-06-02 08:21:36 +03:00
GitHub set-date Action 14bb5dd6eb Update date 2021-06-02 02:50:23 +00:00
GitHub set-date Action a717eb7139 Update date 2021-06-01 02:47:06 +00:00
GitHub build-firmware Action 88deee26e0 Auto-generated configs and docs 2021-05-31 22:02:57 +00:00
Matthew Kennedy f3c5ff6d54
idle fan/AC open loop bump (#2785)
* idle open loop ui section

* idle bump logic

* test fan/ac bump
2021-06-01 00:45:04 +03:00
Matthew Kennedy 39e4f70405
iac coast table (#2784) 2021-06-01 00:43:58 +03:00
GitHub build-firmware Action baa529e9dd Auto-generated configs and docs 2021-05-31 12:21:13 +00:00
Matthew Kennedy 7d773bfb1d
make the implementation match what the UI claims (#2779) 2021-05-31 07:37:02 -04:00
Matthew Kennedy a50f8e0077
Idle test that fails (#2781)
* make member func

* failing test
2021-05-31 06:18:15 -04:00
Matthew Kennedy d2f7e96747
code style (#2780) 2021-05-31 06:01:57 -04:00
GitHub build-firmware Action 201f332e76 Auto-generated configs and docs 2021-05-31 08:29:46 +00:00
Andrey G 8ee700bf76
Subaru svx (#2777)
* Revert "hiding 3rd channel for now"

This reverts commit 50682816ac.

* trigger subaru SVX: disable cranck #2 channel

* Board subaru-eg33: fix D10 pin defined twice

* Board subaru-eg33: renumber ignition ouput according cylinder order

* board subaru eg33: use common_make.sh to get dfu files

* board subaru-eg33: update default configuration
2021-05-31 04:25:57 -04:00
GitHub build-firmware Action bf7e2e8e04 Auto-generated configs and docs 2021-05-31 08:21:59 +00:00
GitHub set-date Action e7984e3250 Update date 2021-05-31 02:23:23 +00:00