rusefillc
f79ae3c623
why so many channels are hidden in debug ? #3614
2021-11-29 00:33:05 -05:00
rusefillc
da68ff5ad6
j1850 SAE crc8
2021-11-22 14:03:52 -05:00
Scott Smith
5bc1949aef
Basic framework for high pressure fuel pump control ( #3476 )
...
* Basic framework for high pressure fuel pump control
* Many changes
Move calculations to fast callback
Move main object into Engine
Respond to pin changes without requiring a reboot
* Use EngineModule for HpfpController
Schedule pin off after executing pin on so we are sure it ends, even if the motor stops.
Test scheduling.
Less RAM use by only having one event and reordering fields.
* Make scheduling test actually useful - need non-0 activation angle.
Co-authored-by: rusefillc <48498823+rusefillc@users.noreply.github.com>
2021-11-19 23:06:51 -05:00
Scott Smith
cc95bd6c8e
Programmatically remove EnginePtr/inject, EXPAND_Engine, and WITH_ENGINE_TEST_HELPER* ( #3560 )
...
* Programmatically remove EnginePtr/inject, EXPAND_Engine, and WITH_ENGINE_TEST_HELPER*
for i in ": public EnginePtr " ", public EnginePtr" "EXPAND_Engine;" "EXPAND_Engine"; do
git grep -l "$i" | xargs sed -i "s/$i//g"
done
git grep -l "inject" | xargs sed -i "/inject[(][)]/d"
for i in WITH_ENGINE_TEST_HELPER_SENS WITH_ENGINE_TEST_HELPER_BOARD_CALLBACK WITH_ENGINE_TEST_HELPER; do
git grep -l "$i" | xargs sed -i "s/$i/EngineTestHelper eth/g"
done
git checkout firmware/controllers/core/engine_ptr.h
git checkout unit_tests/global.h
* Review fixups.
2021-11-16 16:52:11 -05:00
Matthew Kennedy
cb032fb1ea
(void) -> () ( #3550 )
...
* static functions with (void)
* more
* Revert "more"
This reverts commit 246e53441f935451437df186ac92d7df26b62fb6.
* s
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-15 13:02:34 +01:00
Matthew Kennedy
145316c497
less macro, more c++ ( #3549 )
...
* less macro
* s
2021-11-15 12:44:40 +01:00
racer-coder
31539035b7
Create an interpolate3d function to match the interpolate2d, but for 3d tables. ( #3459 )
...
Remove some implicit C array to pointer conversions in Map3D by adding
(), *, and & where appropriate. This allows us to remove getBinPtr.
Call interpolate3d from Map3d so there's no code duplication.
2021-11-04 14:07:37 -04:00
Matthew Kennedy
24224729a3
support autoscale on table axes ( #3452 )
...
* scale map Y axis
* allow different row/col types
* scaled channel detector
* interpolation
* looks like this actually works
* tests, no manual scaling
* comment
2021-11-03 19:53:26 -04:00
Andrey
b188c70823
docs
2021-11-02 23:34:44 -04:00
Andrey
747bbd9c6a
warning(CUSTOM_PID_DTERM, "PID: unexpected dTime")
2021-10-29 18:31:43 -04:00
rusefillc
8f6420ba98
pid into lua
2021-10-21 19:43:30 -04:00
rusefillc
6bbabbf1fe
refactoring
2021-10-20 21:47:49 -04:00
GitHub build-firmware Action
981fc58297
Auto-generated configs and docs
2021-10-17 01:13:47 +00:00
rusefillc
292173f818
progress - live doc generator works again!
2021-10-16 21:08:50 -04:00
rusefillc
4cc1c352c2
better file locations
2021-10-16 20:17:01 -04:00
Andrey
03ffa82d8e
zero dwell warning at zero RPM #3153
2021-08-16 09:11:22 -04:00
rusefillc
32a650ebe8
zero dwell warning at zero RPM #3153
2021-08-16 04:20:32 -04: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
Matthew Kennedy
d24f1462e2
even more pch ( #3112 )
...
* s
* more
* s
* f7
2021-08-04 19:30:52 -04:00
Matthew Kennedy
25414ebdad
yet more pch ( #3068 )
...
* big pch energy
* put back ramdisk stub
* tests are happy
* h743 nucleo
* kinetis
* I love deleting code!
* make stepper happy
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-08-03 22:05:01 -04:00
Matthew Kennedy
b52d50bbf2
Use pch in lots of files ( #3066 )
...
* most engine.h
* most engine_configuration
* more
* more
* more
* more
* more
* moooooore
* ok I'm done for now
* oops
2021-07-26 01:05:17 -04:00
Andrey
8bd4a846ae
more details into error message
2021-07-02 19:05:54 -04:00
Matthew Kennedy
219d9feaef
Check that table axes are ascending ( #2866 )
...
* templated interpolation check
* check tables
2021-06-26 15:02:25 -04:00
Matthew Kennedy
de7879b6e4
convert a table to scaled_channel ( #2724 )
...
* scaled VE table
* use setTable
* efi::clear
* ratio -> struct
2021-05-20 20:00:32 -04:00
Matthew Kennedy
b398d03f5f
rewrite table3d ( #2723 )
...
* post cranking factor limits
* sensible defaults
* but not for tests
* add pointer version of get bin
* test via map3d
* put that back for a minute
* new impl
* fix order
* rename and fix table orientation
* flip the table to the correct orientation
* dead cleanup, rename
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-05-20 22:31:16 +03:00
Matthew Kennedy
ad71016862
rip the bandaid: find-replace most of scheduleMsg ( #2572 )
...
* biiiig find replace
* more trivial find replace
* pwm
* almost all of them
* few more
* gpio
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-21 12:53:13 -04:00
Matthew Kennedy
5145ee4b62
logging cleanup 2: sensors, pid, etb, etc ( #2567 )
...
* ts logger
* sensors
* wideband too
* missed one
* init
* motors, pid, etc
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-18 20:02:32 -04:00
rusefillc
6eb68aa4a1
helping us trace CUSTOM_INTEPOLATE_ERROR
2021-04-08 16:14:06 -04:00
Matthew Kennedy
95b08c433f
Implement nonlinear fuel level sender ( #2473 )
...
* table function
* config fields
* sensor type
* switch consumers
* init the sensor
* ui
* 1mv resolution
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-19 08:39:08 -04:00
Matthew Kennedy
053835a1c0
error accumulator ( #2434 )
...
* error accumulator
* makefile
2021-03-08 07:40:46 -05:00
Matthew Kennedy
4a1d3de9a6
remove unused msg parameter ( #2360 )
...
* dead parameter
* last few
2021-02-16 09:32:16 -05:00
Matthew Kennedy
604b0cd527
templated interpolate2d ( #2221 )
...
* template table2d
* assertions
* oops
* tests
* test bins too
* more assert
* format
* explicitly handle and test NaN
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-01-11 08:00:15 -05:00
Matthew Kennedy
d0c71d758b
update biquad ( #2201 )
2021-01-08 19:48:56 -05:00
Matthew Kennedy
747b3d2fa8
fix #1968 ( #1976 )
...
* tanf
* name
* comment, add test
2020-11-22 08:26:17 -05:00
rusefillc
4c9c8d42bf
Starter seems to be engaged forever #1965
2020-11-18 19:51:51 -05:00
Matthew Kennedy
eebded8caa
scale tables using type system ( #1776 )
...
* store scale in the type
* efi ratio
* boost control scaling
* fix boost tests
2020-09-10 18:44:10 -04:00
Matthew Kennedy
1a55085bb6
Software knock detection ( #1730 )
...
* s
* science
* set pin mode
* turn stuff off so it fits
* filtering maybe
* filtering actually works
* generate filter parameters internally
* shorter window
* guard behind enable flag
* use checked in filter
* add biquad reset
* tracing
* const
* exec order
* do it from a thread
* smaller buffer, comment
* configure with header
* only for proteus
* oops
* unused
* not needed
* guards
* pin config
* don't need that include
* precook filter steady state
* define sample rate
* config enable switch
2020-08-28 21:13:50 -04:00
Matthew Kennedy
733008b9d0
Analog input filtering ( #1680 )
...
* improve biquad
* cleanup
* add filtering to subscriptions
* config sensors
* comment
* doesn't need to be that fast
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-08-21 19:47:12 -04:00
Matthew Kennedy
6d102fcdca
more dead
2020-07-29 02:34:30 -07:00
rusefi
1ae1af46d8
Stefan, I want to drink from the same fountain of patience
2020-07-12 15:00:44 -04:00
rusefi
7735758ec5
PidIndustrial does not limit iTerm fix #1599
2020-07-11 15:30:40 -04:00
rusefi
88bbd25042
PidIndustrial does not limit iTerm #1599
2020-07-11 15:05:18 -04:00
rusefi
29e3c71df4
https://rusefi.com/forum/viewtopic.php?p=37401#p37401
2020-07-10 14:19:51 -04:00
rusefi
c0bb907aa3
idle_min through FSIO not working as intended #1553
...
FSIO debug outputs progress
2020-07-04 21:32:12 -04:00
rusefi
a4329169e9
better file name
2020-05-25 13:02:05 -04:00
rusefi
0a5cf07956
funny that THIS would happen
2020-05-23 22:11:09 -04:00
Matthew Kennedy
e2974cfeda
short term fuel trim: part 2 ( #1405 )
...
* add tooltip
* add other direction to deadband
* add impl
* test partitioning
* makefile
* wrong comment
* fix include
2020-05-07 08:52:32 -04:00
Matthew Kennedy
9779049238
actually use msg parameter ( #1372 )
2020-04-27 07:56:38 -04:00
Matthew Kennedy
ff867b9301
fix warnings ( #1282 )
...
* warnings
* don't need to template those
2020-04-12 09:39:14 -04:00
Matthew Kennedy
200bfe3f80
Deadband helper & tests ( #1267 )
...
* deadband
* header
* comment
2020-04-06 09:16:26 -04:00
rusefi
a47dce4025
code style
2020-04-01 21:32:21 -04:00
rusefi
ebe67b6be3
fine
2020-03-24 16:46:36 -04:00
rusefi
ef6f3d567e
simpler API?
2020-03-24 02:33:20 -04:00
Matthew Kennedy
e605b39ab1
const ( #1193 )
2020-03-18 21:55:46 -04:00
rusefi
bb217b01dd
happy new year unification
2020-01-13 21:57:43 -05:00
Matthew Kennedy
f90a5e48eb
const ( #1062 )
2019-12-16 20:36:40 -05:00
Matthew Kennedy
00840d99ec
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
Matthew Kennedy
3514eb313e
const + fwd declare pid things ( #1024 )
2019-11-22 15:55:38 -05:00
andreika-git
9f33df9574
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
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
7c9a7d34b4
PID display in console was broken
2019-09-27 23:37:57 -04:00
rusefi
4f33dff0a1
ETB target is using integer values fix #945
2019-09-22 18:15:00 -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
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
90d6c37ff8
docs typo
2019-07-21 17:05:41 -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
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
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
30847db935
adding support for smaller table axis
2019-06-10 12:38:32 -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
rusefi
01e481db31
fix #802
2019-05-25 13:36:29 -04:00
rusefi
d7fd0ce6c1
refactoring: better method name
2019-05-07 19:32:08 -04:00
rusefi
254af7695e
PID - fix dTime usages fix #776
2019-04-26 00:45:53 -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
d8281626df
defined(__DOXYGEN__) ? fix #748
2019-04-12 22:10:57 -04:00
rusefi
be9651cb95
The Big Refactoring of 2019: folder structure #723
2019-03-31 17:44:34 -04:00