Commit Graph

11225 Commits

Author SHA1 Message Date
Matthew Kennedy 0c6297e926
add cancel to scheduler (#3201)
* fw

* for tests

* simulator

* sim

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-08-27 11:30:06 +03:00
Matthew Kennedy 6c7b48b319
s (#3207) 2021-08-27 11:07:33 +03:00
Matthew Kennedy 98a98e920d
init the timer before we try to use it (#3205)
* init the timer before we try to use it

* format

* guard
2021-08-27 10:59:00 +03:00
rusefillc 0b3ef5f553 Revert "memory savings (#3195)"
This reverts commit 52a24ee7
2021-08-27 02:32:31 -04:00
rusefillc 7cbaca863c docs 2021-08-27 02:31:48 -04:00
GitHub set-date Action 8051ee4b0c Update date 2021-08-27 01:00:17 +00:00
Matthew Kennedy 41c8f440c5
s (#3202)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-08-26 17:11:53 -04:00
rusefillc 6834d0dd65 partial rollback was requested to revive HW CI 2021-08-26 17:04:27 -04:00
Matthew Kennedy 52a24ee773
memory savings (#3195)
* d

* dead code

* all your ram are belong to me

* turn off gpiochips we don't need

* save

* save by using the same file handle

* smaller stack ok

* these can be on the stack

* this is closer

* what about ccm?

* probing available

* now probe ccm

* ccm

* put stuff in ccm

* fsio

* memory usage

* memory
2021-08-26 23:05:31 +03:00
Matthew Kennedy cf5d4cbe1c
add & test remove from linked list (#3199) 2021-08-26 23:03:09 +03:00
GitHub set-date Action 3fd6eb6f85 Update date 2021-08-26 00:54:08 +00:00
Matthew Kennedy 87e4e7e4cf
simpler way for limp manager to handle engine stop (#3194)
* simpler

* why would we lie about spinning?
2021-08-25 11:29:20 +03:00
GitHub set-date Action 3cfb4b7675 Update date 2021-08-25 00:56:06 +00:00
Matthew Kennedy 4603f875cd
missed a little bit (#3192) 2021-08-24 17:00:14 -04:00
Matthew Kennedy a18b86a09b
start allowing ADC change while running (#3100)
* allow re-register of the same sensor

* add api to unsubscribe

* do it for tps

* clear the pin

* happy test

* maybe make afr happy for now

* tests build

* happy simulator

* active configuration

* check valid

* we need vbatt now

* manage all pin init in init_sensors.cpp

* don't need that

* cleanup

* thermistors

* do two phase reinit in the right place

* config vs engine

* finally the tests are happy
2021-08-24 16:41:16 -04:00
GitHub build-firmware Action 879170c08b Auto-generated configs and docs 2021-08-24 20:20:36 +00:00
rusefillc 3ff56adcee less confusing name for vag hellen preset 2021-08-24 16:07:20 -04:00
rusefillc 767496f3f4 94/95 miata presets #3191 2021-08-24 16:03:50 -04:00
GitHub build-firmware Action 18518168e3 Auto-generated configs and docs 2021-08-24 19:55:16 +00:00
rusefillc 0303dd1905 154h 2021-08-24 15:51:43 -04:00
GitHub build-firmware Action 96633a92a5 Auto-generated configs and docs 2021-08-24 15:44:43 +00:00
BeerMoneyMotorsports db07a46b6e
flex input (#3190)
flex class change to event_inputs
2021-08-24 11:41:15 -04:00
GitHub build-firmware Action 5ae1b438c4 Auto-generated configs and docs 2021-08-24 14:14:57 +00:00
rusefillc 6a8c391c76 https://github.com/rusefi/hellen121vag/issues/47 2021-08-24 10:11:01 -04:00
rusefillc 3896795f1c firing order for some 911 2021-08-24 07:48:02 -04:00
GitHub build-firmware Action 95de5e8e0e Auto-generated configs and docs 2021-08-24 11:39:25 +00:00
rusefillc 6b6c8abfc4 firing order for some 911 2021-08-24 07:31:55 -04:00
rusefillc 24ff3a5cd5 firing order for some 911 2021-08-24 07:28:56 -04:00
GitHub build-firmware Action 8ee165c0b2 Auto-generated configs and docs 2021-08-24 07:02:08 +00:00
Andrey 70209fbdb7 todo: think about it 2021-08-24 02:56:32 -04:00
GitHub build-firmware Action 9dab37d12c Auto-generated configs and docs 2021-08-24 05:23:27 +00:00
Matthew Kennedy d2b54428c0
cleanup missing fsio stuff (#3189) 2021-08-24 08:19:03 +03:00
alxrMironov f926d2ccba
Vehicle speed switching to frequency sensor #3106 (#3148)
* Add vehicle_speed_converter.h with realization.

* Add test_vehicle_speed_converter.cpp with realization.

* Add test_vehicle_speed_converter.cpp to Makefile

* Edit "VehicleSpeedSensor" from function pointer sensor to frequency sensor

* Fix "VehicleSpeedSensor" init function args

* Remove "VehicleSpeedConverter" empty constructor

* Edit vehicle_speed_converter.h code style

* Fix args and engine injection in "VehicleSpeedSensor" initialization procedure

* Remove old "Vehicle Speed" module initialization

* Revert "Remove old "Vehicle Speed" module initialization"

This reverts commit 100b7caa8c615c20eed3d0c23a49824b4e556148.

* Remove old "Vehicle Speed" module initialization pieces

* Revert "Revert "Remove old "Vehicle Speed" module initialization""

This reverts commit f559a726f1f7f5a7acacd1b6517e571743e84327.

* Debug changes

* Revert "Debug changes"

This reverts commit f7e2be1a8a46c6f3f93f14f002b2f2db539da8e2.

* Another debug changes

* More debug changes

* And more debug changes.

* Revert "Another debug changes"

This reverts commit 914fbb1df42c37e4b5ecbb119bb45e7cffdf4064.

* Revert "More debug changes"

This reverts commit 0b2d96d461c3cd9b0f1ae97ed110b8effe6b0cc6.

* Revert "And more debug changes."

This reverts commit 06ae8daded0e6e1c025e4e5058b47283f4adfe92.

* Add "Vehicle Speed" sensor reconfiguration

* Revert "Add "Vehicle Speed" sensor reconfiguration"

This reverts commit a089a6d563dd710004ce1a7da1744b0b4b90c3b1.

* Revert "Revert "Add "Vehicle Speed" sensor reconfiguration""

This reverts commit 7b2bb8af4b3caa547236ca59e4c4bdb3ac1200cc.

* Debug changes

* Another debug changes

* Fix another debug changes

* Another debug changes 2

* Revert "Another debug changes 2"

This reverts commit cfad55141eec125b2f1d35fb95d9f46b54f666b6.

* Revert "Fix another debug changes"

This reverts commit 9bc2c74a3be6fd896827ff48cf4580e7657529c0.

* Revert "Another debug changes"

This reverts commit 4337ed8cad8dff508d093944eb3f75e9a69e4a77.

* Edit class  FrequencySensor, make it more RAII

* Debug changes

* Debug changes 2

* Debug changes 3

* Revert "Debug changes 3"

This reverts commit 52a7054c122b5157540fe45a055a84b57478d722.

* Revert "Debug changes 2"

This reverts commit dec79fb913344ccb4b8614910ad62e6c129a243e.

* Revert "Debug changes"

This reverts commit eb08d7a529b55ba397a7dd2c154b76eab42f212b.

* Revert "Edit class  FrequencySensor, make it more RAII"

This reverts commit 3a0bb1d3f1dd23c1b04e4cc1c526cfdc67ae86a3.

* Remove VSS pin definition in "Citroen Berlingo" engine config.

This reverts commit 3a0bb1d3f1dd23c1b04e4cc1c526cfdc67ae86a3.

* Remove VSS pin definition in "Dodge Neon" engine config

Co-authored-by: alxrMironov <330OMcorporative>
2021-08-24 00:55:41 -04:00
GitHub build-firmware Action 9be0985079 Auto-generated configs and docs 2021-08-24 04:42:40 +00:00
Andrey G 780e91f38a
Bunch of small fixes related to EG33 board (#3188)
* Typo fix

* flash_main: always allow to write settings to ext NOR while running

* mc33810: do not enable outputs right after undervoltage

Wait for next active signal

* QSPI flash: set correct dummy cycles for fast read command

* board subaru: fix connector pinout. again.

* board subaru: fix SDMMC pin configuration

* board subaru: fix DMA conflict SPI4_RX vs SDMMC2
2021-08-24 07:39:03 +03:00
GitHub set-date Action e6bd9cbf68 Update date 2021-08-24 01:04:00 +00:00
GitHub set-date Action 468280d4e4 Update date 2021-08-23 00:52:29 +00:00
Andrey 7ab8986bd2 my first Lua 2021-08-22 01:41:54 -04:00
GitHub build-firmware Action 81d6edccbe Auto-generated configs and docs 2021-08-22 04:11:34 +00:00
Andrey 49faaaff03 Lua analog inputs 2021-08-22 00:05:51 -04:00
Andrey d29529cbdd my first Lua 2021-08-22 00:00:20 -04:00
GitHub set-date Action 2f2f12a079 Update date 2021-08-22 00:55:30 +00:00
CrazyStriker 2a5acfb807
updated OEM map sensor values for Mazda 1 bar (#3185)
according to measurements
2021-08-21 18:31:05 +03:00
Matthew Kennedy ec9dcce377
de init frequency sensor (#3183)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-08-21 09:02:05 +03:00
GitHub set-date Action 044ed3272f Update date 2021-08-21 00:54:54 +00:00
GitHub set-date Action 2bf161da2d Update date 2021-08-20 00:55:08 +00:00
rusefillc c80cf4b632 more detailed message 2021-08-19 15:51:33 -04:00
Matthew Kennedy 0731dbb479
lua pass alloc and script (#3179)
* pass alloc and script

* pass in all the spots
2021-08-19 15:14:02 -04:00
GitHub build-firmware Action be29b11d05 Auto-generated configs and docs 2021-08-19 10:55:01 +00:00
rusefillc f84e23752c VAG 1.8T default tune PPS fix #3178 2021-08-19 06:51:00 -04:00
Matthew Kennedy 50889671c0
fix ETB PWM (#2870)
* iwpm

* dc motor has configure

* consume

* format

* use fake PWM to save one SimplePwm instance

* comments

* not sure why I changed that

* init the pins otherwise

* typo

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-08-19 08:33:33 +03:00
GitHub set-date Action 0885536098 Update date 2021-08-19 00:50:19 +00:00
Matthew Kennedy 559656bdc2
lua & fsio cleanup (#3175) 2021-08-18 15:25:46 -04:00
GitHub set-date Action 7296018fd1 Update date 2021-08-18 00:57:22 +00:00
GitHub build-firmware Action e106ac7a7c Auto-generated configs and docs 2021-08-17 21:35:02 +00:00
shadowm60 329a8773c8
Update main.yaml (#3171)
minor correction to use all adc inputs
2021-08-18 00:31:42 +03:00
Andrey G 3961c6ad84
qspi flash updates (#3169)
* ChibiOS QSPI updates

* board: subaru: speed up NOR flash

* QSPI: add fast read commands
2021-08-17 11:06:37 +03:00
GitHub build-firmware Action b01c3fc9ce Auto-generated configs and docs 2021-08-17 00:59:17 +00:00
rusefillc bedf692e99 SD-card log fields improvement (warning counter & last code) #3162 2021-08-16 20:54:41 -04:00
Lenar Khannanov 47b5bd1f9d
Hotfix some java_tools gradle configs (#3165)
* fix: deleted mavenRepositories declaration

* fix: deleted unnecessary settings.gradle for enum_to_string

* fix: dependencies for junit, annotations, jsr305; feat: added new dependency for jsr305; fix: deleted settings.gradle for logging; fix: moved enum_to_string tests to test folder

* fix: deleted mavenRepositories declaration

* fix: deleted unnecessary settings.gradle for enum_to_string

* fix: dependencies for junit, annotations, jsr305; feat: added new dependency for jsr305; fix: deleted settings.gradle for logging; fix: moved enum_to_string tests to test folder

* fix: placed test classes to test folder in enum_to_string; feat: get updates from master
2021-08-16 23:52:52 +03:00
Matthew Kennedy 2cfd9dddd0
longer wbo timeout (#3164) 2021-08-16 15:11:26 -04:00
rusefillc cd4afcc01e Nissan progress 2021-08-16 10:56:31 -04:00
Andrey 03ffa82d8e zero dwell warning at zero RPM #3153 2021-08-16 09:11:22 -04:00
Andrey d07f422caf zero dwell warning at zero RPM #3153 2021-08-16 09:00:43 -04:00
Andrey 4652c478aa zero dwell warning at zero RPM #3153 2021-08-16 07:21:07 -04:00
rusefillc 6d3b2c5b00 zero dwell warning at zero RPM #3153 2021-08-16 07:00:17 -04:00
GitHub build-firmware Action 4a8a35ccc8 Auto-generated configs and docs 2021-08-16 10:57:59 +00:00
rusefillc ebc1842b8e enlarging Lua script in configuration 2021-08-16 06:52:29 -04:00
rusefillc 528b5d939f enlarging Lua script in configuration 2021-08-16 04:22:51 -04:00
rusefillc 32a650ebe8 zero dwell warning at zero RPM #3153 2021-08-16 04:20:32 -04:00
GitHub set-date Action 791ca789f1 Update date 2021-08-16 00:56:44 +00:00
Matthew Kennedy 70dfd4af78
inhibit sensor timeout during flash (#3146)
* inhibit timeout during flash

* do it up a level

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-08-15 23:04:58 +03:00
GitHub build-firmware Action 048801e95e Auto-generated configs and docs 2021-08-15 19:38:17 +00:00
rusefillc 22e24da6c0
reducing FSIO in order to enlarge Lua (#3160)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2021-08-15 22:27:07 +03:00
GitHub build-firmware Action b8622a931f Auto-generated configs and docs 2021-08-15 18:33:32 +00:00
rusefillc 498f16817d HTML title for pinout pages fix #2882 2021-08-15 14:22:34 -04:00
rusefillc 9b84fc4eaf Tooth logger to use engineSnifferRpmThreshold #3161
more refactoring also removing obsolete comment
2021-08-15 14:14:13 -04:00
rusefillc f74e63fa34 Tooth logger to use engineSnifferRpmThreshold #3161
use configurable limit
2021-08-15 13:59:18 -04:00
rusefillc c18ea4a439 Tooth logger to use engineSnifferRpmThreshold #3161
refactoring
2021-08-15 13:55:28 -04:00
GitHub build-firmware Action 8d1514c3f3 Auto-generated configs and docs 2021-08-15 06:47:39 +00:00
rusefillc 5db8254eb7 dead FSIO 2021-08-15 02:28:10 -04:00
Andrey G 231fd6bed8
board subaru eg33: connector yaml: add Vbat sense pin (#3156) 2021-08-15 02:14:40 -04:00
Matthew Kennedy 68e2b93dff
don't print the wrong number (#3158)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-08-15 02:10:28 -04:00
GitHub set-date Action bcd54a7cd9 Update date 2021-08-15 00:56:40 +00:00
rusefillc 063ab4af35 dead FSIO 2021-08-14 11:52:41 -04:00
GitHub build-firmware Action 2f57dcee33 Auto-generated configs and docs 2021-08-14 15:26:24 +00:00
rusefillc 2ee27df8bb Nissan progress 2021-08-14 11:21:56 -04:00
Andrey G c23e02c582
Settings ext storage (#3155)
* flash_main.cpp: reorder code for easy integration of ext storage

* Add EFI_STORAGE_INT_FLASH option

Default set to TRUE

* Add ChibiOS's Managed Flash Storage to build

* Add support for QSPI flash (SST26F064A tested)

* board: subaru: enable WSPI and NOR flash drivers

* Add option to save settings on ext flash MFS partition

* board: subaru: store settings on QSPI NOR flash
2021-08-14 09:36:08 -04:00
Matthew Kennedy d9adba2024
everybody is pulldown (#3131) 2021-08-14 09:34:13 -04:00
Andrey G a4a6f251ed
subaru board fixes (#3154)
* board: subaru: fix pinmuxes for QSPI interface

* board: subaru: switch to EXTI
2021-08-14 15:45:30 +03:00
Matthew Kennedy 045db15dac
implement adc unsubscription (#3149)
* allow re-register of the same sensor

* adc unsub
2021-08-14 15:41:27 +03:00
rusefillc e72277c863 No pins should be restarted for no reason during config change #3151 2021-08-14 06:15:29 -04:00
rusefillc 82da6e43fd No pins should be restarted for no reason during config change #3151 2021-08-14 05:20:12 -04:00
rusefillc b141f83a88 No pins should be restarted for no reason during config change #3151 2021-08-14 04:58:10 -04:00
rusefillc bd410d0c1b No pins should be restarted for no reason during config change #3151 2021-08-14 04:35:43 -04:00
GitHub build-firmware Action 81c9726ae0 Auto-generated configs and docs 2021-08-14 06:52:29 +00:00
Matthew Kennedy 2ad4a9df1e
actually remove FSIO idle stuff (#3150)
* debug mode

* pid cleanup

* more dead

* more dead

* wow more dead

* much dead many death wow
2021-08-14 09:48:45 +03:00
rusefillc e445d9724e dead idle FSIO 2021-08-14 01:48:03 -04:00
GitHub set-date Action 870ce23912 Update date 2021-08-14 00:53:14 +00:00
GitHub build-firmware Action 4640807f97 Auto-generated configs and docs 2021-08-13 19:05:45 +00:00