Commit Graph

9965 Commits

Author SHA1 Message Date
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
Matthew Kennedy be41a96511 actually fix F7 flash this time (#2719)
* f7 sector sizes

* loop dsb

* correct sector index on f7
2021-05-18 17:40:59 -04: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
rusefillc a9bffcefed # 2021 May "Piercing Day" 2021-05-17 04:28:13 -04:00
GitHub build-firmware Action 5421b78e61 Auto-generated configs and docs 2021-05-17 05:57:10 +00:00
Matthew Kennedy 4b69e7d441 compile gpiochips as cpp (#2702)
* rename

* core

* structing

* more

* makefile

* structing

* 6240 compiles

* explicit cast instead of implicit narrowing

* 8888

* no extern C

* fix tests build

* extern "C"

* 33810

* 8860

* 33810

* linker

* unbreak master

* don't need that if compiling as C++

* bump config

* fix test

* tests

* unit tests bad merge

* build

* move subaru logic to cpp file

* cpp goodness

* hpp include

* this is probably the right thing to do

* simulator
2021-05-17 08:42:56 +03: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 0faa8a0166 Hw layer rearrangement (#2705)
* Fix simulator compilation

* HW_SENSORS_SRC -> HW_SENSORS_CPP
2021-05-16 14:11:28 +03: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 34194a2c52 progress 2021-05-15 05:46:54 -04:00
Andrey 06bdf52b3c More low-level firmware coverage for the simulator/unit-tests #2656 2021-05-15 05:27:33 -04:00
Andrey ae7367aa23 removal instructions 2021-05-15 05:19:14 -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
Matthew Kennedy b38a58fffb don't expose private state (#2696)
* don't expose private state

* fix tle init
2021-05-14 14:56:45 -04:00
rusefillc bba4588e47 Hellen GDI 2021-05-14 11:00:18 -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
Andrey G 636c68efe2 Adc fixes (#2691)
* ADC: save few bytes

* ADC: fix limit checking, add note for futher users

* ADC: not used anymore
2021-05-13 15:51:18 -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
BeerMoneyMotorsports eaa46454c1 Update main.yaml (#2690)
fixes for mixed IO naming.
2021-05-12 18:51:58 -04:00
rusefillc b9ebb6b9b9 gen_config.sh code duplication #2451
David saw dead code
2021-05-11 22:00:36 -04: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
BeerMoneyMotorsports ed24ca8429 Update main.yaml (#2688) 2021-05-11 20:40:17 -04:00
GitHub build-firmware Action 55f09db90f Auto-generated configs and docs 2021-05-11 22:40:44 +00:00
BeerMoneyMotorsports 67bc1325aa Update main.yaml (#2686)
Added Boost control, Flex input and knock input to options connector.
2021-05-11 18:35:05 -04:00
Andrey G f9d2694dfd mc33810 (#2684)
* mc33810: ENABLE outputs

* mc33810: enable Dwell time control
2021-05-11 18:17:06 -04:00
GitHub build-firmware Action 76c2fa5e23 Auto-generated configs and docs 2021-05-11 21:37:56 +00:00
BeerMoneyMotorsports 35117fad14 Update main.yaml (#2685)
Major pinout update.
2021-05-11 17:35:54 -04:00
GitHub build-firmware Action 17a5ffbf95 Auto-generated configs and docs 2021-05-11 19:51:41 +00:00
Matthew Kennedy 10de5ca77a s (#2683) 2021-05-11 15:45:35 -04:00
BeerMoneyMotorsports 386b9ac39b Update main.yaml (#2682)
update to fix tachout.  Testing a change to GPIO pin
2021-05-11 11:50:49 -04: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 da1d8edfa1 no sd if early fatal (#2680) 2021-05-10 14:31:40 -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 22e1bd1d9d version check (#2673) 2021-05-09 20:26:53 -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 870538bc63 move ADC pin initialization (#2660)
* set the pin in adc subscription land

* remove from adc_inputs

* more subscriptions

* use our lib instead
2021-05-09 14:36:11 -04:00
Matthew Kennedy 33fc8a7185 ini drive contents update (#2665)
* add shortcuts

* move readme

* nozip version of readme

* scripts

* set the filename
2021-05-09 12:18:55 -04:00
rusefillc 159e3cd1ff Support STM32F7 1MB devices #2659 2021-05-09 10:10:00 -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
Matthew Kennedy c17e4af490 Proteus legacy vs. non-legacy F7 (#2657)
* proteus f7 is not necessarily legacy

* script

* don't need that any more

* yaml and script

* rename
2021-05-08 18:44:19 -04: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
Andrey G dd2f8fe457 hip9011 update (#2653)
* hip9011: add check for SPI reply in advanced mode

* hip9011: read value over SPI in advanced mode
2021-05-08 09:50:28 -04:00
rusefillc f72db1df9d same line twice 2021-05-07 22:03:28 -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
rusefillc a64ea533cb NA6 ini is not uploaded fix #2649 2021-05-07 19:19:20 -04:00
rusefillc 6ba32c65a6 NA6 ini is not uploaded fix #2649 2021-05-07 19:18:43 -04:00
rusefillc 4b9dd02056 check MCU flash size at runtime fix #2648 2021-05-07 17:05:47 -04:00
GitHub build-firmware Action 747ed34b40 Auto-generated configs and docs 2021-05-07 19:43:12 +00:00
rusefillc 18131c13e2 testing yaml automation 2021-05-07 15:34:48 -04: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 28a84669d2 spaces are evil 2021-05-06 15:26:08 -04:00
BeerMoneyMotorsports da880911ef Update rusefi.input (#2631)
poke @dbh97
2021-05-06 15:00:42 -04:00
BeerMoneyMotorsports e37d45fc10 intMAP fix (#2630)
intMAP a15 fix
2021-05-06 14:34:34 -04:00
rusefillc 59884cb5e7 Temperature sensors issue fix #2629 2021-05-06 13:58:01 -04: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
rusefillc 2da748b489 poke 2021-05-06 09:47:29 -04:00
BeerMoneyMotorsports 70aa6eb23b Update main.yaml (#2626)
CLT pin fix
2021-05-06 09:38:53 -04:00
Matthew Kennedy 3e4674500b hellen na6 yaml tweaks (#2625)
* cleanup

* all pins have pin number
2021-05-06 08:05:02 -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
rusefillc ee62134957 More human approach to boolean fields #2613 2021-05-05 10:49:47 -04:00
GitHub build-firmware Action a9b83d17e3 Auto-generated configs and docs 2021-05-05 14:04:51 +00:00
rusefillc 6a8d1e619b More human approach to boolean fields #2613 2021-05-05 10:02:35 -04:00
GitHub set-date Action 19ebd48b24 Update date 2021-05-05 00:55:28 +00:00
Andrey G f2a194e035 Kill warnings (#2623)
* dead code

* rtc_helper: clean-up warnings

* kill unused
2021-05-04 18:55:27 -04:00
GitHub build-firmware Action b775331a3c Auto-generated configs and docs 2021-05-04 19:13:38 +00:00
Matthew Kennedy 29244dbdde clarify ego enable switch (#2622)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-05-04 15:11:26 -04: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
Andrey G 2176d1656b ADC: internalIndex should be used as getAvgAdcValue argument (#2618)
* ADC: internalIndex should be used as getAvgAdcValue argument

-plus output messages re-formated

* ADC: logger -> efiPrintf
2021-05-03 16:44:19 -04:00
Andrey G e6e5303e87 Subaru board update (#2616)
* board: subaru_eg33: move to connectors yaml

* engine: subaru EG33: TPS is not inverted

* board: subaru_eg33: fix gen_config script

* board: subaru_eg33: update default settings
2021-05-03 09:32:14 -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 12b00e4889 h64 progress 2021-05-02 23:46:09 -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
rusefillc ca4b67dd7b 2021 is the year of Hellen 2021-05-02 18:18:24 -04:00
rusefillc 247ff18c04 https://github.com/rusefi/hellen72/issues/40 2021-05-02 11:30:13 -04: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
rusefillc 888a0b65ef h121 poke 2021-05-01 20:26:09 -04:00
GitHub build-firmware Action 81a8239ba8 Auto-generated configs and docs 2021-05-01 23:47:11 +00:00
rusefillc bfaad4c1b2 code duplication between hellen boards #2611
it has to get worse before it gets better
2021-05-01 19:45:09 -04:00
rusefillc 88a1389af8 code duplication between hellen boards #2611
it has to get worse before it gets better
2021-05-01 19:15:23 -04:00
GitHub build-firmware Action 69d0b15345 Auto-generated configs and docs 2021-05-01 19:42:36 +00:00
rusefillc 84441c1dcb h64 more better error handling 2021-05-01 15:40:27 -04:00
rusefillc e0e92a29e4 h64 actually vbatt an analog input 2021-05-01 15:23:04 -04:00
rusefillc 0fa93d4ae7 h64 progress 2021-05-01 15:18:59 -04:00
rusefillc c2721985b0 config definition better error handling 2021-05-01 15:12:39 -04:00
rusefillc 1b62525871 h64 progress 2021-05-01 14:51:04 -04:00
BeerMoneyMotorsports 03c98e2504 Update main.yaml (#2612) 2021-05-01 14:49:34 -04:00
rusefillc fce1497c51 h64 progress 2021-05-01 14:46:26 -04:00
GitHub set-date Action c1cbd03a1f Update date 2021-05-01 01:03:02 +00:00
rusefi 24a15646bd Proteus QC build 2021-04-30 13:57:33 -04:00
GitHub build-firmware Action 3be5b8db2f Auto-generated configs and docs 2021-04-30 15:03:28 +00:00
rusefillc a74984d7ea useFordRedundantTps 2021-04-30 10:57:38 -04: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