Commit Graph

10224 Commits

Author SHA1 Message Date
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
Andrey 4f499dfa82 OMG dead code?! 2021-06-24 22:01:57 -04:00
GitHub set-date Action 45107f3773 Update date 2021-06-25 01:01:18 +00:00
Matthew Kennedy aafb2e7def 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 dad704a926 don't stack overflow on early ch dbg assert (#2853) 2021-06-24 16:36:20 -04:00
GitHub set-date Action ffcc194a2f Update date 2021-06-24 00:44:43 +00:00
Andrey 839539abc4 fan2 bench 2021-06-23 17:16:11 -04:00
GitHub build-firmware Action 0d264916bb Auto-generated configs and docs 2021-06-23 21:07:38 +00:00
Andrey a91d67947a fan2 bench 2021-06-23 17:03:55 -04:00
Andrey 6343dc2765 fan2 bench 2021-06-23 16:58:58 -04:00
Andrey 7153a47e76 H72 default progress 2021-06-23 16:58:34 -04:00
GitHub build-firmware Action 6287f8d303 Auto-generated configs and docs 2021-06-23 18:54:44 +00:00
Andrey 57d687cd0f more bench commands into .txt 2021-06-23 14:48:42 -04:00
Andrey eaf1348650 H72 default progress 2021-06-23 14:44:50 -04:00
Andrey feb56dad72 refactoring 2021-06-23 06:37:32 -04:00
Andrey 263bdb7eae global static not good, there shall be only one god object /s 2021-06-23 06:10:27 -04:00
Andrey G 5c552e196a TS communication minor fixes (#2847)
* console: noone use this

* console: do not stop blinking if TS command executes too long

Set and clear flag from the same place

Co-authored-by: rusefillc <48498823+rusefillc@users.noreply.github.com>
2021-06-23 04:36:55 -04:00
Andrey 270905fa8b removing dead code 2021-06-23 04:26:32 -04:00
GitHub set-date Action 805604fc2b Update date 2021-06-23 00:49:48 +00:00
GitHub set-date Action 112e987f5a Update date 2021-06-22 00:52:52 +00:00
Andrey 67796d174f as of today we still do not have desperate time debugging "writepin" command 2021-06-21 13:03:18 -04:00
Andrey 9b02827a1e Actually two for SWAP_UINT16 :) 2021-06-21 10:47:43 -04:00
Andrey 25168809f3 performance optimization by dron0gus 2021-06-21 09:27:09 -04:00
Andrey 604d3e7cdd flash writer thread name by dron0gus 2021-06-21 09:00:54 -04:00
Andrey cb2c148d3b Revert "TS Burned All Data engine stop #2839"
This reverts commit 3c298da4
2021-06-21 08:53:39 -04:00
Andrey 3c298da417 TS Burned All Data engine stop #2839
second guess
2021-06-21 03:10:59 -04:00
Andrey 92f7079360 TS Burned All Data engine stop #2839
first wild guess
2021-06-21 02:51:12 -04:00
Andrey 7e0d83d54b looks like this parameter is very well used now? 2021-06-21 02:12:14 -04:00
Andrey d7789bc2a0 those and many other offsets are no longer correct 2021-06-21 02:11:36 -04:00
Andrey 56e19b4a88 TS Burned All Data engine stop #2839
reusing constant
2021-06-21 00:53:37 -04:00
GitHub build-firmware Action e44facbce5 Auto-generated configs and docs 2021-06-21 03:35:31 +00:00
Andrey 526c436d19 TS Burned All Data engine stop #2839
preparing test case
2021-06-20 23:32:31 -04:00
GitHub build-firmware Action 5a6145fc4f Auto-generated configs and docs 2021-06-21 02:40:41 +00:00
David Holdeman d2c60e30d5 Fix class (#2841)
* switch to switch_inputs

* switch output to outputs

* add missing s
2021-06-20 22:38:17 -04:00
GitHub set-date Action 17a12b78b2 Update date 2021-06-21 00:59:18 +00:00
GitHub build-firmware Action 2993d01fbb Auto-generated configs and docs 2021-06-20 21:45:12 +00:00
Matthew Kennedy f28c10e87f parse enums (#2832)
* enums and definitions

* bad merge

* txt format

* endBit

* handle 1-size arrays

* strings

* fix auto enum

* hard code 0 and 1

* jar

* jar
2021-06-20 17:35:31 -04:00
Andrey a138ab98b0 https://www.rusefi.com/forum/viewtopic.php?p=41296 2021-06-20 17:26:24 -04:00
Andrey G 77b9a9a99d Fixes eg33 (#2838)
* CAN HW: use designated initizalization

* board subaru eg33: set CAN transceiver EN to active state constantly

While FW does not handle CAN transceiver's EN signal
2021-06-20 08:18:16 -04:00
GitHub set-date Action 30c511be82 Update date 2021-06-20 00:58:37 +00:00
GitHub build-firmware Action e05590069b Auto-generated configs and docs 2021-06-19 13:14:32 +00:00
David Holdeman c7fb082ae8 switch to switch_inputs (#2837)
* switch to switch_inputs

* switch output to outputs
2021-06-19 09:12:54 -04:00
GitHub build-firmware Action bb92111795 Auto-generated configs and docs 2021-06-19 03:23:44 +00:00
Matthew Kennedy 05149f5b0c more config cleanup: get rid of extra spaces (#2836)
* oh boy

* double space between sentences
2021-06-18 22:53:39 -04:00
GitHub build-firmware Action bf7fedffd9 Auto-generated configs and docs 2021-06-19 00:55:47 +00:00
David Holdeman de1d35d882 change digital_input to digital_inputs (#2833) 2021-06-18 20:43:30 -04:00
GitHub build-firmware Action f1ab826f57 Auto-generated configs and docs 2021-06-18 20:33:41 +00:00
Matthew Kennedy c77686ce3b gauges for raw TPS (#2831)
* ecu part

* gauges

* debug info for ford throttle

* sensible order
2021-06-18 16:27:44 -04:00
GitHub build-firmware Action be80c82b5f Auto-generated configs and docs 2021-06-18 19:49:42 +00:00
Matthew Kennedy 14e1aeac53 cleanup for easier ini compare (#2830)
* remove dot zero

* don't parse as double

* minor formatting

* Revert "don't parse as double"

This reverts commit f2427927f7df0f5fa27ed66c888009e3a3da8412.

* expect integer "1"

* jar
2021-06-18 15:43:16 -04:00
Matthew Kennedy d3d6c1694a Antlr 2 (#2823)
* grammar and libs

* gitignore

* parsing

* allow empty line as root statement

* tolerate #if

* config def changes

* s

* ant build

* workaround

* compiled tool

* grammar for unions

* parse unions

* layout logic

* fix union alignment

* union in config

* jar

* comment

* jar

* jar

* no prefix on root struct

* stray space

* normalize some enums
2021-06-18 12:31:23 -04:00
rusefillc 94d7a413b2 June 2021 Release "Garbage Man Day" 2021-06-17 22:14:40 -04:00
GitHub set-date Action c4d7348fff Update date 2021-06-18 00:56:57 +00:00
GitHub build-firmware Action ac7bdd1e8f Auto-generated configs and docs 2021-06-17 15:41:07 +00:00
rusefillc 96d28a1029 typo & clarification 2021-06-17 11:38:36 -04:00
GitHub build-firmware Action 805af460c7 Auto-generated configs and docs 2021-06-17 13:51:57 +00:00
rusefillc 0dc84c1799 engine_load_mode_e clarification 2021-06-17 09:49:15 -04:00
Matthew Kennedy 7e2d13e581 changelog (#2825) 2021-06-17 04:56:32 -04:00
GitHub set-date Action 0f89c55d9a Update date 2021-06-17 00:54:30 +00:00
GitHub build-firmware Action 72dfb6c950 Auto-generated configs and docs 2021-06-16 21:31:59 +00:00
Matthew Kennedy f1a95123fb 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 91865c7a75 Auto-generated configs and docs 2021-06-16 21:09:18 +00:00
Matthew Kennedy 5ae4af23fe parse with antlr (#2747)
* grammar and libs

* gitignore

* parsing

* allow empty line as root statement

* tolerate #if

* config def changes

* s

* ant build

* workaround

* compiled tool

* console should not build config def tool

* ugh the dependency tree is insane

* this should fix hw ci

* console build

* console jenkins script

* test

* Revert "test"

This reverts commit 73f2da50f990bee9b51a1f919e8fcc6b06327d9a.

* throw on parse failure

* jar

* fix #2821

* comment
2021-06-16 17:07:05 -04:00
GitHub build-firmware Action 5e97d7e11f Auto-generated configs and docs 2021-06-16 15:30:04 +00:00
rusefillc 675fbbce84 docs 2021-06-16 11:20:14 -04:00
GitHub build-firmware Action a27b25a8ad Auto-generated configs and docs 2021-06-16 12:54:10 +00:00
Matthew Kennedy f15a017402 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 49ab96a59c Update date 2021-06-16 00:56:27 +00:00
GitHub build-firmware Action 48f531ae0d Auto-generated configs and docs 2021-06-15 21:32:56 +00:00
Matthew Kennedy 63524c3f34 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 db66139edf Update date 2021-06-15 00:58:38 +00:00
GitHub build-firmware Action 7c9dbad0e0 Auto-generated configs and docs 2021-06-14 01:39:17 +00:00
Andrey 1965de7c1e Review default H64 tune #2815 2021-06-13 21:28:57 -04:00
Andrey 66de546bc9 Review default H64 tune #2815 2021-06-13 21:27:03 -04:00
Andrey b4fe83a17d Review default H64 tune #2815 2021-06-13 21:17:22 -04:00
GitHub set-date Action 717fc4ae6f Update date 2021-06-14 00:54:30 +00:00
GitHub build-firmware Action 35cc0b1d55 Auto-generated configs and docs 2021-06-14 00:43:24 +00:00
Andrey f70de3f778 Review default H64 tune #2815 2021-06-13 20:40:28 -04:00
Andrey 1d4be8ee95 forgotten MPX4100 sensor 2021-06-13 20:30:51 -04:00
GitHub build-firmware Action 97c4922c37 Auto-generated configs and docs 2021-06-13 12:09:09 +00:00
Matthew Kennedy 172b11bfe9 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 8575d16287 Auto-generated configs and docs 2021-06-13 12:01:23 +00:00
Matthew Kennedy 322f69474f 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 73d0a5a03c Update date 2021-06-13 00:58:08 +00:00
Matthew Kennedy 0c0957f52a 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 65780182bf Auto-generated configs and docs 2021-06-12 18:07:43 +00:00
Andrey ba8ad555c2 reverting TCU cherry pick 2021-06-12 13:52:18 -04:00
Andrey aa9f609df5 random trick 2021-06-12 13:48:37 -04:00
Andrey 7f61757f92 sorry last change for trans selector 2021-06-12 13:00:54 -04:00
Andrey eb09cdbfb9 helping build 2021-06-12 07:32:12 -04:00
GitHub build-firmware Action 05a9ec99a5 Auto-generated configs and docs 2021-06-12 11:28:45 +00:00
Andrey 35ceac35c1 helping build 2021-06-12 07:26:16 -04:00
rusefillc 197d928a8c TCU cherry 2021-06-12 07:06:57 -04:00
GitHub build-firmware Action f81070dee6 Auto-generated configs and docs 2021-06-12 11:03:20 +00:00
Andrey 6b82c4ebc3 helping build 2021-06-12 07:00:26 -04:00
GitHub build-firmware Action d6fa5895a5 Auto-generated configs and docs 2021-06-12 04:19:09 +00:00
rusefillc 81444d33e2 TCU cherry 2021-06-12 00:15:19 -04:00
GitHub build-firmware Action 3aa5d04fee Auto-generated configs and docs 2021-06-12 04:12:35 +00:00
rusefillc 7f498e1992 TCU cherry 2021-06-12 00:10:06 -04:00
GitHub build-firmware Action 82ec23f37d Auto-generated configs and docs 2021-06-12 04:03:50 +00:00
rusefillc 9caa794e6c TCU cherry 2021-06-11 23:48:57 -04:00
Andrey 3f1f32fa50 h121 progress 2021-06-11 23:47:12 -04:00
rusefillc d298ba1289 TCU cherry 2021-06-11 23:41:23 -04:00
rusefillc 1ddd756f80 TCU cherry 2021-06-11 23:39:50 -04:00
GitHub set-date Action db28bfffd1 Update date 2021-06-12 00:51:57 +00:00
GitHub build-firmware Action 33a86e061f Auto-generated configs and docs 2021-06-11 16:25:58 +00:00
rusefillc f9d00a16a0 https://github.com/rusefi/hellen121vag/issues/44 2021-06-11 12:23:21 -04:00
GitHub build-firmware Action 5c8de995b7 Auto-generated configs and docs 2021-06-11 10:27:21 +00:00
Matthew Kennedy 41104dcca8 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 2c6715c8d9 Update date 2021-06-11 00:56:20 +00:00
GitHub build-firmware Action 26cf864e19 Auto-generated configs and docs 2021-06-11 00:00:17 +00:00
BeerMoneyMotorsports 9dc5aff335 Update main.yaml (#2809)
AC comp relay output change to GPIOH_15
2021-06-10 19:45:56 -04:00
Andrey G 84856f3073 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
Matthew Kennedy e3bf80b9d7 convert gpiochips to c++ (#2761)
* core

* basic header

* tests are happy

* tle6240

* tle8888

* 33972

* 33810

* tle8888_req_init

* unused warning

* warning

* unsigned

* 8888 debug

* fix

* don't qualify

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-06-10 04:11:01 -04:00
GitHub set-date Action 866fd0f305 Update date 2021-06-10 01:01:40 +00:00
GitHub build-firmware Action 3c7d0a2743 Auto-generated configs and docs 2021-06-10 00:48:08 +00:00
BeerMoneyMotorsports a97f56e257 Update main.yaml (#2804)
update for AC
2021-06-10 03:39:17 +03:00
GitHub set-date Action 4bc758567c Update date 2021-06-09 01:03:02 +00:00
GitHub build-firmware Action cb3ff8aef7 Auto-generated configs and docs 2021-06-08 18:29:34 +00:00
rusefillc 338ca9477b ETB: do not disable control pins in two wire mode fix #2802 2021-06-08 14:27:04 -04:00
GitHub build-firmware Action b5a00b17ab Auto-generated configs and docs 2021-06-08 11:55:00 +00:00
rusefi d21c1b50dc h121 pps1 pin conflict #2801 2021-06-08 07:52:44 -04:00
GitHub set-date Action aef94f660d Update date 2021-06-08 01:24:03 +00:00
GitHub set-date Action 1fa270795e Update date 2021-06-07 01:26:14 +00:00
Andrey 5ceb3dcdec https://github.com/rusefi/rusefi/wiki/Hellen121VAG 2021-06-06 11:05:47 -04:00
GitHub set-date Action b4546dfe6c Update date 2021-06-06 01:25:25 +00:00
GitHub build-firmware Action 97c3d455da Auto-generated configs and docs 2021-06-05 20:42:46 +00:00
Andrey 2b5611ef62 s/controlPin1/controlPin/ 2021-06-05 16:40:16 -04:00
GitHub build-firmware Action a68c7d7d8b Auto-generated configs and docs 2021-06-05 20:21:28 +00:00
Andrey 17c07a0828 s/controlPin1/controlPin/ 2021-06-05 16:19:01 -04:00
GitHub build-firmware Action 37a3f08c0c Auto-generated configs and docs 2021-06-05 20:09:52 +00:00
Andrey 9e7242befd https://github.com/rusefi/hellen121vag/issues/38 2021-06-05 16:07:30 -04:00
GitHub build-firmware Action d01fd93576 Auto-generated configs and docs 2021-06-05 19:51:13 +00:00
Andrey 33b72b23de https://github.com/rusefi/hellen121vag/issues/38 2021-06-05 15:41:35 -04:00
GitHub build-firmware Action eee3e6087c Auto-generated configs and docs 2021-06-05 11:00:25 +00:00
Andrey 821db8bee2 https://github.com/rusefi/rusefi/wiki/Hellen121VAG 2021-06-05 06:58:13 -04:00
GitHub set-date Action 5e5d724aee Update date 2021-06-05 01:34:35 +00:00
Matthew Kennedy 7101a390db update wideband (#2795)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-06-04 01:34:30 -04:00
GitHub set-date Action aafe21e6e3 Update date 2021-06-04 01:55:47 +00:00
Matthew Kennedy 135bc9f3ad move ign & cranking defaults (#2791)
* ignition defaults

* cranking

* s
2021-06-03 14:40:19 -04:00
Matthew Kennedy 70c0db189d 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 0480cd5a2a Update date 2021-06-03 02:25:33 +00:00
Matthew Kennedy 925399168a 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 64a1c8678a trigger: subaru 7+6: update cranck angles, add comments (#2789) 2021-06-02 19:19:52 +03:00
Matthew Kennedy de00c7fef7 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 6be973db2c Auto-generated configs and docs 2021-06-02 05:30:38 +00:00
Matthew Kennedy cc0547217c 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 d6f8d345dc Update date 2021-06-02 02:50:23 +00:00