Commit Graph

772 Commits

Author SHA1 Message Date
rusefillc cb7cb8ae15 https://rusefi.com/forum/viewtopic.php?p=40654 2021-04-26 17:32:00 -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
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
rusefillc 959a63d7de hellen64 scripts and pinout #2565 2021-04-18 10:42:50 -04: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
rusefillc 5968149584 https://github.com/rusefi/hellen72/issues/25 2021-04-10 23:30:36 -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 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
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 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
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 92d249918b rename setBoardConfigurationOverrides (#2479)
* rename

* proteus

* comments

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-22 14:15:09 -04: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
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
rusefi 6c9416daa9 aux pid is now VVT 2021-02-10 12:41:38 -05:00
rusefi 4b8a92ccc9 M62T vanos support #2243 2021-02-08 18:08:26 -05:00
rusefi d05edd2a3d M62T vanos support #2243 2021-02-08 16:16:26 -05:00
Andrey G 0f47cff952 Add subaru eg33 (#2294)
* engine: Subaru SVX EG33 engine configuration

Not tested yet. Just basic settings and placeholder

* board: add Dron_Gus's Subaru EG33 p'n'p board

* board: subaru eg33: linker script: stack, bss and heap to ram0

* board: subaru eg33: add mapping.yaml

* board: subaru eg33: scripts for autogenerated

* board: subaru eg33: fix DMA conflict (ADC1 vs SPI5)

* board: subaru eg33: enable ADC3

* board: subaru eg33: Autogenerated

* board: subaru eg33: disable fsio control of Main Relay

Default MAIN_RELAY_LOGIC cause error during parsing

* board: subaru eg33: configuration hack to fix usbconsole.c

* gen_config: generate config for Subaru SVX board too
2021-02-06 12:50:34 -06:00
Matthew Kennedy 7fec313f50 Proteus analog input ci (#2271)
* test vbatt

* test proteus vbatt

* tolerance

* these don't work on proteus

* new engine type

* test analog input

* more test points, less tolerance

* console build needs this file generated

* only include for hw ci builds

* wiring info

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-03 13:34:48 -06:00
Matthew Kennedy 654bf0d698 Map fallback logic, TS cleanup (#2247)
* add new field

* UI

* set default

* consume new parameter

* some cleanup while we're at it
2021-01-27 20:31:29 -05:00
rusefillc 0ae7eed5be knock-knock 2021-01-23 00:00:34 -05:00
rusefillc 7f893c6159 Hellen72 2021-01-22 02:02:16 -05:00
rusefillc 8faa1602f7 HELLEN_NB2 2021-01-22 01:47:01 -05:00
Matthew Kennedy 8608df5450 flex fuel AFR interpolation (#2190)
* config

* implement flex

* secondary fuel default

* test

* test works

* rename

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-01-05 16:27:23 -05:00
rusefillc 21a925f613 hellen 2021-01-01 01:10:28 -05:00
rusefillc f9de491b67 proteusBoardTest 2020-12-26 10:41:33 -05:00
Matthew Kennedy fad3b07b8b Purge e34 config (#2127)
* remove

* enums

* s

* func test

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-24 07:31:25 -05:00
Matthew Kennedy 7617b115de Partition configs by board type (#2106)
* remove old flag

* flags

* reorder switch

* oops
2020-12-22 21:54:40 -05:00
Matthew Kennedy 4a95652f88 Purge fiesta config (#2117)
* config

* this had a feature flag?

* enums

* goodbye, fiesta
2020-12-22 17:22:05 -05:00
rusefillc 2940703a97 PROTEUS_QC_TEST_BOARD 2020-12-22 10:13:27 -05:00
Matthew Kennedy 85f0621738 Purge rover v8 config (#2116)
* bye

* goodbye, rover v8

* that snuck in

* use a different config for that test
2020-12-22 10:05:54 -05:00
rusefillc f5a5a54683 naming consistency 2020-12-18 09:01:18 -05:00
Matthew Kennedy d3cbed60af move target computation (#2091) 2020-12-17 17:46:51 -05:00
Matthew Kennedy 34edf34bf4 only build in config for the correct board (#2088)
* only build in config for the correct board

* undo

* undo

* undo

* only touch proteus config

* include configs in tests
2020-12-17 17:12:24 -05:00
rusefillc 39a292a46a trigger and start button pins not displayed by "pins" command fix #2084 2020-12-16 22:53:26 -05:00
rusefillc f147aabcd7 trigger and start button pins not displayed by "pins" command #2084
progress but not complete fix yet
2020-12-16 22:00:42 -05:00
rusefillc 7d104bff8d pnp progress 2020-12-15 00:09:35 -05:00
rusefi afe387c7be subi 2020-12-13 11:39:10 -05:00
rusefillc 3f17d84b44 fix warnings found by clang #2014 2020-12-08 13:59:40 -05:00
rusefillc f868d05dec MRE_SUBARU_EJ18 2020-12-06 14:16:40 -05:00
rusefillc c0e2ca5e74 MRE_SUBARU_EJ18 2020-12-06 13:08:09 -05:00
rusefillc d199302b83 miata 94 2020-11-28 22:49:28 -05:00
rusefillc 42c56a47da dead engine config
one step back
2020-11-26 21:21:25 -05:00
rusefillc 0f39f37bba dead engine config 2020-11-26 21:07:34 -05:00
rusefillc 96ca95bd1e dead engine config 2020-11-26 20:26:12 -05:00
rusefi bdba67e05f better default value 2020-11-25 17:02:28 -05:00
rusefillc 6f56988469 https://rusefi.com/forum/viewtopic.php?p=38367#p38367
idle position/waste gate position sensor usability
2020-11-14 18:05:27 -05:00
Matthew Kennedy 789926a61d convert cranking defaults to mg (#1921)
* convert cranking defaults to mg

* fix tests
2020-11-03 14:12:26 -05:00
rusefi 1d6c6eb804 wall wetting default 2020-10-31 19:28:27 -04:00
Matthew Kennedy bcabb51222 unused tach field (#1918) 2020-10-29 15:26:01 -04:00
rusefillc 781cc3d326 [EPIC] [Feature Request] Transmission Control #1454 2020-10-28 01:23:05 -04:00
rusefillc eb06ce55cd TCU 2020-10-28 01:01:30 -04:00
Matthew Kennedy b8c2041467 Everything in lambda! (#1893)
* lambda

* default configs, fix build

* config, gauge, UI

* more digits

* change menu text

* fix that while I'm here

* doesn't need extra word

* todo note

* tests

* last test

* missed a config

* update java

* store target lambda

* more java

* format

* hopefully enough java for CI to pass
2020-10-26 18:15:17 -04:00
Matthew Kennedy 6abc80e74c convert mass -> duration later in the pipeline (#1906)
* cranking duration to mass

* implement

* units

* patch types

* suppress warning

* fix output channels

* add note about how to set it
2020-10-26 07:23:13 -04:00
Matthew Kennedy dbdeca93b0 implement fuel pressure sensors (#1897)
* add

* remove old

* remove more old

* makefile

* fix init

* patch up other stuff

* actually fix it this time

* raw output channels

* gauges, UI

* scaled channel

* fix field ordering
2020-10-23 07:31:47 -04:00
rusefillc d5d5bbba9f tachPulsePerRev needs a safer default, MRE config needs a value 2020-10-06 00:56:49 -04:00
Matthew Kennedy 3374db1658 Remove dead & useless config (#1834)
* remove dead config

* remove enum
2020-09-29 06:34:39 -04:00
rusefi 3b9d339db0 unit test for start/stop hardware and pin repository #1811 2020-09-21 12:29:01 -04:00
David Holdeman e8e2cf2cfd DebounceButton A/C switch (#1782)
* change acSwitch name, add mode

* fix

* remove some adc stuff

* remove some adc stuff

* semicolon stupid

* left behind

* add readpinstate

* wrong var name

* add functions back

* fix name

* bool, not void, plus fix name

* move

* not sure what I broke

* try setMockValue

* namespace

* whoops missed one

* switch values because adc was set up for pullup

* try 5

* comment for now

* comment for now

* uncomment tests, add function to mock, add mock to efiReadPin

* fixes

* for F's sake

* if

* add defy

* pass params

* use ASSERT_TRUE/FALSE

* advance time

* remove ifdef from readPin

* try moving if

* move to separate func

* move extern

* move include

* try engine_test_helper

* am confuse

* move func to else

* include hal

* add efi prod check

* remove include

* try extern

* move include

* semicolon stupid

* move extern again

* include

* move mockPinStates

* size

* add if

* add comment

* clean on instantiation
2020-09-10 22:16:20 -04:00
rusefi f70c4b7a54 Merge remote-tracking branch 'origin/Hellen_fork_point' into master
# Conflicts:
#	firmware/controllers/algo/engine_configuration.cpp
2020-09-07 15:55:43 -04:00
rusefi 20dfacb521 Hellen says merge #1772 misc #2 2020-09-07 15:53:26 -04:00
Matthew Kennedy 4802a47d23 reorder ADC channel index (#1763)
* change config

* correct logic

* clearing these no longer needed

* test expected this to be set
2020-09-06 18:25:26 -04:00
rusefi 8b172324a2 OBD-II default rate is 500kbps 2020-09-01 22:24:25 -04:00
rusefi 8d024f4579 BCM 2020-08-29 14:29:34 -04:00
rusefi 00ddb7b966 BCM 2020-08-29 10:06:14 -04:00
rusefi d817bdd428 Revert "removing a bit of dead code?"
This reverts commit a90a9247
2020-08-25 15:50:50 -04:00
rusefi a90a924766 removing a bit of dead code? 2020-08-25 15:19:37 -04:00
Matthew Kennedy ad42a17207 Configurable stoichiometric ratio (#1710)
* configurable stoich ratio

* afr table always in gas afr

* default

* typo

* use defined ratio

* do it in config too

* missed a spot

* oops wrong one

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-08-21 19:43:30 -04:00
rusefi 0c4d29808d gimme my preset! 2020-08-19 20:40:10 -04:00
rusefi 3c94ec8133 self-stimulation RPM is wrong by 50% if switching from NA6 to NB2 configuration fix #1682 2020-08-08 17:00:14 -04:00
rusefi 64a9440bc0 trigger and VSS hw integrated testing #1668 2020-08-08 11:45:02 -04:00
Matthew Kennedy f3bc1a3de7 missed a spot 2020-08-03 12:22:41 -07:00
Matthew Kennedy cd547ceb00 no more setFuelMap 2020-08-03 12:14:11 -07:00
rusefi 5ae82b537b @andreika I believe this is no longer needed since all fields have TS metadata? 2020-08-02 15:34:47 -04:00
Matthew Kennedy 7009c82993 Merge remote-tracking branch 'upstream/master' into remove-plain-maf 2020-07-31 14:56:29 -07:00
rusefi 0c6c92c5bf reducing code duplication? 2020-07-29 23:01:55 -04:00
rusefi 54f3e55d13 NA6 progress 2020-07-29 21:38:34 -04:00
rusefi ca1dd7e835 NA6 progress 2020-07-29 15:51:01 -04:00
Matthew Kennedy b1747ea48b goodbye plain maf 2020-07-23 02:46:45 -07:00
rusefi a1b9d58361 https://rusefi.com/forum/viewtopic.php?p=37401#p37401 2020-07-10 14:19:51 -04:00
rusefi 408836931c more on wipeString 2020-07-05 14:09:43 -04:00
rusefi bb604199e9 refactoring 2020-07-05 13:34:51 -04:00
rusefi 8396237890 wipe strings in configuration images 2020-07-05 11:16:07 -04:00
rusefi 9fcdcf25d4 BUG? handleCrc32Check does not use 'offset' parameter #1429 2020-06-19 00:17:05 -04:00
rusefi eb3ff73c29 1 byte issue in TuneReadWriteTest fix #1512 2020-06-18 23:29:08 -04:00
rusefi ff8f0731fd a few unneeded properties 2020-06-13 22:46:10 -04:00
rusefi 68773c0a67 unused parameter 2020-06-13 22:30:43 -04:00
rusefi cbfdd37243 tuneCrc16 - we use it to match logs to tunes 2020-06-04 20:43:52 -04:00
Matthew Kennedy a2313a853c switch some firmware warnings to errors (#1465)
* warnings as errors

* throw instead of exit

* test massaging

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-23 10:46:28 -04:00
rusefi ae60a3e1b8 code style 2020-05-22 18:07:19 -04:00
rusefi 8b00823a0f HW test progress 2020-05-21 21:45:01 -04:00
rusefi 4015c600e9 MRE pre-sets 2020-05-21 20:44:14 -04:00
rusefi 871cee3092 test fixture progress 2020-05-21 18:36:32 -04:00
Matthew Kennedy ce2beafb5f Redundant tps (#1427)
* add redundant sensor

* add tests

* add configure, info printing

* tests

* tests

* partial hookup

* fix

* fix

* bad makefile merge

* use second TPS config

* update test

* update test

* sensor names

* set second pin by default

* fix auto cal

* auto cal both sensors

* add reconfigure of secondary sensors

* gobblin' up your ram

* slow down write a little bit

* put split in debug gauge

* s

Co-authored-by: Matthew Kennedy <matthew@mck-mbp-15.local>
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-18 14:32:00 -04:00
Matthew Kennedy 8a73c191bc configuration for secondary (redundant) TPS sensors (#1419)
* add new fields

* add tps 2 secondary

* sensible error detection limits

* UI mods

* grey out as appropriate

* defaults

* either it's unused or its not
2020-05-10 16:13:15 -04:00
rusefi 7fdb6ca2be rusEFI online engine crc 2020-05-09 22:43:39 -04:00
rusefi 46a56f3799 Merge remote-tracking branch 'origin/master' 2020-05-07 00:56:22 -04:00
rusefi c0ce8b1b22 field useful for rusEFI online catalog 2020-05-07 00:55:59 -04:00