Matthew Kennedy
363f6d5110
add expected helper class ( #1321 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-19 01:53:04 -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
24b0c85a9e
fix warnings ( #1282 )
...
* warnings
* don't need to template those
2020-04-12 09:39:14 -04:00
Matthew Kennedy
3abd181f6f
CLT/IAT/Aux in the new sensor world ( #1269 )
...
* hook up clt
* init test
* probably fix test
* aux temp
* relax checking
* more significant figures
* remove old aux temp
* hand generate
* claim RAM
* move to ccm
* subscribe
* info printing
* warnings
* raise high voltage failure threshold
* fix test
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-07 16:07:09 -04:00
Matthew Kennedy
f161a6990a
fix ( #1268 )
2020-04-06 09:00:26 -04:00
Matthew Kennedy
95ef31da67
Goodbye, old TPS ( #1266 )
...
* clear out tps
* boost control
* aux valves
* launch, aux valves
* unused field
2020-04-05 19:33:33 -04:00
Matthew Kennedy
44bb09d1a4
yet more tps consumers ( #1258 )
...
* advance_map
* tests
* unneeded
* idle
* use driver intent instead
* and obd and lcd
* engine load
* ve lookup
* unused
* oops we needed that
* oops needed that too
* mocking
* test mocks
* oops
* helps to use the right sensor
* and cylinder cleanup
* fuel math
* typo
* old tests
* kill dead stuff
* cleanup
* more
* fix
* test
* s
* fix signature
* fix test
* comment
* priming pulse
* remove mock tps
* remove more dead
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-05 09:11:25 -04:00
Matthew Kennedy
cee565f2b1
Add redundant sensor ( #1249 )
...
* add redundant sensor
* add tests
* add configure, info printing
* tests
* tests
* casing
Co-authored-by: Matthew Kennedy <matthew@mck-mbp-15.local>
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-02 08:55:21 -04:00
Matthew Kennedy
7e4f4ca97e
Replace hasPedalPositionSensor ( #1245 )
...
* remove
* add Sensor::hasSensor
* consume in etb
* remove unused state
* don't use it there either
* format
* fix up tests
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-02 08:04:12 -04:00
Matthew Kennedy
6090924f5b
Improve tps error message ( #1244 )
...
* improve error messages
* fix
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-02 08:02:44 -04:00
Matthew Kennedy
8235d8d765
Fully switch acc pedal to new sensors ( #1212 )
...
* proxy sensor
* header
* idle
* can
* settings
* remove old mocking
* remove old impl
* etb
* oops, gotta actually register it
* fix test
* structured bindings ftw!
* driver intent for stepper
* tear out old
* oops too much
2020-04-01 20:21:03 -04:00
Matthew Kennedy
90ec387cdb
Sensor-via-CAN ( #1241 )
...
* CAN sensor impl
* subscription hookup
* printing
* init
* inject stamp
* don't init const field
* clarify
* guard for non-CAN builds
* fix merge
* guard with EFI_CANBUS_SLAVE
* headers, guards
* include
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-31 23:21:05 -04:00
rusefi
fe604f71b8
CAN progress
2020-03-31 16:49:19 -04:00
Matthew Kennedy
44871c162c
Debugging for sensor converter functions ( #1239 )
...
* func print
* resistance func, func chain
* formatting
* resistance func format
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-31 01:07:08 -04:00
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
0ac3e06149
cleanup extern mess ( #1237 )
...
* cleanup
* move outside define
2020-03-29 19:06:03 -04:00
rusEfi
44fdb83844
dual ETB progress
2020-03-24 20:22:01 -04:00
Matthew Kennedy
61c4d0fe83
save some ram ( #1211 )
...
* remove dead stuff
* why store those pointers twice?
2020-03-22 19:06:29 -04:00
Matthew Kennedy
8731c0100f
Proxy sensor for extra magic ( #1210 )
...
* proxy sensor
* header
2020-03-22 17:29:01 -04:00
Matthew Kennedy
3840440e97
Accelerator pedal with new sensors ( #1208 )
...
* add pedal sensor
* update status loop
* add bit to ts
* fix math
* divide at config time
* this used a little bit of ram
2020-03-22 17:09:46 -04:00
Matthew Kennedy
fefb5e3b1a
Pedal rx shim ( #1207 )
...
* rx pedal over can
* guard
* guard
* don't cast away qualifiers
2020-03-21 22:35:27 -04:00
Matthew Kennedy
2ae689073a
Grow CAN TX stack ( #1201 )
...
* grow
* check mock first
2020-03-19 19:29:56 -04:00
Matthew Kennedy
4096483aec
custom verbose can format ( #1200 )
...
* config
* ts
* default cfg
* hand generate
* tx struct helper
* add data sending
* wire up
* value_or helper
* add file
* more sensors
* header
* compactify
* add status frame
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-19 17:58:46 -04:00
Matthew Kennedy
8ceb5c8996
fix icu trigger polarity ( #1177 )
...
* fix polarity
* fix confusing names
2020-03-08 08:57:21 -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
5c4329dbf2
tps header cleanup ( #1130 )
...
* tps header cleanup
* dead code
2020-02-07 23:20:14 -03:00
Matthew Kennedy
e04fc117e6
Consume new tps in status_loop.cpp, settings.cpp ( #1129 )
...
* new tps
* more
* settings.cpp too
* more
* comment
2020-02-07 06:05:15 -03:00
Matthew Kennedy
eb472c49b2
Use new sensors for TPS ( #1111 )
...
* tps init
* fix init
* call init
* use correct sensors, scale using constant
* includes
* handle error
2020-02-04 01:54:05 -05:00
Matthew Kennedy
734963343d
Rescale TPS ( #1112 )
...
* fake adc ticks
* consumers
* fix test 1
* fix tests
2020-02-01 16:41:07 -05:00
rusefi
1a3bfa4b02
code style
2020-01-21 01:47:58 -05:00
rusefi
d91a7a6a8f
code style
2020-01-21 01:40:11 -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
Matthew Kennedy
1c96a41aee
how tf did this ever build...? ( #1099 )
2020-01-12 03:25:34 -05:00
Matthew Kennedy
0256b0358e
Add timeout + raw value access for sensors ( #1098 )
...
* timeout
* inject stamp
* allow getting raw value
* plumb timeout
* fix tests
2020-01-12 03:25:23 -05:00
rusefi
20a6cf130f
better method name
2020-01-10 02:02:22 -05:00
rusefi
63e3e84e08
happy new year
2020-01-08 00:02:40 -05:00
Matthew Kennedy
2b4b119962
Add new sensor function types ( #1065 )
...
* add functions
* add tests
* add chain tests
* float suffix
2019-12-17 09:06:29 -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
7a470b9817
Remove sensor reporting loc ( #1064 )
...
* remove raw rept loc
* remove normal reporting location
* fix up oil pressure
* format
2019-12-16 22:45:46 -05:00
rusefi
8cf255402f
codes clean-up
2019-12-14 00:14:36 -05:00
rusefi
2c296c0f18
etbActualCount logic to handle the scenario where only one ETB is present
2019-12-13 12:50:34 -05:00
rusefi
f47a1a16d1
getting rid of boardConfiguration / binary compatible change
2019-12-11 17:48:55 -05:00
rusEfi
52c15a7d9b
dual-ETB progress
2019-12-10 00:07:46 -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
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
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
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
78d771460a
need better higher-level API :(
2019-11-11 22:14:45 -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
rusefi
8423fa0acf
pieces of #971
2019-11-03 22:02:52 -05:00
rusefi
abfdfe6896
preparation for #961
...
more unified access to pre-calculated value
2019-10-10 08:25:58 -04:00
rusefi
2c8a2b61a5
preparation for #961
...
more unified access to pre-calculated value
2019-10-10 08:16:21 -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
Matthew Kennedy
9b1dc07ae1
Simplify thermistor config ( #962 )
...
* simplify thermistor config
* fix test
2019-10-02 21:00:10 -04:00
rusefi
9a961fd0c2
do not let "Use fixed baro corr from MAP" kill VE fix #960
2019-09-29 09:58:29 -04:00
Matthew Kennedy
b68ed85491
Fix sensor mock spill, again ( #957 )
...
* actually reset
* add test
* doh
2019-09-27 21:40:36 -04:00
rusEfi
9193e73090
Revert "Fix sensor mocking bug ( #956 )"
...
This reverts commit 7989d593
2019-09-27 20:33:45 -04:00
Matthew Kennedy
7989d59311
Fix sensor mocking bug ( #956 )
...
* actually reset
* add test
2019-09-27 20:21:50 -04:00
Matthew Kennedy
325a9e3fd1
Hmm, that didn't quite work right ( #955 )
...
* maybe that wasn't a good idea
* we don't need a copy because you can't clear the func after setting it
* no longer a template - move logic to cpp
* fix tests
* rename to avoid object collision
2019-09-25 07:26:56 -04:00
Matthew Kennedy
ccb4c51e50
Sensors: composition >> inheritance ( #953 )
...
* functional sensors
* format
* tests
* sim makefile
* eol
* format tests
2019-09-24 21:11:41 -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
658dac889c
ETB target is using integer values #945
...
refactoring - ADC mocking is a mess
2019-09-22 09:56:06 -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
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
rusefi
03d71bedeb
reducing complexity
2019-09-20 01:06:15 -04:00
rusefi
0b5a49392f
refactoring
2019-09-20 00:17:00 -04:00
Matthew Kennedy
4aaf028251
Kill Dead Code 2: Electric Boogaloo ( #940 )
...
* remove dead
* remove dead
* deflex
2019-09-18 20:23:14 -04:00
Matthew Kennedy
700ae8ceaf
remove sensor_types.h ( #928 )
2019-09-11 18:10:49 -04:00
rusefi
c8bd1b68b1
pedal calibration into status message
2019-09-02 22:58:36 -04:00
rusEfi
8f10e85d03
mock PPS voltage command in addition to mock PPS position
...
ETB pane progress
2019-09-01 17:35:43 -04:00
rusEfi
7bf75b43b6
showing 'before' values while changing TPS settings
2019-09-01 16:11:35 -04:00
rusefi
8be592f3d4
Live Data progress
2019-09-01 13:56:46 -04:00
rusefi
6fc1b1dc88
typo
2019-08-31 23:32:33 -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
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
777eb532dc
Refactoring: OS access should be explicit #867
2019-07-03 21:48:04 -04:00
rusefi
2164661274
undoing wrong fix & better fix for #805
...
also generator logging improvements
This reverts commit 96270758c9
.
2019-06-30 14:28:47 -04:00
rusefi
2120e4827a
Annotations in C++ code to produce formulas in rusEfi console #807
2019-06-30 13:24:55 -04:00
rusefi
d0e4a0984f
Annotations in C++ code to produce formulas in rusEfi console #807
2019-06-27 06:47:13 -04:00
rusefi
35d3cc0ac4
docs/type safety
2019-06-19 21:24:09 -04:00
rusefi
96270758c9
"Calibrate TPS" broken in TS fix #805
2019-06-17 22:00:34 -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
rusefi
998345ef9e
unit tests should not have global context, including mock values
2019-05-27 15:56:12 -04:00
rusefi
e557a30193
messing with TPS mocking
2019-05-27 14:21:12 -04:00
rusefi
2c24571ddb
dreams of two ETBs
2019-05-05 12:02:42 -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
rusefi
899b96eec2
ETB tiny progress
2019-04-30 18:46:39 -04:00
rusEfi
67e8adf6f5
ETB micro progress
2019-04-30 01:21:09 -04:00
rusefi
dacf305011
docs
2019-04-24 17:00:05 -04:00
rusefi
884c54a185
defined(__DOXYGEN__) ? #748
2019-04-12 22:07:03 -04:00
dron0gus
12e07bc3ab
Some more include fixes for linux ( #738 )
...
* Some more include fixes for linux
* Pass cross-compile path through CROSS_COMPILE
* Lower-upper case conversion fixes for linux
2019-04-10 01:12:35 +02:00
rusefi
82028b29f8
better ICU error handling
2019-04-07 18:25:46 -04:00
rusefi
df420322f8
docs
2019-03-17 18:11:03 -04:00