Matthew Kennedy
add0dcd390
switch more map to read from sensor model ( #2162 )
...
* hook up map
* check for init
* switch some consumers
* that's the rest of them
* test
* tests
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-01-02 19:13:10 -05:00
Matthew Kennedy
924ca4f3a4
progress to fsio type safety ( #2137 )
...
* rename
* packed type safe fsio value
* comment
* rename
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-27 17:22:11 -05:00
Matthew Kennedy
b0f7fbf28a
create limp manager ( #2142 )
...
* move rev limit to limp manager
* call fatal error
* include order
* fix bug
* tests
* comment
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-26 17:30:46 -05:00
Matthew Kennedy
c0857d6f02
unused ivalue ( #2138 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-25 09:47:33 -05:00
Matthew Kennedy
90cdd2ee84
rename ( #2136 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-25 08:40:54 -05:00
Matthew Kennedy
c29f40bdf4
format in tests ( #2100 )
2020-12-18 08:48:19 -05:00
rusefillc
f147aabcd7
trigger and start button pins not displayed by "pins" command #2084
...
progress but not complete fix yet
2020-12-16 22:00:42 -05:00
Matthew Kennedy
abf683e775
test ( #2071 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-12 23:40:05 -05:00
shadowm60
92304460dd
Fsio eval check ( #2068 )
...
* FSIO error signaling
- wrong keyword in FSIO now shows up as nice TS error message
- added f7 debug option for vsCode as well.
* Keep unit_test happy
2020-12-12 20:03:52 -05:00
Matthew Kennedy
719e341eeb
start fuel pump as soon as trigger events happen ( #2038 )
...
* switch pump fsio logic
* value collision
* fuel pump in tests
* mock time since trigger
* test fp
* init pin in test
* fix gpio outputs in tests
* comment
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-10 01:23:24 -05:00
Matthew Kennedy
73fc01ceec
put back safe part of #2005 ( #2036 )
...
* put back some safe bits
* dumb typo
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-06 22:28:29 -05:00
rusefillc
8d6255b1e2
Revert "switch rpm calculator to use timer class ( #2005 )"
...
This reverts most of 622021e799
commit.
2020-12-06 18:05:53 -05:00
Matthew Kennedy
622021e799
switch rpm calculator to use timer class ( #2005 )
...
* add api
* rpm calculator
* fix fsio
* fix float
* remove wrong comment
* fix timer
* clang didn't like this
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-06 16:01:45 -05:00
Matthew Kennedy
bb2208fb52
add timer since last trigger tooth ( #2004 )
...
* add elapsed time to timer
* store trigger time
* fsio method
* don't do a 64b divide
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-03 11:13:45 -05:00
rusefillc
59655af204
Fuel pump should turn on at the first sign of engine rotation #1961
2020-12-02 23:09:39 -05:00
Matthew Kennedy
6b0c533d2c
consolidate EFI_UNIT_TEST and friends ( #1940 )
...
* restructure
* guard c++
* idle too
* status_loop.h
* consolidate definitions
* use 1/0 instead, check for existence
* missed a few
* dead define
* defs for bootloader
2020-11-11 20:34:39 -05:00
Matthew Kennedy
74d2af9c6c
Move all DECLARE_ENGINE_PTR etc to one place ( #1937 )
...
* restructure
* guard c++
* idle too
* status_loop.h
2020-11-11 19:06:04 -05:00
Matthew Kennedy
cca175c6ea
Etb function cfg, try again ( #1860 )
...
* two throttles one thread
* look at all this RAM!
* add enum
* switch from index to function
* test fixup
* improve init logic
* remove old vw idle mode bit
* add config
* better spot for it
* use config init values
* handle null controller array
* fatal error testability
* test new init config
* defaults
* fix for default config
2020-10-08 14:12:03 -04:00
Matthew Kennedy
22a55ce7e6
switch from float to expected<float> ( #1862 )
2020-10-06 22:33:00 -04:00
Matthew Kennedy
7b333e60ea
FSIO refactoring ( #1861 )
...
* better fsio tests
* condense operators
* minor parser cleanup too
* comments, too!
2020-10-06 21:54:49 -04:00
Matthew Kennedy
da3242f2fc
missing iat ( #1854 )
2020-10-04 21:33:54 -04:00
rusefillc
aee984d0c2
HW CI has failed 11 times since Oct 2 #1849
...
Revert "ETB function config (#1831 )"
This reverts commit fd7dae8a
2020-10-03 22:00:00 -04:00
Matthew Kennedy
fd7dae8ab8
ETB function config ( #1831 )
...
* two throttles one thread
* look at all this RAM!
* add enum
* switch from index to function
* test fixup
* improve init logic
* remove old vw idle mode bit
* add config
* better spot for it
* use config init values
* handle null controller array
* fatal error testability
* test new init config
* defaults
* fix for default config
2020-10-02 20:51:02 -04:00
Matthew Kennedy
a11338d642
print red ( #1843 )
2020-10-01 17:14:25 -04:00
Matthew Kennedy
36234961c1
logging simplification: switch bare functions to member functions: try the second ( #1794 )
...
* first pass
* first pass
* const means we don't have to check!
* static
* test fixup
* fix sniffer
2020-09-13 11:49:25 +03:00
rusefi
ead14bd1ca
Revert "logging simplification: switch bare functions to member functions ( #1788 )"
...
This reverts commit 39280fb2
2020-09-12 04:36:24 -04:00
Matthew Kennedy
39280fb2c6
logging simplification: switch bare functions to member functions ( #1788 )
...
* first pass
* first pass
* const means we don't have to check!
* static
* test fixup
2020-09-12 03:08:11 +03:00
rusefi
06763dc98f
Hellen says merge #1772 Kinetis needs help
2020-09-10 21:51:58 -04:00
rusefi
e289977e37
Hellen says merge #1772 main relay progress
2020-09-10 21:11:02 -04:00
rusefi
554a019e2e
Hellen says merge #1772 error pin logic
2020-09-09 18:35:17 -04:00
rusefi
41cecd15eb
Merge remote-tracking branch 'origin/Hellen_fork_point' into master
...
# Conflicts:
# firmware/controllers/core/error_handling.cpp
# firmware/controllers/system/efi_gpio.cpp
2020-09-09 18:23:04 -04:00
rusefi
fe3d03ba5a
Hellen says merge #1772 error pin
2020-09-09 18:18:59 -04:00
rusefi
3d0f92c4a1
microRusEFI used as Body Control Module BCM BCU
2020-09-07 11:09:48 -04:00
Matthew Kennedy
fc02c2bdf4
fix broken master, inject engine ptr to rpmcalculator ( #1759 )
...
* fix
* oops
2020-09-05 18:49:42 -04:00
rusefi
b7f7b917ec
A vague bug #1684
2020-08-08 21:38:09 -04:00
rusefi
6b2c1d4d59
NA6 progress
2020-07-29 22:48:41 -04:00
Matthew Kennedy
4703b4be6d
guard perf track lock hooks ( #1591 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-07-11 00:16:36 -04:00
Matthew Kennedy
1a0cad431b
trace global lock/unlock ( #1582 )
...
* trace global lock/unlock
* bootloader stub
* add to java
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-07-10 23:27:27 -04:00
rusefi
21c35874a5
idle_min through FSIO not working as intended #1553
2020-07-01 20:45:37 -04:00
rusefi
a743b55e5e
index for fsio_analog_input
2020-06-01 22:39:56 -04:00
rusefi
0847dc4683
useFSIO6ForRevLimiter
2020-06-01 09:09:55 -04:00
Matthew Kennedy
a2313a853c
switch some firmware warnings to errors ( #1465 )
...
* warnings as errors
* throw instead of exit
* test massaging
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-23 10:46:28 -04:00
rusefi
e063aa492a
build and board info into critical error message
2020-05-22 16:45:13 -04:00
rusefi
714979586b
refactoring
2020-05-22 16:36:37 -04:00
rusefi
19bef7870c
fixing build
2020-05-22 01:03:27 -04:00
rusefi
5c91d96ce6
new LED logic: constant WARNING if VBATT is below 7v
2020-05-13 01:17:48 -04:00
rusefi
a88b41a8d0
refactoring related to RED FATAL/CRITICAL LED is a bit dim when it should be OFF
...
#157
2020-05-11 18:22:51 -04:00
rusefi
94ca216936
nicer error messages
2020-05-09 01:49:17 -04:00
rusefi
cfd8889236
class constructors are a great way to have simple initialization sequence
2020-05-03 10:58:52 -04:00
rusefi
0ec3ce595e
dead code
2020-04-26 17:40:12 -04:00
rusefi
6bf8e0deed
different take on remove warning message in tune #1347
2020-04-22 19:07:42 -04:00
rusefi
385f4b12e8
Better handling in case of ETB idle without ETB #1332
2020-04-19 23:55:27 -04:00
rusEfi
35ffb13ca4
TS to show warning text
2020-04-19 21:42:00 -04:00
rusefi
f7327e0d71
still the cost of remix 66-2-2-2
2020-04-19 18:58:22 -04:00
rusefi
2f773c314a
TT_RENIX_66_2_2_2
2020-04-19 14:54:02 -04:00
rusefi
6816b38371
FSIO RPN progress
2020-04-18 21:01:23 -04:00
Matthew Kennedy
942403cec2
Fuel/ign correctino on new temp sensors ( #1318 )
...
* corrections
* test
* adv map
* tests
* cleanup
* lcd
* fsio
* unneeded
* more math
* last consumer
* cleanup
* fix kinetis
2020-04-18 18:45:30 -04:00
Matthew Kennedy
e50e8611c1
new clt/iat: OBD and CAN dash ( #1317 )
...
* corrections
* CAN consumers
* can consume
* obd, lcd
* Revert "corrections"
This reverts commit 0003b270ce8344f7eefe7dbb87a9de7cffc5b8a8.
* iat
2020-04-18 15:53:04 -04:00
Matthew Kennedy
2535d123b8
CLT consumer: fsio ( #1302 )
...
* idle
* CLT test prep
* idle target
* header
* air interpolate
* ancient comment
* fuel cut
* fuel cut, idle tests
* cleanup
* fsio test help
2020-04-15 16:20:45 -04:00
Matthew Kennedy
f2fcbc0a0e
fix again ( #1280 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-10 19:02:37 -04:00
Matthew Kennedy
2c12da4a27
tps ( #1279 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-10 17:49:13 -04:00
rusefi
c879c9ff21
PPS FSIO not complete support
2020-04-10 17:46:56 -04:00
rusefi
4d3036bb6c
better message?
2020-04-10 17:45:04 -04:00
rusefi
99bb149a1c
I got distracted as usual :(
2020-04-10 15:49:44 -04:00
Matthew Kennedy
c0f03fd8fb
cleanup ( #1259 )
2020-04-04 15:59:13 -04:00
Matthew Kennedy
0ac3e06149
cleanup extern mess ( #1237 )
...
* cleanup
* move outside define
2020-03-29 19:06:03 -04:00
rusefi
84e0e1b6e9
critical error usability improvements
2020-03-28 21:28:32 -04:00
rusefi
79e5059c5a
critical error usability improvements
2020-03-28 20:14:17 -04:00
rusefi
99af87ccbb
code style
2020-03-28 19:49:36 -04:00
Matthew Kennedy
b7033bbde9
Finally rename injector_central to bench_test ( #1229 )
...
* bench test rename
* rename consumers
* good lord what are all of these externs doing
* fix tests
2020-03-26 08:03:55 -04:00
Matthew Kennedy
2e12329199
Default to applyPinState ( #1219 )
...
* make applyPinState default
* consumers
* format
2020-03-25 18:14:09 -04:00
rusefi
4d617aa0fe
random header clean-up
2020-03-23 09:00:57 -04:00
rusefi
17b498a0f3
progress towards start/stop
2020-03-18 19:41:12 -04:00
rusefi
d9690bed3a
progress towards start/stop
2020-03-18 16:32:03 -04:00
Matthew Kennedy
a2a5b40ced
Support disabling most/all features ( #1162 )
...
* this flag did nothing
* guard features properly
2020-02-26 18:16:35 -05:00
Matthew Kennedy
fa8553b00d
Stricter compile options ( #1132 )
...
* stricter
* don't warn on that one
* this code was dead
2020-02-08 08:05:40 -03:00
rusefi
f4d36f32fa
VVT refactoring & assertions for VVT test
2020-01-31 01:49:10 -05:00
rusefi
586eb9e6e3
code style: trying to get used to this syntax
2020-01-22 00:45:09 -05:00
rusefi
1a3bfa4b02
code style
2020-01-21 01:47:58 -05:00
rusefi
a222ecdfe1
happy new year unification
2020-01-13 21:57:43 -05:00
rusefi
63e3e84e08
happy new year
2020-01-08 00:02:40 -05:00
rusefi
6acb7264aa
docs
2019-12-17 08:56:08 -05:00
rusefi
1f49803441
fixing build
2019-12-15 23:33:15 -05:00
rusefi
f47a1a16d1
getting rid of boardConfiguration / binary compatible change
2019-12-11 17:48:55 -05:00
rusefi
561986d3e4
The Big Refactoring of 2019: folder structure #723
2019-12-04 01:11:10 -05:00
rusefi
07b7b62bca
refactoring
2019-12-02 23:08:18 -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
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
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
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
1f8176ac7e
CI instability: FATAL error: warn stream not initialized for 6039 #798
2019-11-23 17:07:13 -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
4cebc85cbf
refactoring
2019-11-20 01:35:08 -05:00
rusefi
19bdb9a35f
docs & code formatting
2019-11-19 18:17:03 -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
Matthew Kennedy
2edd673bd6
fix ( #1005 )
2019-11-13 08:42:16 -05:00
rusefi
5ea97e5ba8
Revert "restoring #1003"
...
This reverts commit 2ebaa5cf
2019-11-12 23:18:48 -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
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
30cfb96619
evil manual merge of https://github.com/DonaldBecker/rusefi
2019-11-05 20:07:55 -05:00
rusefi
eae44843b1
custom codes cleanup
2019-11-04 09:20:00 -05:00
rusefi
d99d576e2b
CI instability: FATAL error: warn stream not initialized fix #798
2019-11-03 22:15:49 -05:00
rusefi
0fcf3bfa4e
refactoring: reducing code duplication
2019-10-21 23:47:40 -04:00
rusefi
f776513a5a
preparation for #961
...
macro as a syntax sugar for method invocation
2019-10-10 07:28:52 -04:00
rusefi
15ae9b1580
fancy C++ s/NULL/nullptr/
2019-10-08 01:26:35 -04:00
rusefi
c6bca8e77a
ETB target is using integer values #945
...
refactoring - ADC mocking is a mess
2019-09-22 10:02:07 -04:00
rusEfi
4c39a207a9
s/NULL/nullptr/
2019-09-22 08:22:35 -04:00
rusEfi
53ae54e8cc
ETB target is using integer values #945
...
first we will write a unit test
2019-09-22 00:16:46 -04:00
rusefi
03d71bedeb
reducing complexity
2019-09-20 01:06:15 -04:00
rusefi
60d57d2dd8
BUG: FSIO logic requires a pin to calculate fix #933
2019-09-18 23:22:15 -04:00
rusefi
115d295bd8
BUG: FSIO logic requires a pin to calculate fix #933
2019-09-18 22:07:02 -04:00
rusefi
8ef1fcd344
unit tests progress
2019-09-18 21:48:46 -04:00
rusefi
fd62a9c0f7
unit tests progress
2019-09-18 21:38:45 -04:00
rusefi
fcbc26bf82
FSIO progress
2019-09-13 21:07:34 -04:00
rusefi
d576f3ba1f
Delayed A/C compressor switch #922
...
unit tests skeleton
2019-09-12 07:31:13 -04:00
rusefi
f0427360bf
Delayed A/C compressor switch #922
2019-09-11 20:46:50 -04:00
rusefi
5ac8545060
Delayed A/C compressor switch #922
2019-09-11 19:30:36 -04:00
rusefi
7f069e428f
Delayed A/C compressor switch #922
2019-09-10 23:49:21 -04:00
rusefi
3f856dc54d
Delayed A/C compressor switch #922
2019-09-10 22:55:58 -04:00
rusefi
d4b9c7217e
fatalErrorPin setting is not used #926
...
reducing configuration fragility
2019-09-09 21:44:48 -04:00
rusefi
003c868b3f
has been a while so safe to assume everyone has default value
2019-09-08 22:17:51 -04:00
rusefi
f9bb333453
Delayed A/C compressor switch #922
2019-09-08 21:09:45 -04:00
rusefi
50e0887c96
Delayed A/C compressor switch #922
2019-09-08 21:05:03 -04:00
rusefi
8038885ae2
docs & naming consistency
2019-09-01 11:59:39 -04:00
rusefi
e1a7ae0148
Live Data progress
2019-09-01 00:45:36 -04:00
rusefi
a8f7a8965b
cranking fuel live data #911
2019-08-26 23:41:04 -04:00
rusEfi
dfc5f86e6e
MRE ETB
2019-08-15 01:59:15 -04:00
rusefi
ef5a1447e9
CI instability: FATAL error: warn stream not initialized for 6039
...
also some refactoring
fix #798
2019-08-04 13:48:10 -04:00
rusefi
fd8f70d8c4
Annotations in C++ code to produce formulas in rusEfi console #807
2019-07-13 09:00:03 -04:00
rusefi
6ab2832c24
More than one aux pid #866
...
progress!
2019-07-12 08:31:38 -04:00
Matthew Kennedy
e4a0a0ae91
Fix some maf logic ( #880 )
...
* fix maf
* thank you vscode for mangling ANSI -> utf8
2019-07-10 09:14:47 +03: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
bad507558a
Refactoring: OS access should be explicit #867
2019-07-04 03:25:35 -04:00
rusefi
777eb532dc
Refactoring: OS access should be explicit #867
2019-07-03 21:48:04 -04:00
rusefi
d0e4a0984f
Annotations in C++ code to produce formulas in rusEfi console #807
2019-06-27 06:47:13 -04:00
rusefi
dd43f62706
Annotations in C++ code to produce formulas in rusEfi console #807
2019-06-18 23:23:30 -04:00
rusefi
0b843819eb
TPS Live Documentation
2019-06-17 21:37:11 -04:00
rusefi
d90c6ee1a3
Annotations in C++ code to produce formulas in rusEfi console #807 ( #847 )
...
* Annotations in C++ code to produce formulas in rusEfi console #807
firmware part of the change
* removing unneeded stuff & fixing unit test compilation
* not complete better unit test compilation fix :(
* better C++ usage
2019-06-17 12:18:55 -04:00
rusefi
bc5154694b
adding support for smaller table axis
2019-06-10 12:38:32 -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
rusefi
998345ef9e
unit tests should not have global context, including mock values
2019-05-27 15:56:12 -04:00
rusefi
cbc1aef722
more PROD code into unit test
2019-05-12 20:31:28 -04:00
rusefi
f89c326579
todo
2019-05-10 22:10:40 -04:00
rusefi
8a90297160
refactoring: better method name
2019-05-07 19:32:08 -04:00
rusefi
85b790edcf
The Big Refactoring of 2019: DECLARE_ENGINE_PARAMETER_SUFFIX consistency and simplification #657
...
maybe probably pointless refactoring? reducing parameters visibility
2019-05-03 18:41:43 -04:00
andreika-git
b5f87ae584
Default config refactor ( #762 )
...
* Refactor config
* Fix FSIO_ANALOG_INPUT_COUNT
2019-04-16 10:27:34 -04:00
rusefi
884c54a185
defined(__DOXYGEN__) ? #748
2019-04-12 22:07:03 -04:00
rusefi
54f83a431e
smarter PWM API - need to pass arbitrary pointer
2019-04-12 20:11:27 -04:00