Commit Graph

6526 Commits

Author SHA1 Message Date
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 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 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 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
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
GitHub build-firmware Action d6fa5895a5 Auto-generated configs and docs 2021-06-12 04:19:09 +00:00
GitHub build-firmware Action 3aa5d04fee Auto-generated configs and docs 2021-06-12 04:12:35 +00: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
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
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
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
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
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
GitHub build-firmware Action b5a00b17ab Auto-generated configs and docs 2021-06-08 11:55:00 +00: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
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
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
GitHub build-firmware Action d01fd93576 Auto-generated configs and docs 2021-06-05 19:51:13 +00:00
GitHub build-firmware Action eee3e6087c Auto-generated configs and docs 2021-06-05 11:00:25 +00: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
GitHub set-date Action bc7807cec1 Update date 2021-06-01 02:47:06 +00:00
GitHub build-firmware Action f689e028fa Auto-generated configs and docs 2021-05-31 22:02:57 +00:00
Matthew Kennedy f21fa3e652 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 1f3cbd67ad iac coast table (#2784) 2021-06-01 00:43:58 +03:00
GitHub build-firmware Action 2ce844802c Auto-generated configs and docs 2021-05-31 12:21:13 +00:00
Matthew Kennedy 6fbdb3c2d0 make the implementation match what the UI claims (#2779) 2021-05-31 07:37:02 -04:00
Matthew Kennedy 1b607faeba Idle test that fails (#2781)
* make member func

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

This reverts commit 00c5c786c7.

* 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 359e59a7d8 Auto-generated configs and docs 2021-05-31 08:21:59 +00:00
GitHub set-date Action 64ef0c5052 Update date 2021-05-31 02:23:23 +00:00
GitHub build-firmware Action 6665fa1215 Auto-generated configs and docs 2021-05-31 00:19:42 +00:00
Andrey 90177d4db4 SVX 2021-05-30 19:59:13 -04:00
Matthew Kennedy e68d920a9b Assorted todos (#2762)
* gpiochip todos

* fuel computer

* this was already done
2021-05-30 19:23:29 -04:00
Matthew Kennedy f51dd36622 require redundant pedal (#2758)
* require redundant pedal

* return false

* I don't typing good

* tests

* tests
2021-05-30 19:19:57 -04:00
GitHub build-firmware Action 096c42d428 Auto-generated configs and docs 2021-05-30 11:06:46 +00:00
Matthew Kennedy 4e8574beca safe boost duty (#2764) 2021-05-30 14:04:04 +03:00
Matthew Kennedy 66ab47a8d2 remove old config override (#2763) 2021-05-30 13:31:36 +03:00
GitHub set-date Action 7786776690 Update date 2021-05-30 02:10:59 +00:00
Matthew Kennedy adec4239eb engine stop hook (#2760) 2021-05-30 00:54:36 +03:00
Andrey 00c5c786c7 hiding 3rd channel for now 2021-05-29 04:09:12 -04:00
Matthew Kennedy ca625e7935 non blocking flash on f7 dual bank 2MB (#2749)
* f7 dual bank flash

* only start thread if necessary
2021-05-29 08:05:29 +03:00
GitHub set-date Action 69a935a06b Update date 2021-05-29 01:58:23 +00:00
Andrey G b4dce2c26d Flash fix erase check (#2750)
* Fix flash erase error formating

* Flash F7: do magic calculation with local copy of sector number

* Falsh stm32: simplify

* typo?
2021-05-28 20:35:54 +03:00
GitHub build-firmware Action c4a62e489f Auto-generated configs and docs 2021-05-28 07:41:15 +00:00
Matthew Kennedy b9d8416fb2 add pedal to gppwm (#2748)
* add pedal to gppwm

* string
2021-05-28 03:38:45 -04:00
GitHub set-date Action 6bdd773a96 Update date 2021-05-28 01:42:33 +00:00
GitHub build-firmware Action a114509395 Auto-generated configs and docs 2021-05-27 12:25:55 +00:00
Matthew Kennedy ccd75b5173 parser rewrite prep: normalize config (#2741)
* cleanup 1

* cleanup 2

* impl

* fix
2021-05-27 08:23:28 -04:00
rusefillc 68d2fdb6ce https://rusefi.com/forum/viewtopic.php?f=16&t=2027 2021-05-27 05:50:59 -04:00
rusefillc 01212aeabf some 121 coordinates 2021-05-27 05:44:48 -04:00
GitHub set-date Action 48d1ccdc28 Update date 2021-05-27 01:33:27 +00:00
GitHub build-firmware Action 53cc7a746d Auto-generated configs and docs 2021-05-26 18:21:01 +00:00
GitHub build-firmware Action e6ca803f17 Auto-generated configs and docs 2021-05-26 10:50:56 +00:00
Andrey 1b0b81ab9d subaru 7/6 progress based on https://rusefi.com/forum/viewtopic.php?p=41021#p41021 2021-05-26 06:07:31 -04:00
Andrey d993c6522b subaru 7/6 progress based on https://rusefi.com/forum/viewtopic.php?p=41021#p41021 2021-05-26 05:29:41 -04:00
Andrey 0db488b3ef subaru 7/6 progress based on https://rusefi.com/forum/viewtopic.php?p=41021#p41021 2021-05-26 04:46:17 -04:00
GitHub set-date Action acee1b0d16 Update date 2021-05-26 01:22:59 +00:00
GitHub build-firmware Action c158bc05e0 Auto-generated configs and docs 2021-05-25 22:18:20 +00:00
Andrey e4497358f5 Override trigger gaps feature #2734 2021-05-25 17:19:20 -04:00
rusefillc 9a65cb6f7f Subaru 7+6 trigger refactoring, not changing gap ratio much 2021-05-25 16:31:37 -04:00
GitHub build-firmware Action f646723034 Auto-generated configs and docs 2021-05-25 05:59:02 +00:00
GitHub set-date Action 10235bdd3f Update date 2021-05-25 01:08:06 +00:00
GitHub build-firmware Action 9eff41297d Auto-generated configs and docs 2021-05-24 21:07:11 +00:00
GitHub build-firmware Action b52da045bc Auto-generated configs and docs 2021-05-24 14:01:43 +00:00
GitHub build-firmware Action 08a4388889 Auto-generated configs and docs 2021-05-24 12:32:31 +00:00
GitHub set-date Action 0a4ec2e83a Update date 2021-05-24 01:10:45 +00:00
Andrey 9865b04bf7 Override trigger gaps feature #2734 2021-05-23 20:52:18 -04:00
GitHub build-firmware Action 15aa2c40f8 Auto-generated configs and docs 2021-05-24 00:47:26 +00:00
Andrey f74946e790 Override trigger gaps feature #2734 2021-05-23 20:06:19 -04:00
GitHub build-firmware Action 78c08b9af1 Auto-generated configs and docs 2021-05-24 00:00:27 +00:00
Andrey 765d229efb Override trigger gaps feature #2734 2021-05-23 19:58:03 -04:00
Andrey 62ecef3e3f Override trigger gaps feature #2734 2021-05-23 19:51:00 -04:00
GitHub build-firmware Action 32d4c5045f Auto-generated configs and docs 2021-05-23 18:17:06 +00:00
GitHub build-firmware Action 94050d776f Auto-generated configs and docs 2021-05-23 18:03:56 +00:00
rusefillc 9b4d8ee320 cranking timing not costant #2733 2021-05-23 13:54:49 -04:00
GitHub set-date Action b6d5bc7c20 Update date 2021-05-23 01:13:29 +00:00
David Holdeman 68da5c279e Doxygen titles (#2728)
* move addRow call

* undo submo bump

* add header titles
2021-05-22 22:10:58 +03:00
GitHub set-date Action 6860ea35a5 Update date 2021-05-22 01:04:39 +00:00
GitHub build-firmware Action 0325f429e8 Auto-generated configs and docs 2021-05-21 21:48:49 +00:00
GitHub build-firmware Action f57b99e682 Auto-generated configs and docs 2021-05-21 21:25:31 +00:00
GitHub build-firmware Action a03fe0edd7 Auto-generated configs and docs 2021-05-21 20:21:55 +00:00
GitHub build-firmware Action 2ae129616c Auto-generated configs and docs 2021-05-21 19:59:46 +00:00
GitHub build-firmware Action 2aea957d52 Auto-generated configs and docs 2021-05-21 19:47:50 +00:00
GitHub build-firmware Action ace1f5244d Auto-generated configs and docs 2021-05-21 19:28:41 +00:00
GitHub build-firmware Action 3165857918 Auto-generated configs and docs 2021-05-21 19:21:06 +00:00
GitHub build-firmware Action 46b3f841bd Auto-generated configs and docs 2021-05-21 16:15:29 +00:00
GitHub set-date Action 4b47f966f5 Update date 2021-05-21 01:05:29 +00:00
Matthew Kennedy 68ad12da53 convert a table to scaled_channel (#2724)
* scaled VE table

* use setTable

* efi::clear

* ratio -> struct
2021-05-20 20:00:32 -04:00
GitHub build-firmware Action 8adc8d26e9 Auto-generated configs and docs 2021-05-20 23:10:25 +00:00
Matthew Kennedy 6bfaed64db lua pwm hooks (#2687)
* pwm hook

* dedicated pins

* write hook

* UI

* more info

* zero based, clamp

* memory

* don't compile lua in bootloader at all
2021-05-20 19:01:17 -04:00
Matthew Kennedy c7cc5471ad Lua on f407, try again (#2725)
* lua on f4

* move perf trace to efifeatures

* check that it's defined

* cypress and kinetis

* it would help to define the correct thing

* disable buffer if not used

* we can work with 2k

* turn off ramdisk on mre qc

* wow strncpy is useless for truncated strings

* turn off for bootloader

* lto bootloader

* memory

* memory
2021-05-20 23:05:18 +03:00
Andrey a0d835ed1c refactoring magic constant STOICH_RATIO 2021-05-20 02:39:20 -04:00
Andrey 57a015e6fb refactoring magic constant STOICH_RATIO 2021-05-20 02:36:55 -04:00
GitHub set-date Action 250337f792 Update date 2021-05-20 01:01:49 +00:00
GitHub build-firmware Action 90601db721 Auto-generated configs and docs 2021-05-19 17:37:35 +00:00
rusefillc 0cb4705a7e Improve default H64 tune #2709 2021-05-19 03:50:28 -04:00
GitHub set-date Action 00c2b8514f Update date 2021-05-19 01:04:00 +00:00
GitHub build-firmware Action 2cc1a53d94 Auto-generated configs and docs 2021-05-18 18:07:37 +00:00
Matthew Kennedy 6d9c0299fb Lua script editor in console (#2699)
* stub

* implement reset

* console

* just use the console command

* cleanup

* s

* s

* ui

* write in chunks

* fix write

* tab size, script read

* parse script properly

* put lua script in flash, tiny for now

* generated fields
2021-05-18 20:58:39 +03:00
GitHub set-date Action ca1812ee51 Update date 2021-05-18 01:08:32 +00:00
Matthew Kennedy 8c3be2cefc Post cranking fuel tweaks (#2718)
* post cranking factor limits

* sensible defaults

* but not for tests

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-05-17 17:24:29 -04:00
Matthew Kennedy 4b0d75ff92 make the simulator usable (#2717)
* these start themselves now

* dead

* configure ports

* start serial

* dead

* minimal pins

* simulator logging works

* why not enable lua

* speeeeeed

* start lua

* spammy print
2021-05-17 12:44:02 +03:00
GitHub build-firmware Action c5f3798dcd Auto-generated configs and docs 2021-05-17 09:42:38 +00:00
Matthew Kennedy f6ddc2c17c Config generator jar (#2716)
* fix test

* jar

* kick config

* guard stuff

* nmea

* nmea

* nmea

* c++ is type safe, which is good

* c++ is type safe
2021-05-17 12:32:59 +03:00
GitHub build-firmware Action 5421b78e61 Auto-generated configs and docs 2021-05-17 05:57:10 +00:00
Matthew Kennedy bf9eb8844a don't build OS lib (#2700)
* don't build OS lib

* update lua
2021-05-17 08:38:30 +03:00
GitHub set-date Action 028eb7a4c1 Update date 2021-05-17 01:04:43 +00:00
Andrey G 6d849d05c7 Hw layer rearrangement (#2703)
* max31855: move to sensors

* uart GPS driver: move to sensors and rename

* i2c_bb: move to drivers

* LCD HD44780: move to drivers

* ping?
2021-05-16 06:01:00 -04:00
GitHub set-date Action 68a61141c9 Update date 2021-05-16 01:10:54 +00:00
Andrey 06bdf52b3c More low-level firmware coverage for the simulator/unit-tests #2656 2021-05-15 05:27:33 -04:00
GitHub set-date Action ff5f304b36 Update date 2021-05-15 01:04:12 +00:00
Matthew Kennedy 4b6d1e0283 add ability to reset Lua interpreter (#2695)
* stub

* implement reset

* console

* just use the console command

* cleanup

* s

* s

* fix memory tracking
2021-05-14 16:20:27 -04:00
rusefillc cd573a5f9d hiding 8888 mess under the rug
making LPS25 one step more available to Hellen
2021-05-14 10:54:40 -04:00
Matthew Kennedy 0c03a1cb4a const airmass (#2694) 2021-05-14 07:17:22 -04:00
GitHub set-date Action 8b4a615ed5 Update date 2021-05-14 01:06:31 +00:00
GitHub build-firmware Action 8ccfdec033 Auto-generated configs and docs 2021-05-13 21:43:25 +00:00
Matthew Kennedy ad505bfb1b idle indicators (#2692)
* add coasting bit

* remove useless bit
2021-05-13 17:35:00 -04:00
GitHub set-date Action 0217ca8af0 Update date 2021-05-13 01:04:30 +00:00
GitHub build-firmware Action fa7afed545 Auto-generated configs and docs 2021-05-12 22:53:51 +00:00
GitHub set-date Action 6f2423635c Update date 2021-05-12 01:00:01 +00:00
GitHub build-firmware Action 2915757c07 Auto-generated configs and docs 2021-05-12 00:42:39 +00:00
GitHub build-firmware Action 55f09db90f Auto-generated configs and docs 2021-05-11 22:40:44 +00:00
GitHub build-firmware Action 76c2fa5e23 Auto-generated configs and docs 2021-05-11 21:37:56 +00:00
GitHub build-firmware Action 17a5ffbf95 Auto-generated configs and docs 2021-05-11 19:51:41 +00:00
GitHub set-date Action 31d99984f8 Update date 2021-05-11 00:58:30 +00:00
Matthew Kennedy 9307ab6b1e explicitly test PTC thermistors (#2681)
* test ptc

* allow hotter for air cooled people

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-05-10 18:15:09 -04:00
Matthew Kennedy 61b0e85e0a don't lowercase console commands (#2664)
* don't lowercase commands

* print bool lua results

* lua memory command
2021-05-10 11:30:50 -04:00
rusefillc b2faae7070 docs 2021-05-10 09:02:27 -04:00
Matthew Kennedy 3bfa1ce66b always resolve (#2678) 2021-05-10 08:53:19 -04:00
GitHub build-firmware Action d12900e322 Auto-generated configs and docs 2021-05-10 12:32:55 +00:00
Matthew Kennedy 047f62b2b9 remove deprecated getEngineLoadT (#2676)
* remove

* few more
2021-05-10 08:30:41 -04:00
Matthew Kennedy 1aed5c6ae2 remove intermediate buffer (#2668)
* remove define

* goodbye intermediate logging buffer

* free ram! woo!
2021-05-10 08:01:24 -04:00
GitHub build-firmware Action f37ac697c0 Auto-generated configs and docs 2021-05-10 01:02:11 +00:00
Matthew Kennedy 76f2f063d2 Maf in sensor model (#2672)
* init

* consumers

* hasMafSensor

* consumers

* remove

* remove

* s

* guard

* tiny bit of ram

* ram
2021-05-09 20:59:06 -04:00
Matthew Kennedy 3dd6b2efc9 move FSIO aux analog inputs to sensor model (#2669)
* sensor entries

* init

* non-explicit for list init to work

* switch fsio

* no longer need this lua hook

* init
2021-05-09 19:47:37 -04:00
rusefillc 591b2b3c6c Revert "lua on f407 (#2646)"
This reverts commit e35e99f5
2021-05-09 18:25:50 -04:00
Matthew Kennedy e35e99f52d lua on f407 (#2646)
* lua on f4

* move perf trace to efifeatures

* check that it's defined

* cypress and kinetis

* it would help to define the correct thing

* disable buffer if not used

* we can work with 2k

* turn off ramdisk on mre qc

* wow strncpy is useless for truncated strings

* turn off for bootloader

* lto bootloader
2021-05-09 16:25:38 -04:00
Matthew Kennedy 0af7a9cb2d shrink canned tables (#2651)
* helper

* use it miata

* do type safe copy

* miata vvt

* etb

* default iat correction

* magic is afoot here

* hunchback

* misc

* neon

* neon

* aspire

* citroen

* neon

* missed one

* dead

* festiva

* remove andreyism

* very dead

* no need for copy of that function

* cleanup
2021-05-09 14:37:16 -04:00
Matthew Kennedy ae668edf2a Fix multi bank fueling (#2661)
* add cylinder number

* changelog

* wording
2021-05-09 09:37:07 -04:00
Matthew Kennedy 03ea9fa13a Support STM32F7 1MB devices (#2659)
* modify linker script for 1MB devices

* handle null flash address

* actually support 1MB F7

* comment
2021-05-09 09:19:20 -04:00
GitHub set-date Action 24c5f06638 Update date 2021-05-09 00:59:39 +00:00
Andrey G dd46591ad5 hip9011 (#2658)
* hip9011: isolate debug stuff

* hip9011: renames

* hip9011: start sensing knockDetectionWindowStart degres from fire

* engine: more realistic values for knock window

* hip9011: remove magic CS toggling

* hip9011: EFI_HIP_9011_DEBUG should depend on EFI_HIP_9011
2021-05-08 18:43:55 -04:00
GitHub build-firmware Action 2cba913174 Auto-generated configs and docs 2021-05-08 21:43:56 +00:00
Matthew Kennedy d7f9d42e07 Hook up multi bank fuel trim (#2532)
* multi bank trim

* cleaning

* output channels

* output channels
2021-05-08 17:41:50 -04:00
Andrey G ea870c4869 hip9011 (#2654)
* Move HIP states enum out of rusefi_enums.h

-this is internal driver stuff. No need to have it defined globaly.

* Auto-generated configs and docs
2021-05-08 10:08:18 -04:00
GitHub set-date Action 8ad07d087e Update date 2021-05-08 00:55:53 +00:00
GitHub build-firmware Action d5472a672f Auto-generated configs and docs 2021-05-07 23:28:16 +00:00
GitHub build-firmware Action 747ed34b40 Auto-generated configs and docs 2021-05-07 19:43:12 +00:00
Matthew Kennedy 37a3de07cf remove stateChangeCallback from simplepwm (#2644)
* remove callback parameter from cj125

* remove from ext

* remove stateChangeCallback

* alt doesn't need that

* demorgan

* remove call

* bad cut/paste

* check the actual pin in the test
2021-05-07 09:38:41 -04:00
Matthew Kennedy ea6cb14780 move some stuff in to ccm (#2645)
* stuff in ccm

* used memory
2021-05-07 09:35:57 -04:00
Matthew Kennedy b12d392343 pack scheduling_s (#2642)
* pack scheduling_s

* ramz
2021-05-07 08:22:35 -04:00
GitHub build-firmware Action b92f827c36 Auto-generated configs and docs 2021-05-07 03:16:46 +00:00
GitHub set-date Action 477c5f6beb Update date 2021-05-07 00:57:02 +00:00
GitHub build-firmware Action eecb0778f0 Auto-generated configs and docs 2021-05-06 19:28:18 +00:00
rusefillc e6591f0658 code style 2021-05-06 10:43:42 -04:00
GitHub build-firmware Action aaad9256a3 Auto-generated configs and docs 2021-05-06 14:01:30 +00:00
rusefillc ec3f5466c8 code style 2021-05-06 09:58:36 -04:00
GitHub set-date Action 9705921afd Update date 2021-05-06 00:54:21 +00:00
GitHub build-firmware Action b2cf56a5ff Auto-generated configs and docs 2021-05-05 14:59:17 +00:00
GitHub build-firmware Action a9b83d17e3 Auto-generated configs and docs 2021-05-05 14:04:51 +00:00
GitHub set-date Action 19ebd48b24 Update date 2021-05-05 00:55:28 +00:00
GitHub build-firmware Action b775331a3c Auto-generated configs and docs 2021-05-04 19:13:38 +00:00
GitHub build-firmware Action 370180965e Auto-generated configs and docs 2021-05-04 14:14:18 +00:00
Matthew Kennedy 892b03524b Lua debug channels (#2620)
* setdebug hook

* add debug mode

* memory size debug channel

* default script
2021-05-04 10:05:39 -04:00
Matthew Kennedy 6e1212f3ca use setTable (#2621) 2021-05-04 10:03:41 -04:00
Matthew Kennedy 0117dc2dd4 use static buffer for lua heap, enable on f429 (#2619)
* static buffer for lua

* enable lua for 429
2021-05-04 01:03:17 -04:00
GitHub set-date Action ee73067251 Update date 2021-05-04 00:58:28 +00:00
Matthew Kennedy 088ed3c28e interactive lua (#2614)
* interactive lua

* unnecessary pop

* print return value

* enable f7 lua

* match f7 chconf
2021-05-03 17:46:12 -04:00
rusefillc b20505de42 2021 is the year of Hellen 2021-05-03 00:01:53 -04:00
rusefillc bf223aaacf 50% duty cycle is the default for tach signal 2021-05-02 23:47:47 -04:00
rusefillc fa4f936869 docs 2021-05-02 23:46:30 -04:00
rusefillc becf33b240 2021 is the year of Hellen 2021-05-02 23:45:39 -04:00
GitHub set-date Action c168a1125f Update date 2021-05-03 01:02:39 +00:00
rusefillc 59c8ef582f 2021 is the year of Hellen 2021-05-02 19:02:30 -04:00
rusefillc 60ab58c1c8 2021 is the year of Hellen 2021-05-02 18:52:33 -04:00
GitHub build-firmware Action 2ca3a8968a Auto-generated configs and docs 2021-05-02 22:20:31 +00:00
GitHub set-date Action ce3fd7daca Update date 2021-05-02 01:07:30 +00:00
GitHub build-firmware Action 4133f5c11f Auto-generated configs and docs 2021-05-02 00:35:02 +00:00
GitHub build-firmware Action 81a8239ba8 Auto-generated configs and docs 2021-05-01 23:47:11 +00:00
GitHub build-firmware Action 69d0b15345 Auto-generated configs and docs 2021-05-01 19:42:36 +00:00
GitHub set-date Action c1cbd03a1f Update date 2021-05-01 01:03:02 +00:00
GitHub build-firmware Action 3be5b8db2f Auto-generated configs and docs 2021-04-30 15:03:28 +00:00
GitHub build-firmware Action d15d721006 Auto-generated configs and docs 2021-04-30 05:39:53 +00:00
GitHub build-firmware Action f3f5e4215d Auto-generated configs and docs 2021-04-30 05:10:36 +00:00
rusefillc de72978255 Refactoring, technical debt: export more of trigger attributes into triggers.txt file #2077 2021-04-30 01:05:23 -04:00
rusefillc 5d4cec71bf nope, this one is not dead 2021-04-29 23:51:22 -04:00
rusefillc d4edf7a0eb like that maybe? 2021-04-29 23:39:47 -04:00
rusefillc b289f7f037 dead files? 2021-04-29 23:33:30 -04:00
GitHub build-firmware Action 720d08cdd0 Auto-generated configs and docs 2021-04-30 03:19:47 +00:00
GitHub build-firmware Action c17ccd7c32 Auto-generated configs and docs 2021-04-30 03:02:06 +00:00
GitHub build-firmware Action ea781b55c6 Auto-generated configs and docs 2021-04-30 02:46:12 +00:00
Matthew Kennedy db8a4fbb6f Lua tick rate hook (#2606)
* implement setTickRate

* actually load the hook
2021-04-29 22:22:31 -04:00
Matthew Kennedy 65a8941286 more Lua hooks (#2605)
* more hooks

* zero index

* test table hook

* test works

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-29 22:22:04 -04:00
GitHub set-date Action e45a7da7bd Update date 2021-04-30 01:00:58 +00:00
GitHub build-firmware Action fe1d6a2e17 Auto-generated configs and docs 2021-04-29 21:37:27 +00:00
Matthew Kennedy e3bb6c7bdb encapsulate in smart pointer (#2603)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-29 07:44:32 -04:00
Matthew Kennedy 54fca52e42 sensor_type values (#2604)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-29 07:43:46 -04:00
Matthew Kennedy a470c1eec1 lua 5.4 (#2590)
* thread priority

* build

* makefile prep

* call startup

* lua 5.1

* mk

* 5.3

* mk

* I guess lua does something?

* extract hooks, builds for tests

* a bit of error handling

* guard

* bootloader makefile

* remove lua

* submodule

* submodule update

* builds with submodule

* disabled by default

* h7 chconf

* tweaks

* add a useful hook

* move luaconf

* perf trace lua

* test helpers

* lua unit tests

* include to satiate clang
2021-04-28 22:41:25 -04:00
GitHub set-date Action 86336efeaa Update date 2021-04-29 01:02:17 +00:00
GitHub build-firmware Action bb53ce64bc Auto-generated configs and docs 2021-04-28 22:55:13 +00:00
Matthew Kennedy 1bd789a5a5 make wideband log fields match what it's actually sending (#2593)
* make log fields match what it's actually sending

* update wb firmware

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-28 18:28:29 -04:00
GitHub set-date Action eb3dd0e216 Update date 2021-04-28 01:04:11 +00:00
Matthew Kennedy addf97ee08 prep for lua (#2589)
* thread priority

* build

* makefile prep

* call startup

* s
2021-04-27 07:57:08 -04:00
Matthew Kennedy 8f06e1c0c6 higher priority for log buffer flush (#2592) 2021-04-27 07:52:12 -04:00
GitHub build-firmware Action f847bde49f Auto-generated configs and docs 2021-04-26 21:59:44 +00:00
rusefillc cb7cb8ae15 https://rusefi.com/forum/viewtopic.php?p=40654 2021-04-26 17:32:00 -04:00
GitHub build-firmware Action 0a4e7b9c50 Auto-generated configs and docs 2021-04-26 03:12:08 +00:00
GitHub build-firmware Action e84750de40 Auto-generated configs and docs 2021-04-26 01:46:15 +00:00
GitHub set-date Action 43e17ef9dd Update date 2021-04-26 01:07:19 +00:00
rusefillc 99059ef846 https://rusefi.com/forum/viewtopic.php?f=16&t=1996 2021-04-25 09:34:40 -04:00
GitHub build-firmware Action f1c05a7ab7 Auto-generated configs and docs 2021-04-25 13:24:53 +00:00
rusefillc 87e0b28cc4 https://rusefi.com/forum/viewtopic.php?f=16&t=1996 2021-04-25 09:18:35 -04:00
rusefillc 060b8b9c87 https://rusefi.com/forum/viewtopic.php?f=2&t=1993 2021-04-24 22:54:50 -04:00
GitHub set-date Action 32ba08d5ff Update date 2021-04-25 01:08:47 +00:00
shadowm60 003f5b1cfa Haltech dash support (#2570)
* prep for cycletimes

* not it should build

* Defined and used cyclic messages

- defined cyclic messages for dash support
- hardcoded canwrite periodic task at 5ms to ensure correct timing

* tweaks

Update W202/VW candash cyclic config
fix canverbose cycle time configuration from TS

* Update can_dash.cpp

Haltech message definitions

* Update can_dash.cpp

* added HaltechDash

- changed CanTx cycle time
- inject cycle times to dash handlers
- implement first version of HaltechDash

* missed it

while merge with upstream/master
2021-04-24 17:40:48 -04:00
GitHub set-date Action f200be7100 Update date 2021-04-24 01:04:32 +00:00
shadowm60 4ea719c60c Handle can message cyclicity (#2573)
* Handle can message cyclicity

update of canDash to support different cyclicity of messages

* review updates
2021-04-23 20:16:27 -04:00
rusefi 7300bbe750 improving QC process 2021-04-23 00:45:36 -04:00
rusefi 6c75a3d7b4 improving QC process 2021-04-22 22:04:39 -04:00
rusefi 7e4e22f544 Merge remote-tracking branch 'origin/master' 2021-04-22 21:27:15 -04:00
rusefi be0f2210c5 improving QC process 2021-04-22 21:23:20 -04:00
GitHub set-date Action df04dd2c7a Update date 2021-04-23 01:04:11 +00:00
GitHub set-date Action e3cbb939ec Update date 2021-04-22 01:04:15 +00:00
Matthew Kennedy b6fc9befc8 finish it off: remove scheduleMsg (#2575)
* finish it off

* one more logger ptr

* fwd decl

* Revert "one more logger ptr"

This reverts commit a21fb0087ddc748978d716db2710800cf26e437b.

* unused

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-21 15:33:40 -04:00
Matthew Kennedy 5f0791f9fb Destroy all shared logger (#2574)
* most of shared logger

* a few more

* one more

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-21 14:28:48 -04:00
Matthew Kennedy 737ee444b8 rip the bandaid: find-replace most of scheduleMsg (#2572)
* biiiig find replace

* more trivial find replace

* pwm

* almost all of them

* few more

* gpio

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-21 12:53:13 -04:00
GitHub set-date Action f97216d21f Update date 2021-04-21 01:03:01 +00:00
Matthew Kennedy 8cfb63455d Logging remove 3 (#2568)
* ts logger

* sensors

* wideband too

* missed one

* init

* motors, pid, etc

* vvt

* more

* idle

* missed one

* dynoview

* launch

* can

* console IO

* s

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-20 14:09:41 -04:00
GitHub build-firmware Action 1694380bf6 Auto-generated configs and docs 2021-04-20 03:56:24 +00:00
GitHub build-firmware Action f0fc0acdc4 Auto-generated configs and docs 2021-04-20 03:35:59 +00:00
GitHub set-date Action 045b61a23c Update date 2021-04-20 01:03:45 +00:00
Matthew Kennedy 967383dd8e remove simple cases of LoggingWithStorage (#2569)
* remove simple cases

* more simple

* serial

* s

* more

* try memory

* easy

* mmc acc

* that's how much memory

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-19 08:11:59 -04:00
GitHub set-date Action f0b8ab8864 Update date 2021-04-19 01:03:12 +00:00
Matthew Kennedy 992c16b4af logging cleanup 2: sensors, pid, etb, etc (#2567)
* ts logger

* sensors

* wideband too

* missed one

* init

* motors, pid, etc

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-18 20:02:32 -04:00
Matthew Kennedy babb43013f rewrite text logging system (#2439)
* minor cleanup

* enable mailboxes

* priority

* implement new logger

* more cleaning

* signature

* remove debug

* put the assertion back in

* remove debugging

* spelling

* doy

* tweaks & comments

* cleaning

* size_t

* guard more

* test build now

* needs more ram until we can remove LogginWithSTorage

* hunt for memory

* bootloader

* unused

* stub simulator

* it would help to get the signature right

* geez kinetis only has 64k ram

* more guarding because kinetis

* that's now very legal and very cool

* templatify

* s

* force null terminate

* probably fix

* const

* write a test

* disable sensor chart for now

* hide SC ui

* oh nope that breaks many things

This reverts commit c3c1bb324fb484c3d9cc44b7715c234bc0392e1e.

* missed one

* reset after scheduleLogging

* we can't print out the full message because it contains commas which break parsing

* force terminate long buffers

* let's see how much memory we have to play with

* a lot, is the answer

* real thread name

* shrink this for now before its deleted

* turn that back on

* biiig comment

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-18 18:46:47 -04:00
rusefillc 959a63d7de hellen64 scripts and pinout #2565 2021-04-18 10:42:50 -04:00
GitHub build-firmware Action e155a32186 Auto-generated configs and docs 2021-04-18 13:37:46 +00:00
Andrey G 7da6b4fa67 use cylinders_count_t in loops through cylinders (#2563)
to supress signed vs usigned warnings
2021-04-18 08:58:56 -04:00
GitHub set-date Action 9fa1edb53b Update date 2021-04-18 01:04:54 +00:00
GitHub set-date Action 85194f7135 Update date 2021-04-17 01:01:34 +00:00
GitHub set-date Action 28bb808eb9 Update date 2021-04-16 01:02:48 +00:00
rusefillc 9c1aa580f1 WOW major scheduling drama on NB2 running with Proteus #2533 2021-04-15 19:12:09 -04:00
rusefillc f0c98325be WOW major scheduling drama on NB2 running with Proteus #2533
totally same numbers for NB1 just simpler code
2021-04-15 18:44:37 -04:00
rusefillc 6bc7a0e134 WOW major scheduling drama on NB2 running with Proteus #2533
removing weird comments
2021-04-15 18:22:23 -04:00
GitHub build-firmware Action 5aa4bff04c Auto-generated configs and docs 2021-04-15 20:50:35 +00:00
GitHub build-firmware Action a8bfcacc53 Auto-generated configs and docs 2021-04-15 05:23:00 +00:00
Matthew Kennedy 8bb32b2199 gppwm zero option (#2557)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-15 01:08:34 -04:00
GitHub set-date Action 4fc78d22b7 Update date 2021-04-15 01:03:18 +00:00
GitHub build-firmware Action 2debd4bb46 Auto-generated configs and docs 2021-04-14 01:18:43 +00:00
GitHub set-date Action c38e6a21ec Update date 2021-04-14 01:01:21 +00:00
Matthew Kennedy 774f4416a7 constexpr-ify log field list (#2548)
* constexprify

* reclaim ram

* more constexpr

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-13 20:16:18 -04:00
rusefillc 28afbd648b dead code - same value set by 's->initialize' 2021-04-13 01:11:03 -04:00
rusefillc 80adaadd7a Kawasaki KX450F trigger wheel #2538 2021-04-13 00:24:52 -04:00
GitHub set-date Action d428e20f6b Update date 2021-04-13 01:06:18 +00:00
GitHub build-firmware Action 4baea664d8 Auto-generated configs and docs 2021-04-12 18:12:58 +00:00
Matthew Kennedy d7e95cd31f improve sensor chart flush behavior (#2545)
* disable sensor chart

* type signature, guards

* we can't log the message as that confuses the parser

* dead

* this syntax was technically illegal

* more

* turn it back on

* remove config

* api

* implement

* ui

* java ui
2021-04-12 14:05:52 -04:00
GitHub build-firmware Action d13fa8d1f3 Auto-generated configs and docs 2021-04-12 12:25:48 +00:00
Matthew Kennedy 15de7b8c5d check if flash erase failed (#2543)
* check flash erase result

* format

* string

* s
2021-04-12 08:18:11 -04:00
GitHub build-firmware Action 92afc69055 Auto-generated configs and docs 2021-04-12 04:26:37 +00:00
GitHub set-date Action 4b8d198c4b Update date 2021-04-12 01:06:03 +00:00
rusefillc 448dafb5f2 https://rusefi.com/forum/viewtopic.php?p=40383 2021-04-11 18:20:35 -04:00
rusefillc 5968149584 https://github.com/rusefi/hellen72/issues/25 2021-04-10 23:30:36 -04:00
rusefillc 067bdc188f https://github.com/rusefi/hellen72/issues/25 2021-04-10 23:22:25 -04:00
GitHub set-date Action 4e7943c6cd Update date 2021-04-11 01:06:44 +00:00
Matthew Kennedy 6a2a6da67f multiple mass storage (#2535)
* driver

* plumbing

* guard adjust

* read correct lun

* de-template

* rearrange

* guard

* guard

* memory

* headers

* memory

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-10 08:35:41 -04:00
GitHub set-date Action e4f89bb0ce Update date 2021-04-10 01:03:45 +00:00
rusefillc 2547283f45 Kawasaki KX450F trigger wheel #2538 2021-04-09 12:44:28 -04:00
rusefillc 06ada8562b Kawasaki KX450F trigger wheel #2538 2021-04-08 22:16:14 -04:00
GitHub build-firmware Action d1f4709d55 Auto-generated configs and docs 2021-04-09 02:10:22 +00:00
GitHub set-date Action 09ef712995 Update date 2021-04-09 01:00:43 +00:00
rusefillc 80d080da6f helping us trace CUSTOM_FSIO_STACK_SIZE 2021-04-08 15:59:42 -04:00
rusefillc c3270fb715 helping us trace CUSTOM_FSIO_STACK_SIZE 2021-04-08 15:15:12 -04:00
rusefillc ffe845ab1a CUSTOM_ERR_VVT_OUT_OF_RANGE warning false-positive fix #2534 2021-04-08 14:39:26 -04:00
GitHub set-date Action d626f3d370 Update date 2021-04-08 01:07:00 +00:00
GitHub build-firmware Action 67a6ecb595 Auto-generated configs and docs 2021-04-07 20:46:09 +00:00
rusefi 02406641c6 trigger and VVT duty cycle integration into limp manager #2523 2021-04-07 16:44:21 -04:00
rusefi 3d89cc2093 trigger and VVT duty cycle integration into limp manager #2523 2021-04-07 15:17:01 -04:00
GitHub build-firmware Action c5c8d4fc22 Auto-generated configs and docs 2021-04-07 16:18:41 +00:00
rusefillc c886394947 trigger and VVT duty cycle integration into limp manager #2523 2021-04-07 12:16:23 -04:00
rusefillc 9c26a84be9 trigger and VVT duty cycle integration into limp manager #2523 2021-04-07 01:21:28 -04:00
GitHub set-date Action 5971428b1d Update date 2021-04-07 01:02:55 +00:00
GitHub set-date Action 6a7c0b689c Update date 2021-04-06 01:03:54 +00:00
GitHub build-firmware Action a137d2c3e6 Auto-generated configs and docs 2021-04-05 19:58:54 +00:00
Matthew Kennedy 7782ebd7b4 Ford redundant ETB tps (#2519)
* ford tps

* configurable maximum

* initialization

* check consistency when in the low range

* print info

* default

* config field

* config parameter

* test

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-05 15:57:03 -04:00
rusefillc a9e822f790 'displayLogicLevelsInEngineSniffer' on VVT input reports too much into engine sniffer fix #2528 2021-04-04 23:12:07 -04:00
rusefillc f8aa71bf63 refactoring 2021-04-04 23:03:51 -04:00
rusefillc 549839b0de engine sniffer into unit tests 2021-04-04 22:41:38 -04:00
rusefillc 4a94e65a2e code style? 2021-04-04 22:09:22 -04:00
rusefillc 181db048fe todo? 2021-04-04 22:05:55 -04:00
GitHub set-date Action 962026f33b Update date 2021-04-05 01:05:40 +00:00
GitHub build-firmware Action e23a3d39c0 Auto-generated configs and docs 2021-04-05 00:01:45 +00:00
Andrey G a0053d5845 hip9011 and friends (#2527)
* engine math: extrant getFiringOrderTable for reuse

* engine math: getNextFiringCylinderId helper

* introduce knock_logic: first member is getCylinderKnockBank()

moved from software_knock.cpp

* hip9011: support two inputs/banks

* fix CI

* Board Subaru EG33: populated with TPIC8101 with Advanced mode

* hip9011: test communication in advanced mode

* hip9011: handle situation when chip is already in advanced mode

* Board Subaru EG33: cylinder to knock bank mapping

* hip9011: count spi transactions in advansed mode too

* hip9011: reset incalid responce counter after chip initialization

* hip9011: make debug output more structured
2021-04-04 18:13:21 -04:00
rusefillc 9871ab15b2 linking error on jenkins and Andrey's windows desktop fix #2520 2021-04-03 23:34:56 -04:00
GitHub set-date Action 2aa9b3cd57 Update date 2021-04-04 01:05:14 +00:00
GitHub build-firmware Action d1e86436dd Auto-generated configs and docs 2021-04-04 00:31:15 +00:00
GitHub set-date Action 8e17acdab9 Update date 2021-04-03 01:01:42 +00:00
GitHub set-date Action c8fe69a952 Update date 2021-04-02 01:10:09 +00:00
Matthew Kennedy d6c9f1d84f aux temp (#2515) 2021-03-31 22:54:59 -04:00
Matthew Kennedy 8aed80c332 not all listeners are sensors (#2514)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-31 22:51:49 -04:00
GitHub set-date Action e12f07ffc0 Update date 2021-04-01 01:03:41 +00:00
Matthew Kennedy 761e65c710 make board config override actually usable (#2508)
* new function

* hellen

* MRE

* proteus

* put those function declarations in a reasonable place

* put the comment back

* weak

* move that to a reasonable place

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-31 14:46:50 -04:00
GitHub set-date Action cd03d83c2b Update date 2021-03-31 00:57:56 +00:00
Andrey G 112b4d1182 Hip9011 (#2512)
* hip9011: coexistance with other spi devices

* hip9011: rework so SPI transfer is invoked from thread

also use polling spi exchange to avoid cache problems

* hip9011: move calculations from ADC callback to thread

* hip9011: big cleanup

* hip9011: simplify spi communication

* No need to set knockBandCustom if it is not custom

HIP9011 calculates knockBand from cylinderBore same way

* hip9011: make unit test happy

* hip9011: fix unit test

* hip9011: remove duplicated initialization, reorder

* hip9011: just renames and data type adjustments

* hip9011: rename BAND() to HIP9011_BAND()

* hip9011: move some code from lookup.cpp to logic.cpp

* hip9011: move initEngineNoiseTable to engine_configuration.cpp

* hip9011: move lookup tables to hip9011_logic.c

* hip9011: remove empty files

* hip9011: additional checks
2021-03-30 10:56:25 -04:00
Matthew Kennedy 9810406fa6 fix (#2511) 2021-03-30 07:28:22 -04:00
GitHub set-date Action 23c73791bd Update date 2021-03-30 01:00:14 +00:00
GitHub build-firmware Action 96d59b4629 Auto-generated configs and docs 2021-03-29 13:06:35 +00:00
Matthew Kennedy f24c15a9a2 More gppwm and fsio (#2509)
* gppwm aux temp

* fsio fuel flow rate and oil pressure

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-29 08:57:37 -04:00
GitHub set-date Action 32cedfd08d Update date 2021-03-29 01:03:37 +00:00
GitHub build-firmware Action 87a8cb9a78 Auto-generated configs and docs 2021-03-28 12:41:23 +00:00
GitHub build-firmware Action ccac435c92 Auto-generated configs and docs 2021-03-28 12:09:36 +00:00
Matthew Kennedy 204aa33e9a goodbye ignitionOffset (#2503)
* remove

* set the timing map to do what the offset used to do

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-28 08:00:09 -04:00
GitHub set-date Action 947d335a20 Update date 2021-03-28 01:01:53 +00:00
GitHub build-firmware Action ead0e378e8 Auto-generated configs and docs 2021-03-27 23:02:46 +00:00
Andrey G 5fda278503 hip9011: get callback from spark on each cylinder (#2499)
* hip9011: get callback from spark on each cylinder

* hip9011: cleanup unused
2021-03-27 14:12:49 -04:00
GitHub set-date Action 7de5e303a3 Update date 2021-03-27 01:00:23 +00:00
Matthew Kennedy ce142907a0 replace print/printMsg with scheduleMsg (#2497)
* start cleaning

* disabled feature means don't print that it's disabled

* cli

* usages

* printMsg -> scheduleMsg

* this is alllll dead now

* no crlf please

* all hope is lost if you manage to hit this line

* tests

* tests

* ok we did actually need that part

* sim

* d

* kinetis

* it did ifdef, not if

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-26 17:23:26 -04:00
GitHub set-date Action 743d7ffa90 Update date 2021-03-26 00:53:17 +00:00
Matthew Kennedy cc566744be write flash on separate thread for H7 (#2490)
* write flash on separate thread for H7

* cleanup

* getting the parameters in the correct order generally helps

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-25 18:44:41 -04:00
Matthew Kennedy 368415972e read configuration from flash exactly once (#2481)
* early hw init

* s

* read configuration exactly once

* cleanup

* housekeeping

* test friendly

* ugh bad merge

* that is a noop

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-25 18:16:26 -04:00
Matthew Kennedy 2839c6f069 use cpp (#2493) 2021-03-25 18:12:17 -04:00
Matthew Kennedy 4e1d30f86d plumbing for multiple vvt (#2488)
* plumb multiple vvt

* fix test

* s

* fix barra while we're at it

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-25 07:39:23 -04:00
GitHub set-date Action 904717b77b Update date 2021-03-25 00:29:25 +00:00
GitHub set-date Action 59c589a177 Update date 2021-03-24 00:49:15 +00:00
GitHub build-firmware Action 00f7b19e0d Auto-generated configs and docs 2021-03-24 00:29:05 +00:00
GitHub build-firmware Action 7cdd6f8228 Auto-generated configs and docs 2021-03-23 19:20:23 +00:00
GitHub set-date Action e9cd88a926 Update date 2021-03-23 00:48:35 +00:00
Matthew Kennedy 92d249918b rename setBoardConfigurationOverrides (#2479)
* rename

* proteus

* comments

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-22 14:15:09 -04:00
GitHub build-firmware Action 335d55b48d Auto-generated configs and docs 2021-03-22 11:54:44 +00:00
Matthew Kennedy db7856523c barra vvt cam pattern (#2483)
* barra vvt cam pattern

* two tooth sync

* I think this needs to be here too
2021-03-22 07:48:29 -04:00
GitHub set-date Action 77b0b8f5d2 Update date 2021-03-22 00:49:10 +00:00
GitHub set-date Action 0b021cf416 Update date 2021-03-21 00:51:23 +00:00
rusefillc 1162e5e75b time_since_boot should be used in MAIN_RELAY_LOGIC #2258
safer implementation for now
2021-03-20 12:47:02 -04:00
Andrey G aa05ff195d Hip9011 and cleanups (#2477)
* hip9011: move hipCs out of EnginePins to hip9011 driver

* hip9011: cleanup debug output, save few RAM bytes

* Supress few signed vs unsigned warnings
2021-03-20 08:40:36 -04:00
GitHub set-date Action 3cfbd336e2 Update date 2021-03-20 00:48:31 +00:00
GitHub build-firmware Action 1144514671 Auto-generated configs and docs 2021-03-19 21:20:54 +00:00
Matthew Kennedy 2bf833a1ee Usable fuel consumption data/gauges (#2474)
* fuel consumption

* gauge names

* consumers

* obd

* binary logging

* doesn't need explicit constructor

* getters

* it works

* correct for injections per cycle

* datalog

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-19 17:04:42 -04:00
GitHub build-firmware Action 62c38de068 Auto-generated configs and docs 2021-03-19 12:41:10 +00:00
Matthew Kennedy 5e6746c3aa Implement nonlinear fuel level sender (#2473)
* table function

* config fields

* sensor type

* switch consumers

* init the sensor

* ui

* 1mv resolution

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-19 08:39:08 -04:00
GitHub set-date Action c16757b75a Update date 2021-03-19 00:49:12 +00:00
Matthew Kennedy d9f58c2993 fix (#2471) 2021-03-18 04:02:32 -04:00
GitHub set-date Action 058046ceb0 Update date 2021-03-18 00:48:10 +00:00
Matthew Kennedy 925a6ca086 harden against various no-boot scenarios (#2468)
* zero length trigger

* validate config

* validate cylinder count

* wrong type on cylinder count

* invalid comment

* invalid SPI
2021-03-17 09:24:13 -04:00
GitHub set-date Action d32e1bba4f Update date 2021-03-17 00:48:26 +00:00
GitHub set-date Action 2dc0c9306f Update date 2021-03-16 00:47:02 +00:00
Matthew Kennedy c168c748ea dead code, warnings (#2461) 2021-03-15 10:23:19 -04:00
Matthew Kennedy 10a5d1fd76 set 50% target for ETB autotune (#2459)
* 50% target for autotne

* pass target in

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-15 08:54:55 -04:00
GitHub set-date Action d84c4e28f3 Update date 2021-03-15 00:48:29 +00:00
Matthew Kennedy 910f46267f VVT uses closed loop controller framework (#2453)
* vvt uses framework

* builds

* rename, update headers

* s

* testable

* write some basic tests

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-14 19:31:46 -04:00
rusefillc 7b66ec5cf3 VAG MQB 2021-03-14 17:40:33 -04:00
GitHub build-firmware Action 8fd70f63a1 Auto-generated configs and docs 2021-03-14 21:30:08 +00:00
rusefillc 99787df047 VAG MQB 2021-03-14 17:27:26 -04:00
GitHub build-firmware Action 3d9483144a Auto-generated configs and docs 2021-03-14 21:22:47 +00:00
Matthew Kennedy 4171ab2d11 Add set wideband index buttons (#2455)
* update wideband firmware

* implement index set

* bench test, error on failure

* guard wideband
2021-03-14 17:20:50 -04:00
Matthew Kennedy 962e0b32e7 fix error/warning buffer overflow (#2456)
* fix error printing overflow

* make the worst offender shorter

* error as warning

* these don't need that flag set
2021-03-14 09:31:11 -04:00
GitHub set-date Action 55b7a60f06 Update date 2021-03-14 00:50:10 +00:00
Matthew Kennedy 765895d913 Fuel pressure sensor checks (#2449)
* test for missing sensor

* test negative pressure delta checking logic

* test new hasSensor logic
2021-03-12 23:32:41 -05:00
GitHub build-firmware Action da272532ff Auto-generated configs and docs 2021-03-13 04:21:15 +00:00
GitHub build-firmware Action 8e9c938434 Auto-generated configs and docs 2021-03-13 03:33:50 +00:00
GitHub set-date Action ce848c06a6 Update date 2021-03-13 00:46:26 +00:00
GitHub build-firmware Action 5b25a39955 Auto-generated configs and docs 2021-03-12 05:18:18 +00:00
Matthew Kennedy 72214b8b77 default config, UI tweaks (#2444)
* s

* fix this while we're at it

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-12 00:16:24 -05:00
rusefillc 9f90387d09 vBatt -> SensorType::vBatt fix #2260 2021-03-11 23:07:18 -05:00
rusefillc 98eae45094 vBatt -> SensorType::vBatt #2260 2021-03-11 22:52:34 -05:00
rusefillc 416c65b475 vBatt -> SensorType::vBatt #2260 2021-03-11 22:44:59 -05:00
rusefillc a0a6e445dd Merge remote-tracking branch 'origin/master' into master 2021-03-11 22:44:11 -05:00
rusefillc 5d6db3fbc5 my bad 2021-03-11 22:42:59 -05:00
GitHub set-date Action ffb55722fb Update date 2021-03-12 00:47:42 +00:00
rusefillc b56bc1f167 "onTime above limit %dus", TOO_FAR_INTO_FUTURE_US 2021-03-11 14:05:15 -05:00
GitHub build-firmware Action 08081f179f Auto-generated configs and docs 2021-03-11 13:40:39 +00:00
Matthew Kennedy ce3878949c stop trigger emulator PWM when disabled (#2443)
* simplify trig emulator

* spelling is hard

* fix various builds

* spelling again

* add command/button for external stimulation

* enable hw stim for HW-in-loop test

* s

* I does spelling good

* clear flag when disabled

* generate enough for console build

* don't disable that

* this test needs external stimulation enabled

* import

* ui improvements

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-11 08:38:52 -05:00
GitHub set-date Action 91ec7c1536 Update date 2021-03-11 00:48:02 +00:00
Matthew Kennedy b3d132278d accurate bench test (#2441)
* accurate bench test

* allow shorter pulses
2021-03-10 17:30:13 -05:00
GitHub set-date Action a4687d7c5a Update date 2021-03-10 00:47:24 +00:00
Matthew Kennedy dafd28d751 enable CAN on H7 (#2393)
* enable

* guard correctly

* h7 bit timing

* allow longer frames

* allow data smaller than maximum

* mcu temperature

* typo

* tx message

* testing

* check for CAN or FDCAN

* don't need that any more

* h7 bitrate config

* undo testing

* h7-ify msg tx

* comment

* break out SID/EID macros

* guard differently

* update ChibiOS

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-09 18:54:01 -05:00
Matthew Kennedy 943e6078c8 logging cleanup before refactor (#2438)
* minor cleanup

* more cleaning

* signature

* spelling

* doy
2021-03-09 08:43:29 -05:00
GitHub set-date Action 3a291058c5 Update date 2021-03-09 00:46:44 +00:00
Matthew Kennedy 64a36a8003 ETB uses error accumulator (#2435)
* error accumulator

* makefile

* accumulate ETB error

* comment

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-08 19:18:35 -05:00
rusefillc c954803292 TDC Trigger Position #2428
any single-tooth primary trigger should automatically run with "useOnlyPrimaryForSync = true;"
2021-03-08 00:00:48 -05:00
rusefillc 1b1bd0065d removing dead code - initialize() sets 'true' already 2021-03-07 23:37:54 -05:00
Matthew Kennedy e6d24d3010 avoid various "no connect" scenarios (#2432)
* init mmc and USB earlier

* connect USB faster
2021-03-07 20:21:42 -05:00
Matthew Kennedy d7536bf059 finish off vbatt -> sensor model (#2433)
* more vbatt

* s

* goodbye voltage

* makefile

* apparently that part was in use

* include

* mocking
2021-03-07 20:18:32 -05:00
GitHub set-date Action fc5aa6b690 Update date 2021-03-08 00:47:40 +00:00
Matthew Kennedy 506fb55f5c Store ini filesystem in compressed block device (#2420)
* add module

* implement compressed block device

* enable for f7/h7

* script

* stub compressed image

* implement

* call the script

* headers, comments, fix init bug

* set msd options

* update chibios-contrib

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-07 19:25:34 -05:00
Matthew Kennedy a7a82b1aab remove lastTriggerToothEventTimeNt (#2430)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-07 17:11:50 -05:00
Matthew Kennedy d5bc14719e trigger decoder timer (#2427)
* part 2

* stale comment

* include

* why was this a macro

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-07 16:35:58 -05:00
Matthew Kennedy abdce83190 virtual zero timer (#2426)
* virtual zero timer

* it would help to call the correct function

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-07 15:32:41 -05:00
GitHub set-date Action b43b22c8dc Update date 2021-03-07 00:49:24 +00:00
GitHub build-firmware Action bd58c2cdc0 Auto-generated configs and docs 2021-03-06 02:09:06 +00:00
GitHub build-firmware Action 80d6a84ddd Auto-generated configs and docs 2021-03-06 01:48:51 +00:00
GitHub build-firmware Action ea78c87b0f Auto-generated configs and docs 2021-03-06 01:45:12 +00:00
GitHub build-firmware Action 382d45c18c Auto-generated configs and docs 2021-03-06 01:34:46 +00:00
GitHub build-firmware Action 306737f17d Auto-generated configs and docs 2021-03-06 01:00:28 +00:00
GitHub set-date Action 05e34512dd Update date 2021-03-06 00:46:28 +00:00
GitHub build-firmware Action b2a3b3b1b2 Auto-generated configs and docs 2021-03-06 00:30:16 +00:00
slowriot 9a8c2516ee Add two new V8 firing orders (#2423)
* fix typos, spelling

* add two V8 firing orders

* use the available number of CPU cores, not just 4

* add new firing orders to config

* updating generated files to include new v8 firing orders

* reverting update of auto-generated files

* correct firing order labels for new firing orders
2021-03-05 19:28:17 -05:00
GitHub build-firmware Action b8dc34493c Auto-generated configs and docs 2021-03-05 22:44:12 +00:00
GitHub build-firmware Action 960afe1514 Auto-generated configs and docs 2021-03-05 03:41:12 +00:00
Matthew Kennedy 122f31fe4a hook up lps25 on proteus (#2418)
* hook up lps25

* it would help to include all the files

* unguard some stuff

* unguard more

* guarding

* s

* guard

* only register if init worked

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-04 22:39:20 -05:00
GitHub build-firmware Action 7430bad8d7 Auto-generated configs and docs 2021-03-05 02:01:14 +00:00
GitHub set-date Action 3ed32baf46 Update date 2021-03-05 00:47:05 +00:00
GitHub set-date Action 625f0fd121 Update date 2021-03-04 00:46:46 +00:00
GitHub build-firmware Action ccbc4f2a2a Auto-generated configs and docs 2021-03-03 12:32:56 +00:00
Matthew Kennedy 89d71e4379 Compute injection duration later in the pipeline (#2175)
* injector model, test

* new math

* inject fuel based on new math

* tests

* fix

* it should work like this

* format

* update TPS AE even when we're cutting fuel

* comment

* conversion factor

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-03 07:30:56 -05:00
GitHub build-firmware Action 59ecd6d594 Auto-generated configs and docs 2021-03-03 03:16:19 +00:00
GitHub set-date Action d5adf0bdfe Update date 2021-03-03 00:45:57 +00:00
GitHub set-date Action f9e610ffa0 Update date 2021-03-02 00:38:34 +00:00
GitHub build-firmware Action 9e3fb6b527 Auto-generated configs and docs 2021-03-01 14:54:41 +00:00
GitHub build-firmware Action cd5df39d8d Auto-generated configs and docs 2021-03-01 03:36:14 +00:00
GitHub set-date Action ad177fca88 Update date 2021-03-01 00:48:45 +00:00