Commit Graph

5885 Commits

Author SHA1 Message Date
rusefi 1287f187c1 lovely write-out-of-bounds in case of invalid configuration bugfix 2019-12-02 20:32:21 -05:00
rusefi d5bfd76922 "sensor chart" for aux fast analog input 2019-12-02 20:31:49 -05:00
rusefi 23a61bed3d actually it's better to give TS access to all bits 2019-12-02 20:26:43 -05:00
rusefi a87c432761 actually it's better to give TS access to all bits 2019-12-02 20:24:10 -05:00
rusefi b415508c70 codes clean-up 2019-12-02 20:16:41 -05:00
Matthew Kennedy 3c9c9e028c Perf trace housekeeping (#1038)
* use default params

* fix that mess

* format
2019-12-02 19:18:00 -05:00
Matthew Kennedy d27b8fe080 Remove chibios trace flag (#1037)
* remove from scripts

* remove from others
2019-12-02 19:11:07 -05:00
rusefi 63d8f050bc auxFastSensor 2019-12-02 17:49:01 -05:00
rusefi 7c8cba6c5d shared GCC settings between projects 2019-12-02 10:26:16 -05:00
rusefi 5ac023d987 misc clean-up 2019-12-02 10:03:50 -05:00
rusefi 7fb375b15f fixing build 2019-12-02 09:59:53 -05:00
rusefi f9c387b42e cj125 unit test progress! 2019-12-02 01:52:54 -05:00
rusefi ccf9acd32c v12 2019-12-01 23:45:45 -05:00
rusefi 5c05b2225c v12 2019-12-01 22:37:26 -05:00
rusefi 91eef6fa3b perf trace progress but things still do not look right 2019-12-01 20:31:18 -05:00
andreika-git 70fcb50a62 5V-compatible adcVcc + trigger_input_comp + Kinetis COMP driver impr. (#1036)
* adcVcc is not only for 3V STM32

* update ini files

* Kinetis: improve COMP driver

* Improve trigger_input_comp.cpp (hysteresis)
2019-12-01 12:08:55 -05:00
rusefi ed9bae63af dual throttle re-init bugfix thank you andreika! 2019-12-01 09:39:34 -05:00
rusefi c893bb9049 v12 2019-11-30 20:24:31 -05:00
rusefi 448beb5471 making things nicer with dual ETB settings 2019-11-30 18:42:51 -05:00
rusefi 34f53bd102 making things nicer with dual ETB settings 2019-11-30 17:38:33 -05:00
rusefi 149c1c09e8 refactoring 2019-11-30 16:49:40 -05:00
rusefi 2738fefa48 that's how we can move all fields one by one from boardConfiguration to engineConfiguration
my approach is to move fields from the bottom of BC struct
2019-11-30 10:24:37 -05:00
Matthew Kennedy f9986028c6 Harmonize chconf (#1034)
* turn off f4 kernel features we don't use

* make f7 match f4

* make mcuconf look right
2019-11-30 09:32:14 -05:00
rusefi fd5c45ba46 all ETBs to run in same HW mode 2019-11-30 01:00:54 -05:00
rusefi 75b1a9e52c all ETBs to run in same HW mode
taking a step back and going to bed :(
2019-11-30 00:39:00 -05:00
rusefi 02f4e847f4 all ETBs to run in same HW mode 2019-11-30 00:25:33 -05:00
rusefi 349eac34de better state validation, better error codes 2019-11-29 23:41:26 -05:00
rusefi 1e1d2939ed refactoring 2019-11-29 22:09:08 -05:00
rusefi 815589825c extracing constant & more information for HW CI 2019-11-29 21:57:59 -05:00
rusefi 4d6052c9f3 dual ETB seems to work! 2019-11-29 20:15:29 -05:00
rusEfi 13d4ae2169 dual ETB seems to work! 2019-11-29 19:06:50 -05:00
rusefi 73b3150d0f all ETBs to run in same HW mode 2019-11-29 19:02:12 -05:00
rusEfi 980a3d7086 all ETBs to run in same HW mode 2019-11-29 16:51:51 -05:00
rusefi d21ffee979 v12 2019-11-29 14:51:20 -05:00
rusefi d826d5b75f attempting to fix master build 2019-11-29 13:02:11 -05:00
Matthew Kennedy 04861992f2 Build prometheus with makefiles instead of batch scripts (#1020)
* use makefiles instead of batch

* add to ci

* put batch files back, but minimum logic

* default to release

* debug level opt too
2019-11-29 02:39:30 -05:00
rusefi c9b4189ab3 one step backwards :) 2019-11-29 01:39:02 -05:00
rusEfi 171ad3f235 v12 2019-11-29 01:35:45 -05:00
rusefi a9c52e084f steps towards dual ETB 2019-11-29 00:26:17 -05:00
rusefi 88d8768835 steps towards dual ETB 2019-11-29 00:23:15 -05:00
rusefi f1acede97e steps towards dual ETB 2019-11-28 23:51:47 -05:00
rusefi 1c89cdf780 Merge branch 'master' of https://github.com/rusefi/rusefi 2019-11-28 15:24:41 -05:00
rusefi 002a08316c steps towards dual ETB 2019-11-28 15:24:30 -05:00
rusEfi 6342724f95 v12 2019-11-28 00:40:25 -05:00
rusefi 265727b7db steps towards dual ETB 2019-11-27 22:07:36 -05:00
rusefi b8a752cf13 fixing master? 2019-11-25 21:15:07 -05:00
andreika-git 7220735530 Starter relay + Hardcoded 'FSIO' + simulator fix (#1032)
* Starter Relay: gui + built-in FSIO impl.

* Hardcoded 'FSIO' replacement for RAM-limited boards

* fix simulator
2019-11-25 20:08:01 -05:00
rusefi 28facbee47 starterRelayPinMode 2019-11-25 01:01:00 -05:00
rusefi 3ad8dc1894 starterRelay & debugMapAveraging 2019-11-25 00:59:05 -05:00
rusefi 75ac946559 Merge branch 'master' of https://github.com/rusefi/rusefi 2019-11-25 00:57:47 -05:00
rusefi 56bcdacb88 PerfTraceTool 2019-11-25 00:57:36 -05:00
andreika-git 984711655e Kinetis: fix ENABLE_PERF_TRACE and trigger_input_comp (#1031)
* Kinetis: fix ENABLE_PERF_TRACE

* Kinetis: fix trigger_input_comp
2019-11-25 00:22:26 -05:00
andreika-git 53eeb79ea9 unregisterOutput() + isPinOrModeChanged() + Stepper::stepPin+enablePin + Kinetis fix (#1029)
* Fix isConfigurationChanged() for EFI_ACTIVE_CONFIGURATION_IN_FLASH

* unregisterOutput() -> unregisterOutputIfPinOrModeChanged()

* clutchUpPinMode for unregisterPin()

* Fix Kinetis: EFI_ACTIVE_CONFIGURATION_IN_FLASH & EFI_MAIN_RELAY_CONTROL

* Stepper: enablePin & stepPin with modes support
2019-11-25 00:02:53 -05:00
rusefi 706b4ca5ef firing order tool integration 2019-11-24 23:49:05 -05:00
rusefi 155ff25c22 MapAveragingCallback schedules all cylinders at once #974 2019-11-24 23:20:24 -05:00
rusefi 0a891017ec Sporadic error: FATAL error: handleCycleStart #1030
more details
2019-11-24 21:59:29 -05:00
rusefi 612649e191 Sporadic error: FATAL error: handleCycleStart #1030
more details
2019-11-24 21:45:32 -05:00
rusefi 5292024a81 MapAveragingCallback schedules all cylinders at once #974
saving pennies
2019-11-24 20:48:25 -05:00
rusefi 171860be3c pausing aux work for now 2019-11-24 12:45:38 -05:00
rusefi c5e60a7f93 improving API? 2019-11-24 00:15:44 -05:00
rusefi e8051c1807 more correct variable names 2019-11-23 23:49:39 -05:00
rusefi de963e880b docs 2019-11-23 23:42:00 -05:00
rusefi 18bb121cbe aux valves unit test 2019-11-23 22:55:21 -05:00
Matthew Kennedy 34ffe7f6b3 Make sure #798 is good and dead (#1028)
* Revert "CI instability: FATAL error: warn stream not initialized for 6039 - maybe buffer overrun? #798"

This reverts commit 45646f23bd.

* Revert "CI instability: FATAL error: warn stream not initialized for 6039 #798"

This reverts commit 1f8176ac7e.

* fix correctly

* use correct function
2019-11-23 21:25:29 -05:00
rusefi af3118fd42 making progres on angle-based scheduling 2019-11-23 20:36:40 -05:00
rusefi 304cc6acc3 making progres on angle-based scheduling 2019-11-23 19:47:53 -05:00
rusefi f15986b9aa refactoring 2019-11-23 18:38:16 -05:00
rusefi 44c04755d8 not needed since included in common_headers.h 2019-11-23 18:16:41 -05:00
rusefi 79ada84b56 'triggerEventAngle' not really needed 2019-11-23 17:44:44 -05:00
rusefi 1f8176ac7e CI instability: FATAL error: warn stream not initialized for 6039 #798 2019-11-23 17:07:13 -05:00
rusefi a31057ec17 explicit list field to simplify code navigation 2019-11-23 17:04:51 -05:00
rusefi 45646f23bd CI instability: FATAL error: warn stream not initialized for 6039 - maybe buffer overrun? #798 2019-11-23 16:41:59 -05:00
rusefi eaa42d1baa consistency 2019-11-23 15:53:22 -05:00
rusefi 0fd2d49aa8 docs 2019-11-23 14:14:17 -05:00
rusefi ef6b2be840 refactoring: extracting constant 2019-11-23 12:52:57 -05:00
rusefi 6efab3683c bug: aux valve actions can overlap 2019-11-23 10:34:43 -05:00
Matthew Kennedy 0a7535fb1f Use templated array references (#1027)
* update defs

* consumers, use default params

* setArrayValues in tests

* floats

* test fixing
2019-11-22 23:27:24 -05:00
rusEfi c141d42a87 v12 and minor ETB 2019-11-22 23:27:03 -05:00
Matthew Kennedy 783ed572a9 inject interfaces to ETB, renaming (#1026)
* inject interfaces, renaming

* format

* null check

* that was a dumb typo

* fix indent
2019-11-22 20:53:54 -05:00
rusefi 8dddc62979 aux overlap debugging 2019-11-22 18:50:46 -05:00
Matthew Kennedy 10a6f652d3 DC motor improvements (#1025)
* extract interface, comments, conform names

* fwd declare
2019-11-22 16:30:44 -05:00
Matthew Kennedy f425232901 const + fwd declare pid things (#1024) 2019-11-22 15:55:38 -05:00
Matthew Kennedy e7ea88044e s (#1023) 2019-11-21 23:45:16 -05:00
rusefi b158f0ec34 recoviring CI 2019-11-21 17:12:46 -05:00
Matthew Kennedy 285429dafc works on f4 (#1021) 2019-11-21 15:45:17 -05:00
rusefi 4f247493aa Perf trace maybe fix - "We were trying to trace before the os was awake" 2019-11-21 15:31:55 -05:00
rusefi 96443d079d following the pattern 2019-11-21 13:35:57 -05:00
rusEfi 7e78f077bc steps towards dual ETB 2019-11-21 00:49:38 -05:00
rusEfi 21e76fb59e v12 2019-11-21 00:19:35 -05:00
rusefi fb66dd1e7d making more code testable 2019-11-20 08:46:54 -05:00
rusefi 76a4e37c66 making more code testable 2019-11-20 02:18:17 -05:00
rusefi 127b16d761 more code into unit tests 2019-11-20 01:42:03 -05:00
rusefi 4cebc85cbf refactoring 2019-11-20 01:35:08 -05:00
rusEfi 59bbd09651 this is probably needed for F7 2019-11-20 01:15:43 -05:00
rusEfi a720a4cc6a Merge branch 'master' of https://github.com/rusefi/rusefi 2019-11-20 01:15:21 -05:00
rusefi da158b90aa Really need to Fix and expand commit gate check 2019-11-19 23:28:34 -05:00
rusefi b50066a7bd would this fix CI? 2019-11-19 22:54:36 -05:00
rusEfi 453c187ad0 v12 progress 2019-11-19 21:56:25 -05:00
rusefi 0d75d72bee NOT A GREAT FIX - TODO @andreika any chance you can help here? 2019-11-19 20:56:35 -05:00
rusefi b4c544f257 clean-up 2019-11-19 20:56:11 -05:00
rusefi cd5c3b0dc3 making GCC 9 happier 2019-11-19 20:43:12 -05:00
rusefi 95e8f4227b making F4 and else happier with perf_trace, also maybe missing 'break'? 2019-11-19 20:36:47 -05:00
rusefi 4d9b0745f1 Merge remote-tracking branch 'remotes/mck1117/perf-tracing'
# Conflicts:
#	firmware/development/development.mk
2019-11-19 20:26:56 -05:00
rusEfi f68241bc35 development into unit tests, makefile cleanup 2019-11-19 20:05:12 -05:00
Matthew Kennedy 8fd603dca9 Merge remote-tracking branch 'origin/master' into perf-tracing 2019-11-19 16:28:58 -08:00
rusefi 19bdb9a35f docs & code formatting 2019-11-19 18:17:03 -05:00
rusefi 67e4a7c8d7 simulation docs 2019-11-19 09:23:25 -05:00
rusEfi 670e149b32 v12 2019-11-19 00:04:44 -05:00
rusefi a6e7b1455d v12 2019-11-18 23:45:35 -05:00
rusEfi 71511441c9 ETB docs 2019-11-18 22:25:07 -05:00
rusEfi ef7c988c0c launch control #203 2019-11-18 19:22:29 -05:00
rusefi c8ea9bcf6a poke 2019-11-18 15:37:58 -05:00
rusefi 7dade5a878 v12 2019-11-17 22:32:27 -05:00
rusefi e4d31bafb7 v12 done right 2019-11-17 09:32:12 -05:00
rusefi 12f65748b3 typo 2019-11-17 09:18:43 -05:00
rusefi e783f71d53 code formatting 2019-11-17 09:03:20 -05:00
rusefi bb7895a828 refactoring: reducing complexity? 2019-11-17 09:02:49 -05:00
rusefi b865698e23 reducing warnings 2019-11-17 08:44:07 -05:00
andreika-git 6b2bdfe150 cisnan() warnings fix (#1008)
* Fix cisnan() macro warnings (strict-aliasing)

* Hey, we found a bug thanks to our fix! Let's fix it too!
2019-11-17 08:08:56 -05:00
rusefi 1624346c97 v12 2019-11-16 16:00:50 -05:00
rusefi 07fd84bb91 kinetis into gen_config.bat 2019-11-16 14:44:47 -05:00
rusefi 0aa095a17f v12 2019-11-15 23:49:28 -05:00
rusEfi 80c6b88d2a prometheus cleanup 2019-11-15 00:01:03 -05:00
rusEfi 41bdf469b2 #pragma once 2019-11-15 00:00:13 -05:00
rusEfi cedb8d5861 M73 2019-11-14 23:58:04 -05:00
rusEfi bf029b9c16 #pragma once 2019-11-14 22:50:59 -05:00
rusefi ef9ad935e0 poke 2019-11-14 10:23:11 -05:00
rusefi 9bc6d71238 Revert "OK trying partial revert now"
This reverts commit 2fe49896
2019-11-13 22:56:43 -05:00
rusefi 30c1cb89aa refactoring: time to unify digital pin API 2019-11-13 22:50:37 -05:00
rusefi e0ec28a528 docs 2019-11-13 22:47:49 -05:00
rusefi c3aa47195d todo 2019-11-13 22:02:13 -05:00
rusefi 623776d185 micro-optimization: replacing by-referece access with direct static access for real firmware 2019-11-13 21:43:24 -05:00
rusefi 99bed7b613 unused code 2019-11-13 20:15:02 -05:00
Matthew Kennedy 53424b5f0c fix (#1006) 2019-11-13 18:35:21 -05:00
Matthew Kennedy 2edd673bd6 fix (#1005) 2019-11-13 08:42:16 -05:00
rusefi f5ba5d81de looks like this part of refactoring is good? 2019-11-12 23:38:02 -05:00
rusefi 5ea97e5ba8 Revert "restoring #1003"
This reverts commit 2ebaa5cf
2019-11-12 23:18:48 -05:00
rusefi 225864808b re-applying change 2019-11-12 22:56:56 -05:00
rusefi 2ebaa5cf20 restoring #1003 2019-11-12 22:17:29 -05:00
rusefi a23f6bb23e time to panic and revert more 2019-11-12 21:42:44 -05:00
rusefi 2fe4989666 OK trying partial revert now 2019-11-12 21:05:51 -05:00
rusefi 630f706f39 I have no idea what's broken 2019-11-12 20:35:07 -05:00
rusefi 12746ca91d ops that's not what I mean 2019-11-12 19:58:14 -05:00
rusefi 73003f8b64 what's the probability of efi::size breaking build? 2019-11-12 19:40:33 -05:00
rusefi 1ad591742b refactoring: time to unify digital pin API
trying to fix build
2019-11-12 19:04:33 -05:00
Matthew Kennedy 6a5d53fe64 Fix (#1004)
* Revert "fixing build"

This reverts commit ba0aa5cba9.

* undo overzealous ifdef cplusplus
2019-11-12 01:13:13 -05:00
rusefi 586c913592 refactoring: time to unify digital pin API 2019-11-12 01:08:45 -05:00
rusefi 59130de601 refactoring: time to unify digital pin API 2019-11-12 01:08:31 -05:00
rusefi 9cb18e89f7 refactoring: time to unify digital pin API 2019-11-12 00:56:51 -05:00
rusefi ba0aa5cba9 fixing build 2019-11-12 00:50:30 -05:00
Matthew Kennedy b01a9e1388 use static asserts (#1003) 2019-11-12 00:39:38 -05:00
rusefi 4ba7842f52 refactoring: time to unify digital pin API 2019-11-12 00:25:10 -05:00
rusefi 8bbd06d165 refactoring: time to unify digital pin API 2019-11-11 23:32:09 -05:00
rusefi 3ff2b2271a refactoring: time to unify digital pin API 2019-11-11 23:04:27 -05:00
rusefi 80ef79eded this is not great :(
#639
#971
2019-11-11 22:19:35 -05:00
rusefi 78d771460a need better higher-level API :( 2019-11-11 22:14:45 -05:00
rusefi 52bb665365 fixing unit tests build 2019-11-11 21:45:15 -05:00
rusefi 950d8309b9 different take on #971 2019-11-11 21:26:09 -05:00
rusefi 99c5fcbd90 different take on #971 2019-11-11 21:25:40 -05:00
DonaldBecker f345faa9d7 Compile warning clean-ups.
Removed mistakenly-added README~

(cherry picked from commit 84b30c992ac77a1563f7449e45b9fa353612fba9)
2019-11-11 20:35:20 -05:00
rusefi a1f828162a evil manual cherry 2019-11-11 20:34:09 -05:00
DonaldBecker 4bc6d2106f A Unix shell script matching the functionality flash_dfu.bat
(cherry picked from commit fd192ab28fde1dac204b19a6fd446728a3b35647)
2019-11-11 20:25:55 -05:00
rusefi 7c453fb199 Strange INJ1 signal behavior (when the frequency of scheduler's timer is less than 1MHz) fix #996 2019-11-10 23:54:08 -05:00
rusefi 412744d613 trying to fix integration tests
[java] 2019-11-10_13_31_42_194<EOT>: msg,FATAL error: PID::isSame invalid,
     [java] 2019-11-10_13_31_42_194<EOT>: postMessage EngineState: FATAL error: PID::isSame invalid
     [java] 2019-11-10_13_31_42_289<EOT>: Sending packet 4F 00 00 64 01
     [java] 2019-11-10_13_31_42_289<EOT>: output channels header: waiting for 2 byte(s)
     [java] 2019-11-10_13_31_42_290<EOT>: IncomingDataBuffer: 256 byte(s) arrived
     [java] 2019-11-10_13_31_42_290<EOT>: output channels body: waiting for 361 byte(s)
     [java] 2019-11-10_13_31_42_291<EOT>: IncomingDataBuffer: 107 byte(s) arrived
2019-11-10 16:07:13 -05:00
andreika-git add26866f5 Industrial PID Controller (#1002)
* Implement Industrial PID controller

* Test-Use PidIndustrial in alternator

* Meaningful unit-tests for PidIndustrial
2019-11-10 13:04:27 -05:00
rusefi ca0984007d Strange INJ1 signal behavior (when the frequency of scheduler's timer is less than 1MHz) #996
new advanced debugging: hardware pins
2019-11-10 12:39:47 -05:00
rusefi b226895aff v12 2019-11-09 18:40:06 -05:00
rusefi 568bcc6b21 v12 2019-11-08 20:53:51 -05:00
rusefi d08c7fc3ec pinout 2019-11-07 20:47:12 -05:00
rusefi 8898553955 consistency 2019-11-07 15:22:17 -05:00
rusefi 98e96ffc1e poke 2019-11-07 12:41:01 -05:00
rusefi f34023a9ea Trying latest gcc 9 #1001 2019-11-07 11:28:49 -05:00
rusefi acb9506510 Trying latest gcc 9 #1001 2019-11-07 11:13:32 -05:00
rusefi 7eaed773ff evil manual merge of https://github.com/DonaldBecker/rusefi 2019-11-06 20:33:40 -05:00
rusefi 80e1bf6dd1 MRE F4 2019-11-06 20:05:44 -05:00
rusefi 2530f31498 evil manual merge of https://github.com/DonaldBecker/rusefi 2019-11-06 20:01:53 -05:00
rusefi a41b4c896d fine, taking care of more warnings 2019-11-06 19:53:09 -05:00
rusefi b171b5ebd4 we have MRE F4 now 2019-11-06 18:58:11 -05:00
rusefi 17a2847424 evil manual merge of https://github.com/DonaldBecker/rusefi 2019-11-06 18:26:50 -05:00
andreika-git ae59680918 Kinetis timer freq. fix & config update (#999)
* Kinetis: fix timer frequency

* More silentTriggerError - it really helps a lot!

* Kinetis: gen_config.bat update
2019-11-06 14:45:55 -05:00
rusefi c734cb0fa4 Missing dwell altogether in some corner cases fix #796 2019-11-06 00:31:24 -05:00
rusefi fbdbc0656a Missing dwell altogether in some corner cases #796
flirting with the fix but not yet the fix
2019-11-06 00:10:44 -05:00
rusefi 3b2d5c8c7f Missing dwell altogether in some corner cases #796
only additional live data here
2019-11-05 23:36:33 -05:00
rusefi 92d1842bd0 refactoring 2019-11-05 23:17:44 -05:00
rusefi 7c2f9a7c5d refactoring: removing unused parameter 2019-11-05 22:49:11 -05:00
rusefi 3357e41614 evil manual merge of https://github.com/DonaldBecker/rusefi 2019-11-05 22:40:33 -05:00
rusefi 0b5709ac1b generating fresh 2019-11-05 21:05:19 -05:00
rusefi 303a2a7bbc improving user documentation 2019-11-05 21:03:39 -05:00
rusefi 30cfb96619 evil manual merge of https://github.com/DonaldBecker/rusefi 2019-11-05 20:07:55 -05:00
rusefi 68db5ecdb1 progress towards #961 2019-11-04 22:52:37 -05:00
rusefi 9c3492043d progress towards #961 2019-11-04 22:44:52 -05:00
rusefi 17792f762c kind of todo 2019-11-04 22:29:22 -05:00
Matthew Kennedy 19f09bb6f4 move to slow adc (#997) 2019-11-04 17:03:21 -05:00
rusefi eae44843b1 custom codes cleanup 2019-11-04 09:20:00 -05:00
rusefi bc0cdd484f poke 2019-11-03 23:55:23 -05:00
rusefi e5bebe0f72 happy November 2019-11-03 23:38:00 -05:00
rusefi d99d576e2b CI instability: FATAL error: warn stream not initialized fix #798 2019-11-03 22:15:49 -05:00
rusefi 8423fa0acf pieces of #971 2019-11-03 22:02:52 -05:00
rusefi fdbe81121d moving setDefaultFrankensoConfiguration down is the way of righteousness 2019-11-03 21:29:12 -05:00
rusefi ad800be601 v12 2019-11-03 21:27:37 -05:00