Matthew Kennedy
cd41449459
Debuggability in the new sensor world ( #1238 )
...
* rename to avoid conflict
* fix efilib
* add sensor printing
* makefile
* that check was already there
* const
* const
* fix tests
* formatting
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-30 18:29:42 -04:00
Matthew Kennedy
8642a0a6c7
TS cleanup pass ( #1225 )
...
* remove biquad config
* fuel pump clarity
* one code usage
* minimal generate for ci
* and don't build it either
* remove commented out code
2020-03-25 23:00:17 -04:00
rusefi
2b06452aa5
fine
2020-03-24 16:46:36 -04:00
rusefi
1785517286
simpler API?
2020-03-24 02:33:20 -04:00
rusefi
ce1a11ead5
code style
2020-03-23 00:00:11 -04:00
Matthew Kennedy
f43042d61b
const ( #1193 )
2020-03-18 21:55:46 -04:00
Matthew Kennedy
ef0dfc6ec4
split out scaled channel header ( #1156 )
...
* split out scaled channel header
* update header
2020-02-24 16:47:10 -05:00
rusefi
6dd509a34b
opening the door to boost controller!
2020-01-31 14:23:15 -05:00
rusefi
1735529a6b
refactoring: extracting DEEP_IN_THE_PAST_SECONDS contant
2020-01-31 01:21:56 -05:00
rusefi
d91a7a6a8f
code style
2020-01-21 01:40:11 -05:00
Matthew Kennedy
f8cd2ad3ce
use NT_PER_SECOND instead of convert from microseconds ( #1107 )
...
* add NT_PER_SECOND
* missed a few
* inject tooth logger timestamp
* inject
2020-01-19 22:23:41 -05:00
rusefi
a222ecdfe1
happy new year unification
2020-01-13 21:57:43 -05:00
Matthew Kennedy
8200a3da64
AEM X-Series CAN Wideband Support ( #1096 )
...
* aem xseries
* parens to avoid operator precedence issues
* put in cfg
* disable that too
* fix sim/unit
* enough generated for ci
* this will guard correctly
2020-01-12 03:44:37 -05:00
rusefi
63e3e84e08
happy new year
2020-01-08 00:02:40 -05:00
rusefi
391a9315bf
style
2019-12-23 23:05:40 -05:00
rusefi
4c30e7b1b9
hopefully useful macro?
2019-12-21 21:18:38 -05:00
Matthew Kennedy
c56bd4cc97
Terrible ADC3 hack for Proteus vbatt support ( #1066 )
...
* this is a great idea!
* typo
* simplify
* simplify, cache coherency
* enable adc3 in board file
* copyright
* fix tests, probably
2019-12-17 08:34:56 -05:00
Matthew Kennedy
dc1e90773b
const ( #1062 )
2019-12-16 20:36:40 -05:00
Matthew Kennedy
44fc8c466d
copyArray helper ( #1048 )
...
* add functions
* uses
* use for proteus
* do it for warmup mult
* do it for cranking settings
* cleanup
2019-12-10 18:04:50 -05:00
andreika-git
ae9c619c50
iacPidMultTbl + EFI_IDLE_PID_CIC + kinetis_hysteresis ( #1043 )
...
* rename EFI_IDLE_INCREMENTAL_PID_CIC -> EFI_IDLE_PID_CIC
* Impl. IacPidMultTable
* Kinetis: Trigger Comparator Hysteresis settings (+adaptive mode)
2019-12-04 00:37:32 -05:00
rusefi
44c04755d8
not needed since included in common_headers.h
2019-11-23 18:16:41 -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
Matthew Kennedy
f425232901
const + fwd declare pid things ( #1024 )
2019-11-22 15:55:38 -05:00
rusefi
19bdb9a35f
docs & code formatting
2019-11-19 18:17:03 -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
Matthew Kennedy
2edd673bd6
fix ( #1005 )
2019-11-13 08:42:16 -05:00
rusefi
a23f6bb23e
time to panic and revert more
2019-11-12 21:42:44 -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
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
3ff2b2271a
refactoring: time to unify digital pin API
2019-11-11 23:04:27 -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
15ae9b1580
fancy C++ s/NULL/nullptr/
2019-10-08 01:26:35 -04:00
rusEfi
c5eaf092c3
PID display in console was broken
2019-09-27 23:37:57 -04:00
Matthew Kennedy
c33091d39a
fix ltoa_internal: fix #948 ( #949 )
...
* fix ltoa_internal
* fix hex
2019-09-23 08:45:45 -04:00
rusefi
c3eb05358f
typo in comment
2019-09-23 01:39:04 -04:00
rusefi
df64289fd5
ETB target is using integer values fix #945
2019-09-22 18:15:00 -04:00
Matthew Kennedy
dfcc9dba04
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
de4173c99f
PID_CIC docs ( #930 )
2019-09-12 07:30:18 -04:00
rusefi
f0427360bf
Delayed A/C compressor switch #922
2019-09-11 20:46:50 -04:00
rusefi
7395bb44e7
OOP all the way, maybe too much OOP? :)
2019-09-11 20:23:25 -04:00
rusefi
34fb2c21e1
simulator crashes on any TS setting change fix #924
2019-09-09 20:49:16 -04:00
rusefi
50e0887c96
Delayed A/C compressor switch #922
2019-09-08 21:05:03 -04:00
rusEfi
d5dfc3e658
NB2 progress, ETB Live Docs progress
2019-09-01 19:37:58 -04:00
rusEfi
e9f15b16fb
dead fields & better field name
2019-09-01 18:41:51 -04:00
rusefi
8be592f3d4
Live Data progress
2019-09-01 13:56:46 -04:00
rusefi
4a1b78f9a4
PID errorAmplificationCoef to LiveData
2019-08-30 17:11:12 -04:00
rusefi
3ae955b3e5
reducing unit test noise
2019-08-25 02:01:09 -04:00
rusEfi
c4d6604551
MRE etb
2019-08-17 17:33:44 -04:00
rusefi
fe43256c91
ETB live docs
2019-08-15 21:01:04 -04:00
rusefi
8bdf4f30ae
refactoring: ChibiOS now offers native 'lockAnyContext' pattern
2019-08-11 15:23:15 -04:00
rusefi
d57779b686
F7 nucleo does not work?
...
funny, it was about some very unused feature
2019-08-02 01:36:02 -04:00
rusefi
0a847d1f9a
docs typo
2019-07-21 17:05:41 -04:00
rusefi
6ab2832c24
More than one aux pid #866
...
progress!
2019-07-12 08:31:38 -04:00
Matthew Kennedy
0b52f5b542
Template-ize bin/value length for interpolation ( #878 )
...
* update consumers
* tests
* whitespace
* format
2019-07-09 21:16:36 +03:00
rusefi
5d2afd2331
refactoring: better file name
2019-07-06 20:15:49 -04:00
rusefi
89557373e9
order of includes consistency
2019-07-05 20:03:32 -04:00
rusefi
e309e223aa
Refactoring: OS access should be explicit #867
2019-07-04 03:57:21 -04:00
rusefi
777eb532dc
Refactoring: OS access should be explicit #867
2019-07-03 21:48:04 -04:00
rusefi
c21e4c2efa
Refactoring: OS access should be explicit #867
2019-07-03 21:01:48 -04:00
rusEfi
e8888e4821
better state validation
2019-06-27 22:23:18 -04:00
rusefi
f859079022
ETB: TPS should be f(RPM, pedal) - target table fix #835
2019-06-15 14:33:41 -04:00
rusefi
69a3b45b3d
ETB: TPS should be f(RPM, pedal) - target table #835
2019-06-15 14:11:38 -04:00
rusefi
ebcce5ab22
progress - reusing code for other data types
2019-06-10 23:27:54 -04:00
rusefi
bc5154694b
adding support for smaller table axis
2019-06-10 12:38:32 -04:00
rusefi
6a002beb8f
refactoring
2019-06-10 11:17:36 -04:00
Matthew Kennedy
515ab03688
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
a95e00d65f
another const
2019-06-07 10:52:07 -04:00
rusefi
373b0c8f4a
refactoring - fancier C++
2019-05-27 11:43:34 -04:00
rusefi
32601867fe
fix #802
2019-05-25 13:36:29 -04:00
rusefi
39d2915386
useTPSBasedVeTable logic has issues and needs a unit test #799
2019-05-10 21:09:01 -04:00
rusefi
8a90297160
refactoring: better method name
2019-05-07 19:32:08 -04:00
andreika-git
20b6a17695
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
defed58b19
docs
2019-05-04 10:18:49 -04:00
rusefi
ded9b017e1
PID - fix dTime usages fix #776
2019-04-26 00:45:53 -04:00
rusefi
65fb45c8a6
The Big Refactoring of 2019: folder structure #723
2019-04-25 22:10:58 -04:00
rusefi
0a1b8b068b
PID - fix dTime usages fix #776
2019-04-25 21:36:41 -04:00
rusefi
ea86d987c8
PID - fix dTime usages #776
2019-04-25 21:31:33 -04:00
rusefi
f7ad56fda7
PID - fix dTime usages #776
2019-04-25 20:50:28 -04:00
rusefi
0a3a75ae79
PID - fix dTime usages #776
2019-04-25 18:49:16 -04:00
rusefi
0b0ef9e094
ETB progress
2019-04-24 23:46:49 -04:00
rusefi
eecc3ec3b6
The Big Refactoring of 2019: configuration version should not be a global variable #656
2019-04-15 21:06:48 -04:00
rusefi
877ac257fe
The Big Refactoring of 2019: configuration version should not be a global variable #656
2019-04-15 21:02:25 -04:00
rusefi
6bda683fba
random cleanup
2019-04-14 13:52:27 -04:00
rusefi
c53433801c
'pins' fix
2019-04-13 10:59:29 -04:00
rusefi
24948a2641
defined(__DOXYGEN__) ? fix #748
2019-04-12 22:10:57 -04:00
rusefi
522dcd4766
learning C++
2019-04-12 19:56:34 -04:00
rusefi
4011372da8
The Big Refactoring of 2019: folder structure #723
2019-04-09 23:17:09 -04:00
dron0gus
a7a5ec1aa6
save some CPU ticks if console is not ready ( #730 )
2019-04-02 10:19:05 +02:00
dron0gus
3163d04dfb
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
69917e5781
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
59d33c4cdc
The Big Refactoring of 2019: folder structure #723
2019-03-31 17:44:34 -04:00
rusefi
581d3d0c1b
The Big Refactoring of 2019: folder structure #723
2019-03-31 17:14:53 -04:00
rusefi
c29e6d99c4
The Big Refactoring of 2019: folder structure #723
2019-03-31 16:56:13 -04:00
rusefi
583d189e3b
The Big Refactoring of 2019: folder structure #723
2019-03-31 16:33:16 -04:00
rusefi
b5bf730d15
fixing build - simulator
2019-03-30 18:04:22 -04:00
andreika-git
97191fda08
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
c7b1bb1ff1
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
a79175f6ef
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