Commit Graph

391 Commits

Author SHA1 Message Date
rusefi 22da8a7dfe fixing build 2019-11-12 00:50:30 -05:00
Matthew Kennedy 9ce18d11fe use static asserts (#1003) 2019-11-12 00:39:38 -05:00
rusefi f082ac48b1 refactoring: time to unify digital pin API 2019-11-11 23:04:27 -05:00
rusefi 669c75d44f 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 b996190707 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 42dc9e3662 fancy C++ s/NULL/nullptr/ 2019-10-08 01:26:35 -04:00
rusEfi 7c9a7d34b4 PID display in console was broken 2019-09-27 23:37:57 -04:00
Matthew Kennedy b4e176a9cb fix ltoa_internal: fix #948 (#949)
* fix ltoa_internal

* fix hex
2019-09-23 08:45:45 -04:00
rusefi 712eca7b15 typo in comment 2019-09-23 01:39:04 -04:00
rusefi 4f33dff0a1 ETB target is using integer values fix #945 2019-09-22 18:15:00 -04:00
Matthew Kennedy f629ec038b add sensor framework, tests (#929)
* add framework, tests

* move oil pressure to new way

* add init logic

* brackets on the same line

* spaces -> tabs

* spaces -> tabs for tests

* bracket on same line

* hook up sensor mocking

* add nan check

* fix nan check

* I wrote an essay

* casing

* only init if we have a sensor to init

* style, actually call init

* format

* fix casing

* typo

* implement linear sensor

* wire up producer

* smarter limiting

* setup comments

* add reporting

* doxyfile

* oops

* add adc subscription

* clarity

* fix logic

* multiply voltage

* test styling

* test guards

* remove dependencies

* linear sensor test

* remove unused

* fix merge

* format, implicit convert op

* explicit

* format tests

* fix merge
2019-09-21 14:33:38 -04:00
andreika-git 21cbf1cf91 PID_CIC docs (#930) 2019-09-12 07:30:18 -04:00
rusefi a6fbc5036a Delayed A/C compressor switch #922 2019-09-11 20:46:50 -04:00
rusefi e30000f1ca OOP all the way, maybe too much OOP? :) 2019-09-11 20:23:25 -04:00
rusefi 917676b2da simulator crashes on any TS setting change fix #924 2019-09-09 20:49:16 -04:00
rusefi e79287f537 Delayed A/C compressor switch #922 2019-09-08 21:05:03 -04:00
rusEfi 8126b700de NB2 progress, ETB Live Docs progress 2019-09-01 19:37:58 -04:00
rusEfi f960587dc0 dead fields & better field name 2019-09-01 18:41:51 -04:00
rusefi 1ffaa8eea2 Live Data progress 2019-09-01 13:56:46 -04:00
rusefi ad2714c2b8 PID errorAmplificationCoef to LiveData 2019-08-30 17:11:12 -04:00
rusefi 9161703598 reducing unit test noise 2019-08-25 02:01:09 -04:00
rusEfi 6c9d684dfd MRE etb 2019-08-17 17:33:44 -04:00
rusefi efeb6eeadc ETB live docs 2019-08-15 21:01:04 -04:00
rusefi 9d32f2c40a refactoring: ChibiOS now offers native 'lockAnyContext' pattern 2019-08-11 15:23:15 -04:00
rusefi 91f9a50b3f F7 nucleo does not work?
funny, it was about some very unused feature
2019-08-02 01:36:02 -04:00
rusefi 90d6c37ff8 docs typo 2019-07-21 17:05:41 -04:00
rusefi 4b0ed3751f More than one aux pid #866
progress!
2019-07-12 08:31:38 -04:00
Matthew Kennedy e0db83e027 Template-ize bin/value length for interpolation (#878)
* update consumers

* tests

* whitespace

* format
2019-07-09 21:16:36 +03:00
rusefi cdac02429c refactoring: better file name 2019-07-06 20:15:49 -04:00
rusefi fecf83e4d2 order of includes consistency 2019-07-05 20:03:32 -04:00
rusefi 83ad64eade Refactoring: OS access should be explicit #867 2019-07-04 03:57:21 -04:00
rusefi b81c60cf3e Refactoring: OS access should be explicit #867 2019-07-03 21:48:04 -04:00
rusefi aaae4a2278 Refactoring: OS access should be explicit #867 2019-07-03 21:01:48 -04:00
rusEfi db2ff1c180 better state validation 2019-06-27 22:23:18 -04:00
rusefi 995cf20b4b ETB: TPS should be f(RPM, pedal) - target table fix #835 2019-06-15 14:33:41 -04:00
rusefi 244b66b0ae ETB: TPS should be f(RPM, pedal) - target table #835 2019-06-15 14:11:38 -04:00
rusefi 9410e3d075 progress - reusing code for other data types 2019-06-10 23:27:54 -04:00
rusefi 30847db935 adding support for smaller table axis 2019-06-10 12:38:32 -04:00
rusefi 4f939bbe4a refactoring 2019-06-10 11:17:36 -04:00
Matthew Kennedy 95003e9a7b const, explicit, and override (#831)
* const, explicit, and override

* more const

* more const

* missed a spot
2019-06-08 09:51:36 -04:00
Matthew Kennedy 978559e489 another const 2019-06-07 10:52:07 -04:00
rusefi d0644c3841 refactoring - fancier C++ 2019-05-27 11:43:34 -04:00
rusefi 01e481db31 fix #802 2019-05-25 13:36:29 -04:00
rusefi 0a28bb20dc useTPSBasedVeTable logic has issues and needs a unit test #799 2019-05-10 21:09:01 -04:00
rusefi d7fd0ce6c1 refactoring: better method name 2019-05-07 19:32:08 -04:00
andreika-git b80d95578d EFI_CONSOLE_UART_DEVICE, flash->hw_ports, Fix TLE6240 and misc.fixes (#793)
* rename EFI_CONSOLE_UART_DEVICE -> EFI_CONSOLE_SERIAL_DEVICE

* Impl. EFI_CONSOLE_UART_DEVICE

* Move flash source files to ports/stm32/ & hw_ports.mk

* Fix TLE6240

* Fix EFI_NO_CONFIG_WORKING_COPY

* EFI_PRINT_MESSAGES_TO_TERMINAL
2019-05-05 11:06:27 -04:00
rusEfi 7a79083cb4 docs 2019-05-04 10:18:49 -04:00
rusefi 254af7695e PID - fix dTime usages fix #776 2019-04-26 00:45:53 -04:00
rusefi bc4d76a144 The Big Refactoring of 2019: folder structure #723 2019-04-25 22:10:58 -04:00
rusefi ff42d47c6b PID - fix dTime usages fix #776 2019-04-25 21:36:41 -04:00
rusefi f04732830f PID - fix dTime usages #776 2019-04-25 21:31:33 -04:00
rusefi 1123eb99ff PID - fix dTime usages #776 2019-04-25 20:50:28 -04:00
rusefi 05d43db76f PID - fix dTime usages #776 2019-04-25 18:49:16 -04:00
rusefi 7a857ae298 ETB progress 2019-04-24 23:46:49 -04:00
rusefi c8766d901d The Big Refactoring of 2019: configuration version should not be a global variable #656 2019-04-15 21:06:48 -04:00
rusefi 8a45420475 The Big Refactoring of 2019: configuration version should not be a global variable #656 2019-04-15 21:02:25 -04:00
rusefi 7be441a1bc random cleanup 2019-04-14 13:52:27 -04:00
rusefi 1e422f48f2 'pins' fix 2019-04-13 10:59:29 -04:00
rusefi d8281626df defined(__DOXYGEN__) ? fix #748 2019-04-12 22:10:57 -04:00
rusefi 91ac74c1c9 learning C++ 2019-04-12 19:56:34 -04:00
rusefi 8d924a2f49 The Big Refactoring of 2019: folder structure #723 2019-04-09 23:17:09 -04:00
dron0gus b0f0eec199 save some CPU ticks if console is not ready (#730) 2019-04-02 10:19:05 +02:00
dron0gus bc0eaf52d8 console vs ts cleanup and compilation fix for linux (#728)
* console vs ts cleanup

* include is case-sensetive in linux
2019-04-01 23:04:49 +02:00
rusefi feec03fa24 The Big Refactoring of 2019: console vs TS vs CONSOLE_MODE_SWITCH_PIN vs text protocol #725
more dead code
2019-04-01 11:57:30 -04:00
rusefi be9651cb95 The Big Refactoring of 2019: folder structure #723 2019-03-31 17:44:34 -04:00
rusefi 372eb51f37 The Big Refactoring of 2019: folder structure #723 2019-03-31 17:14:53 -04:00
rusefi ebe58122c6 The Big Refactoring of 2019: folder structure #723 2019-03-31 16:56:13 -04:00
rusefi 56d026b8e2 The Big Refactoring of 2019: folder structure #723 2019-03-31 16:33:16 -04:00
rusefi 24ed35ac9c fixing build - simulator 2019-03-30 18:04:22 -04:00
andreika-git f1ec34f032 More portability and smaller RAM footprint possible (#722)
* EFI_NO_CONFIG_WORKING_COPY

* EFI_CONSOLE_NO_THREAD

* EFI_SHAFT_POSITION_INPUT

* #ifndef UTILITY_THREAD_STACK_SIZE

* fix printf() -> print()
2019-03-30 22:41:46 +01:00
andreika-git 001fbb2526 More portability & bootloader fix (#720)
* fix bootloader

* EFI_FSIO

* EFI_EMULATE_POSITION_SENSORS, EFI_BOARD_TEST, EFI_AUX_PID, EFI_JOYSTICK
2019-03-29 15:46:15 +01:00
andreika-git b80806182f More portability & small fixes (#719)
* Use hw_stm32.mk

* Fix bootloader

* Use more common hw_ports.mk filename instead of hw_stm32.mk

* More CPU compatibility for Makefile

* TS_UART_MODE & rename TS_SERIAL_UART_DEVICE->TS_SERIAL_DEVICE

* Move lockAnyContext()/unlockAnyContext() to rfiutil.c

* USE_FATFS

* EFI_LCD

* Less compilation errors

* STATUS_LOGGING_BUFFER_SIZE & SETTINGS_LOGGING_BUFFER_SIZE

* EFI_ALTERNATOR_CONTROL, EFI_SERVO, EFI_DISABLE_CONSOLE_ACTIONS

* #ifndef PWM_PHASE_MAX_COUNT & more flexible GPIO inside portname()

* merge

* EFI_ALTERNATOR_CONTROL, EFI_ELECTRONIC_THROTTLE_BODY
2019-03-29 15:29:01 +01:00
rusefi 653a735eab refactoring: no logic changes, just nicer variable and method names 2019-03-12 18:54:46 -04:00
rusEfi 333ce71923 ETB iTerm limits 2019-03-02 14:00:32 -05:00
rusefi 46bdbf82d1 refactoring: reducing code duplication 2019-02-23 12:33:49 -05:00
rusefi 4bba678dce Why do we use so much stack? #695
docs
2019-02-23 12:12:34 -05:00
dron0gus 76fa11d5e2 warning cleanup (#693)
* Kill annoing warnings about unused vars

* Kill annoing signed vs unsigned warnings

* Make ALWAYS_INLINE macro realy inlining

* Incorrect attribute placement.

While correct attribute placement cause ram4 overflow.
Move to correct place (to avoid gcc-2018-q4 errors) and comment
out.

* Silence -Wcast-function-type warnings

Cast to intermediate "void *" to lose compiler knowledge about the original
type and pass the warning. This is a workaround.
2019-02-21 05:44:45 -05:00
rusefi c34ba20aa0 getMaxUsedStack() - stack usage reseach mini progress 2019-02-12 19:05:06 -05:00
rusefi 0eb2470a61 getMaxUsedStack() - stack usage reseach mini progress 2019-02-12 18:47:16 -05:00
rusefi 9325cd6d23 better (?) variable names 2019-02-10 22:47:49 -05:00
rusefi 5bb24e0193 better (?) location for files 2019-01-28 01:09:13 -05:00
rusefi 8539ba3271 The Big Refactoring of 2019: configuration version should not be a global variable #656 2019-01-15 21:51:09 -05:00
rusefi 0a89fcca33 making code better with "const" 2019-01-15 21:03:45 -05:00
rusefi 13ee53ad09 we shall log 8 last error codes #668 2019-01-13 20:51:36 -05:00
rusefi 1a2c294d1d Question: something strange trigger errors #662
logging 8 codes
2019-01-13 20:45:58 -05:00
rusefi 9ab1fa069f cyclic_buffer.contains method 2019-01-12 14:01:13 -05:00
rusefi 06e664a23b console title and LCD status showing trash data bugfix 2019-01-11 19:29:13 -05:00
rusefi 5301037f61 new unit test 2019-01-11 19:08:15 -05:00
rusefi 2f0804022b The Big Refactoring of 2019: configuration version should not be a global variable #656 2019-01-09 21:08:04 -05:00
rusefi b3ba88f819 docs by Matt K 2019-01-06 20:48:15 -05:00
Matthew Kennedy 45d4243636 Improve wall wetting AE to use time constant (#650)
* impruv

* c++17

* add tests, docs
2019-01-06 20:45:51 -05:00
Matthew Kennedy 799923ac5d const (#648) 2019-01-05 08:06:18 -05:00
Fabien Poussin 72fe39ff32 Workarounds for GCC 8 (#637) 2018-12-27 09:40:40 -05:00
rusefi 16b90d3849 reducing unneeded coupling 2018-12-25 12:39:19 -05:00
rusefi d81185ac28 bringing std types together 2018-12-08 15:51:45 -05:00
rusEfi 41375a0ae2 progress 2018-11-25 22:31:44 -05:00
rusEfi b8e7bac586 unit test for atoff() 2018-11-25 22:20:57 -05:00
andreika-git bd40691e67 AirFlow-interpolated tCharge Mode (#612)
* Add vars & enums

* updateTChargeK()

* limitRateOfChange()

* Impl. AirFlow-interpolated tCharge mode

* Update tsOutputChannels: tCharge & airFlow

* Set default config params

* Unit-tests

* Fix tChargeMode_e
2018-09-29 12:16:36 -04:00
rusefi 07cce9f315 removing dead code 2018-09-17 21:17:36 -04:00
rusefi 330c82172b new configurable option EFI_TEXT_LOGGING 2018-09-16 23:54:14 -04:00
rusefi 98c7ad808c refactoring 2018-09-16 22:39:46 -04:00
rusefi 1f90cf153d refactoring 2018-09-16 22:26:57 -04:00
rusefi 3b87b725d1 refactoring 2018-09-16 22:25:17 -04:00
rusefi 7caf762609 refactoring 2018-09-16 22:00:14 -04:00
rusefi d25ba6a3ef status check 2018-09-10 22:24:50 -04:00
rusefi 9b1af6ad6d error codes 2018-09-10 22:10:55 -04:00
rusefi 57bd9dc474 docs 2018-08-31 22:47:16 -04:00
rusefi 49a301d57a moving method 2018-08-31 22:30:03 -04:00
rusefi 95117bcfdc separating data structure from global state 2018-08-31 22:19:19 -04:00
rusefi 61d3eb177c pointless OOP 2018-08-31 21:38:14 -04:00
rusefi 351d36f9c0 better code location 2018-08-31 21:27:41 -04:00
rusefi 99e74635ef step towards more unique codes 2018-07-25 23:30:00 -04:00
rusefi 959a91ae4c unique error codes #598 2018-07-25 23:03:04 -04:00
rusefi 517ef4c011 CH_DBG_SYSTEM_STATE_CHECK for simulator 2018-02-03 16:01:59 -05:00
rusefi 70180a7eb9 docs 2018-02-03 12:40:17 -05:00
rusefi 9a7dd55333 same action twice 2018-01-30 14:56:24 -05:00
rusefi 64b7a51617 #65
explicit precision control
2018-01-23 12:05:14 -05:00
rusefi 6a14fd0477 refactoring 2018-01-23 11:36:32 -05:00
andreika-git 013b800c72 Impl. narrow EGO averaging (alpha) (#545)
* Impl. narrow EGO averaging (alpha)

* Use cyclic_buffer as a generic container for CIC

* Implicit #include of cyclic_buffer.h for safety
2018-01-23 08:24:13 -05:00
rusefi 1d31067d19 happy new year 2018-01-20 20:55:31 -05:00
rusefi d05432df12 fix #532 2018-01-07 12:11:49 -05:00
rusefi 155216ebd5 typo 2017-12-10 15:05:58 -05:00
rusefi 148fea5574 better efiRound implementation 2017-12-10 10:19:05 -05:00
rusEfi 414f45ede2 softer error handling 2017-12-03 18:17:59 -05:00
rusefi e75dfdc86b #503 2017-12-02 17:02:49 -05:00
rusefi 9bc32fda32 micro-optimization: in-lining from C++ back to C #441 2017-06-08 23:05:05 -04:00
rusefi d908300077 refactoring 2017-06-08 22:51:32 -04:00
rusefi 3c58e4ee9d refactroring 2017-06-07 21:26:32 -04:00
rusefi 382f28daf1 minor improvements 2017-06-03 22:27:05 -04:00
rusefi e6e75ab888 reducing complexity just a bit 2017-06-03 22:12:44 -04:00
rusefi 2e70c3915e tiny improvement 2017-06-03 21:59:58 -04:00
rusefi 1f9dcf4ab0 clean-up 2017-06-03 21:09:04 -04:00
rusefi d280141ac2 better error code names 2017-05-29 19:23:15 -04:00
rusefi 3102d877a6 better error code 2017-05-25 19:56:11 -04:00
rusefi 2b4c66968c better code names & more performance info 2017-05-21 10:03:17 -04:00
rusefi 860f6ee551 enabling DMA UART with andreika 2017-05-17 20:36:07 -04:00
rusefi 7308a4295f remove unused 2017-05-15 21:25:32 -04:00
rusefi 4f647c601c fix #404 2017-05-05 15:57:15 -04:00
rusEfi 08645c41de better error message 2017-04-22 09:50:09 -04:00
rusEfi d1ab5c5bb5 better error message 2017-04-22 09:47:07 -04:00
rusefi 39ba28875c #388 fixed 2017-04-07 16:35:43 -04:00
rusefi 9221a08a90 #388 progress 2017-04-07 16:01:49 -04:00
rusefi 9a7aa62cde Merge remote-tracking branch 'origin/master' into fresh_chibios_2nd 2017-04-05 20:55:53 -04:00
rusefi 30d7130803 API progress 2017-04-05 18:10:48 -04:00
rusEfi d691424e89 Merge remote-tracking branch 'origin/master' into fresh_chibios_2nd 2017-04-04 23:19:03 -04:00
rusefi c25a5e20b2 minor bugfix: uPpEr cAsE not supported in command names 2017-04-04 23:17:56 -04:00
rusEfi ce232a2708 refactoring: tolower 2017-04-04 23:00:21 -04:00
rusefi 9cdb2a7830 refactoring: tolower 2017-04-04 22:53:58 -04:00
rusefi 0f56565db8 safe pre-merge, reducing chibios3 PR 2017-03-30 09:03:42 -04:00
rusefi ea4c5ef21c minor linking fix 2017-03-29 21:07:26 -04:00