Commit Graph

9700 Commits

Author SHA1 Message Date
Matthew Kennedy cc8c28f7d2 dfco (#2544)
* dfco

* tool tip
2021-04-12 08:17:17 -04:00
GitHub build-firmware Action 92afc69055 Auto-generated configs and docs 2021-04-12 04:26:37 +00:00
rusefi c5a275d8b4 Merge remote-tracking branch 'origin/master' 2021-04-12 00:04:52 -04:00
rusefi c3ec4a940e MAP3 (A15) Not available for input in TS #27 2021-04-12 00:00:21 -04:00
GitHub set-date Action 4b8d198c4b Update date 2021-04-12 01:06:03 +00:00
rusefillc d6273206b6 Merge remote-tracking branch 'origin/master' into master 2021-04-11 18:20:43 -04:00
rusefillc 448dafb5f2 https://rusefi.com/forum/viewtopic.php?p=40383 2021-04-11 18:20:35 -04:00
Matthew Kennedy 96e655ff4e sd buffer (#2540) 2021-04-11 10:15:54 -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
David Holdeman b655b70f58 quote proteus pins with # (#2539) 2021-04-10 08:35:00 -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
rusefillc 4708f661d4 Kawasaki KX450F trigger wheel #2538 2021-04-08 22:07:15 -04:00
GitHub set-date Action 09ef712995 Update date 2021-04-09 01:00:43 +00:00
rusefillc 8080f3bde7 helping us trace CUSTOM_INTEPOLATE_ERROR 2021-04-08 16:14:06 -04: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
rusefi db85ce95e9 changelog 2021-04-04 23:36:49 -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 b378fcdb88 engine sniffer into unit tests 2021-04-04 22:48:48 -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
rusefillc 9e6674f69d engine sniffer into unit tests 2021-04-04 22:04:59 -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
rusefillc 87d45eda15 Merge remote-tracking branch 'origin/master' into master 2021-04-04 19:56:19 -04:00
rusefillc e6b7bf2e8d 'displayLogicLevelsInEngineSniffer' on VVT input reports too much into engine sniffer #2528 2021-04-04 19:56:08 -04: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
andreika-git 56375c88ee Set the default pin states to input-pulldown instead of input-pullup for Hellen72 (#2525)
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2021-04-04 10:29:05 -04:00
rusefillc 9871ab15b2 linking error on jenkins and Andrey's windows desktop fix #2520 2021-04-03 23:34:56 -04:00
Matthew Kennedy b7aacbe622 h7 dfu and comments (#2522) 2021-04-03 21:58:29 -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
Matthew Kennedy b20ead8d18 More binary log fields (#2518)
* gauge names

* binary log

* it only takes scaled channel
2021-04-03 20:28:55 -04:00
rusefi 53689d91aa explicit status for MSD SD mode 2021-04-03 19:42:54 -04:00
GitHub set-date Action 8e17acdab9 Update date 2021-04-03 01:01:42 +00:00
rusefillc d5a3f70ac3 https://github.com/rusefi/hellen72/issues/19 2021-04-02 14:08:59 -04:00
GitHub set-date Action c8fe69a952 Update date 2021-04-02 01:10:09 +00:00
rusefi f8b0de9123 reuse of TPS calibration 2021-04-01 17:05:01 -04:00
rusefi a1018cf269 engineConfiguration->vbattAdcChannel = EFI_ADC_5; // 4T 2021-04-01 16:47:20 -04:00
rusefi 1d9ba89273 SD init: document or fix unlock SPI fix #2516 2021-04-01 16:21:19 -04:00
rusefi da64802066 SD init: document or fix unlock SPI #2516 2021-04-01 16:20:08 -04: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
Matthew Kennedy ff12c4d214 speed up boot by 48 ms (#2506)
* speed up boot

* two
2021-03-29 22:59:38 -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
Matthew Kennedy 1b69ae320e enable serial pins on proteus (#2507)
* enable serial on proteus

* make h7 happy
2021-03-28 17:03:14 -04:00
Matthew Kennedy 72dac58f9b fix multi-serial-port insanity (#2476)
* carve out UART specific

* implement channel

* config cleanup

* use new config

* bootloader

* dead code

* s

* h7 inherits f7

* oops

* ok now it's right

* tests

* cleanup

* call setup

* put that in its own file

* cleanup

* format

* guard

* not needed

* improve guarding

* portable

* allow override of uart mode

* fixes for bootloader

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-28 09:06:36 -04:00
GitHub build-firmware Action 87a8cb9a78 Auto-generated configs and docs 2021-03-28 12:41:23 +00:00
Matthew Kennedy fddd376a3f various TS project improvements, dead config fields (#2504)
* after start enrichment limits

* rework menus and VVT page

* multispark language

* dead fuel pressure field

* vw

* comments

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-28 08:39:26 -04:00
GitHub build-firmware Action ccac435c92 Auto-generated configs and docs 2021-03-28 12:09:36 +00:00
Matthew Kennedy 71a74fd233 slow down fuel level (#2505) 2021-03-28 08:01:08 -04: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
rusefillc bc3cf715c9 Shall we drop "ignitionOffset" feature? #2500
dead code and TS progress
2021-03-27 19:00:35 -04: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
Matthew Kennedy 00f726713a Init order h7 (#2495)
* init order

* s
2021-03-25 21:12:19 -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 67925a98fc +x (#2492) 2021-03-25 17:16:25 -04:00
Matthew Kennedy 0e6f60ee8f setup script tweak path (#2491)
* fix

* setup script

* chmod

* gdb

* use path instead of symlink
2021-03-25 16:22:16 -04:00
Matthew Kennedy 53a579abbf move some initialization steps earlier (#2480)
* early hw init

* s

* Revert "s"

This reverts commit 10d3039168613cfb2b0cf1c960d2f18894745ce3.

* bor

* I can't type

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-25 16:22:03 -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
Matthew Kennedy a97a2393d9 add setup script for linux environment (#2486)
* fix

* setup script

* chmod

* gdb
2021-03-24 21:39:49 -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
Matthew Kennedy 89cdb7fe89 fix (#2485) 2021-03-23 20:27:10 -04:00
GitHub build-firmware Action 7cdd6f8228 Auto-generated configs and docs 2021-03-23 19:20:23 +00:00
Matthew Kennedy 9b5ec4bdef vvt ui (#2484) 2021-03-23 15:18:36 -04: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
Matthew Kennedy e38aa3aa8c fix (#2478) 2021-03-20 22:07:52 -04: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
Matthew Kennedy d65190b8a5 embiggen MSD stack (#2475) 2021-03-19 19:56:47 -04:00
GitHub build-firmware Action 1144514671 Auto-generated configs and docs 2021-03-19 21:20:54 +00:00
Matthew Kennedy 7cdad67f3f USB uses its own channel, add implementations for serial channels (#2472)
* USB uses its own channel

* revise channels

* put serial ports in their own file

* h7 uart incompatible for now

* guard for sim
2021-03-19 17:05:04 -04: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 cb33bb77ae Dedicated code path for USB console/TS (#2465)
* new apis

* dedicated USB path

* move decl

* init

* don't init usb twice

* guard

* check that we're initialized before using TS

* comment

* guard

* guard USB

* brain doesn't go good

* make tests happy

* dead define

* cypress

* ifdef != if

* s

* include priority

* don't start a thread we know we don't need

* bad-ish merge

* const

* why did this code exist...?

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-18 14:07:22 -04: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
Matthew Kennedy 34b678728a extract CAN TS channel (#2469)
* extract CAN channel

* this is gross
2021-03-17 08:39:13 -04:00
GitHub set-date Action d32e1bba4f Update date 2021-03-17 00:48:26 +00:00
Andrey G 4b9181a5cd Enable trigger stimulation after HW timer initialized (#2466)
To avoid 'CRITICAL error: hwTimer not alive' error
2021-03-16 17:31:30 -04:00
GitHub set-date Action 2dc0c9306f Update date 2021-03-16 00:47:02 +00:00
Matthew Kennedy 2d4b434534 more 2021-03-15 17:12:34 -04:00
Matthew Kennedy a4da2322ef this syntax was technically illegal 2021-03-15 17:12:30 -04:00
Matthew Kennedy a26002bc02 type signature, guards 2021-03-15 17:11:11 -04:00
rusefillc d9a3638dc6 Potato Chip Day 2021 Release 2021-03-15 13:57:47 -04: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
rusefillc 876382d529 VAG MQB 2021-03-14 21:20:02 -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
Matthew Kennedy 540b9000d5 implement ads1015 driver (#2458)
* first approximation of ads1015

* fix ads

* misc

* comment

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-14 19:02:42 -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
rusefillc 30d3358d84 fix error/warning buffer overflow #2456 2021-03-14 09:53:15 -04:00
rusefillc 212b9d6684 fix error/warning buffer overflow #2456 2021-03-14 09:52:27 -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
rusefillc 242d173e5a poke 2021-03-13 16:33:05 -05:00
Matthew Kennedy 5cc2efc3e5 use full memory on STM32F42x (#2450)
* linker script

* hook it up
2021-03-13 07:26:58 -05:00
Matthew Kennedy 19e77b31f4 put back (#2452) 2021-03-13 06:59:33 -05:00
rusefillc 344844745f false positive GHA drama #2446
poke #4
2021-03-12 23:39:31 -05:00