Commit Graph

10487 Commits

Author SHA1 Message Date
Andrey a57d7c48fb global static not good, there shall be only one god object /s 2021-06-23 06:10:27 -04:00
Andrey G 08747d036e
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 8d0046b0de removing dead code 2021-06-23 04:26:32 -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 65a0303340 those and many other offsets are no longer correct 2021-06-21 02:11:36 -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
Andrey 35c8c9ac6b TS Burned All Data engine stop #2839
preparing test case
2021-06-20 23:32:31 -04:00
GitHub build-firmware Action 22cefc1468 Auto-generated configs and docs 2021-06-21 02:40:41 +00:00
David Holdeman feb4da7467
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 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
Matthew Kennedy aa8bfe0020
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 47b62a5a3a https://www.rusefi.com/forum/viewtopic.php?p=41296 2021-06-20 17:26:24 -04:00
Andrey G 802afaed34
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 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
David Holdeman 9955d49679
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 ef66ebcae4 Auto-generated configs and docs 2021-06-19 03:23:44 +00:00
Matthew Kennedy 0d80a781e6
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 55b7fc08d8 Auto-generated configs and docs 2021-06-19 00:55:47 +00:00
David Holdeman 2d0d61fa31
change digital_input to digital_inputs (#2833) 2021-06-18 20:43:30 -04:00
GitHub build-firmware Action 7e58366778 Auto-generated configs and docs 2021-06-18 20:33:41 +00:00
Matthew Kennedy 78304d2b39
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 993298a93e Auto-generated configs and docs 2021-06-18 19:49:42 +00:00
Matthew Kennedy d57ea124a1
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 e7e9ab0d5c
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 56fd45a81e June 2021 Release "Garbage Man Day" 2021-06-17 22:14:40 -04: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
rusefillc 2fead8f1b3 typo & clarification 2021-06-17 11:38:36 -04:00
GitHub build-firmware Action 9270425bc6 Auto-generated configs and docs 2021-06-17 13:51:57 +00:00
rusefillc dc7b1fc401 engine_load_mode_e clarification 2021-06-17 09:49:15 -04:00
Matthew Kennedy 71b552d3a7
changelog (#2825) 2021-06-17 04:56:32 -04: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
Matthew Kennedy 2c6b8ae3c6
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 59b2cee173 Auto-generated configs and docs 2021-06-16 15:30:04 +00:00
rusefillc 5c5ec16c13 docs 2021-06-16 11:20:14 -04: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 3cf8244d46 Review default H64 tune #2815 2021-06-13 21:28:57 -04: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 a1fa9719c9 Review default H64 tune #2815 2021-06-13 20:40:28 -04: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 4182eccbf3 random trick 2021-06-12 13:48:37 -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
Andrey 0432d689b4 helping build 2021-06-12 07:26:16 -04: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
Andrey 6b6034234f helping build 2021-06-12 07:00:26 -04:00
GitHub build-firmware Action 3001d20513 Auto-generated configs and docs 2021-06-12 04:19:09 +00:00
rusefillc f83c0b3b61 TCU cherry 2021-06-12 00:15:19 -04:00
GitHub build-firmware Action 855efcb1be Auto-generated configs and docs 2021-06-12 04:12:35 +00:00
rusefillc 61f5f3b93e TCU cherry 2021-06-12 00:10:06 -04: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
Andrey cc2a7babc7 h121 progress 2021-06-11 23:47:12 -04:00
rusefillc df4bc3f720 TCU cherry 2021-06-11 23:41:23 -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
rusefillc 9e24432faa https://github.com/rusefi/hellen121vag/issues/44 2021-06-11 12:23:21 -04: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
BeerMoneyMotorsports e5fbfbf7b5
Update main.yaml (#2809)
AC comp relay output change to GPIOH_15
2021-06-10 19:45:56 -04: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
Matthew Kennedy a54a5e7f90
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 e82e5bcb84 Update date 2021-06-10 01:01:40 +00:00