Commit Graph

6355 Commits

Author SHA1 Message Date
rusefi 0e15a1f215 safer version by Dron0Gus 2020-04-06 11:29:09 -04:00
Matthew Kennedy 01c87a87ee Deadband helper & tests (#1267)
* deadband

* header

* comment
2020-04-06 09:16:26 -04:00
Matthew Kennedy f161a6990a fix (#1268) 2020-04-06 09:00:26 -04:00
rusefi 322c5be6b0 Merge branch 'master' of https://github.com/rusefi/rusefi 2020-04-05 22:25:35 -04:00
rusefi 3fec2af805 thank you Ola! 2020-04-05 22:25:09 -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
rusefi 5993a6a7f0 killing nbVvtIndex 2020-04-05 11:43:45 -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 43d38a6691 TPS Initialization Testing (#1264)
* test support

* stub for tests

* plumbing so we can test this

* add test

* comments
2020-04-05 09:10:08 -04:00
Matthew Kennedy c0f03fd8fb cleanup (#1259) 2020-04-04 15:59:13 -04:00
rusefi c2f87c5edd KLUDGE? we always show VBatt because Proteus board has VBatt input sensor hardcoded 2020-04-04 09:31:56 -04:00
Matthew Kennedy 8badc4cca3 remove ETB controlPinMode (#1260) 2020-04-04 08:41:45 -04:00
Matthew Kennedy 606a7fff0d More TPS consumers: VE lookup (#1256)
* 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

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-04 08:41:09 -04:00
Matthew Kennedy 0df4da6450 always show vbatt (#1262) 2020-04-04 07:42:14 -04:00
Matthew Kennedy 9a21262cf8 TPS consumers: idle and ignition and obd2 and lcd (#1254)
* advance_map

* tests

* unneeded

* idle

* use driver intent instead

* and obd and lcd

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-03 19:59:08 -04:00
rusefi 19a7a7adf6 v12 2020-04-03 17:44:55 -04:00
rusefi 856d4618cd could this work? 2020-04-03 16:14:29 -04:00
rusefi add38e4f24 extracting magic constant 2020-04-03 16:06:21 -04:00
Matthew Kennedy 7a0ee7d6dc improve pin error messages (#1252)
* improve error msg

* emulator pin names too

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-03 15:00:59 -04:00
Matthew Kennedy cd3dc7f91b fix (#1251) 2020-04-03 07:48:12 -04:00
rusefi 9203f08072 flipped 60/2? 2020-04-03 00:44:54 -04:00
rusefi fd02a6dc8c v12 2020-04-03 00:19:04 -04:00
rusefi a228870915 v12 2020-04-02 22:59:01 -04:00
rusefi 939a00a4b9 isFasterEngineSpinUpEnabled 2020-04-02 21:49:31 -04:00
Matthew Kennedy d16ff88e30 run ETB on new TPS (#1248)
* run ETB on new TPS

* why did we include all those...?

* init tps for etb test

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-02 21:33:49 -04:00
rusefi 034293325a Trigger Counters fix 2020-04-02 16:48:35 -04:00
Matthew Kennedy 54082ac8e1 switch (#1250) 2020-04-02 16:26:06 -04:00
shadowm60 baa2547da1 E30 M3 Tach output solution #907 (#1203)
* Update tachometer.cpp

Initial implementation of E30 M3 Tach output solution #907, unit_test plus debugging next

* tacho unit tests

First successfull unit test for tachometer

* RAM adjustment so it would link

* refactoring tacho, broken!

* starting to make some progress...still fails after a few seconds

* Rework with SW PWM

* Update after code review

* unit_test update

* First working unit_test

* Update .gitignore

* Update engine_controller.cpp

* Update engine_controller.cpp

* Update tachometer.h

* Update test_tacho.cpp

Co-authored-by: rusefi <rusefi@users.noreply.github.com>
2020-04-02 15:20:04 -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 da7179b6b1 only correct timing in dynamic mode (#1247)
* only correct in dynamic mode

* redundant check
2020-04-02 08:54:55 -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
rusefi 48baff1789 partial revert 2020-04-02 00:37:02 -04:00
rusefi 42ddc885a1 no PPS in slave mode 2020-04-02 00:33:12 -04:00
rusefi be5b4fb3c6 less ETB in case of critical 2020-04-02 00:32:03 -04:00
rusefi b40d4d588d code style 2020-04-01 21:32:21 -04:00
rusefi f3ab4d81f7 start/stop works now 2020-04-01 21:22:54 -04:00
rusefi 5db6414de5 Merge branch 'master' of https://github.com/rusefi/rusefi 2020-04-01 20:26:00 -04:00
rusefi 0f774b1c1c start/stop works now 2020-04-01 20:25: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
rusefi 4146388d86 progress towards E30 M3 Tach output solution #907 #1203 2020-04-01 19:12:34 -04:00
rusefi cc35e8a9b0 code style 2020-04-01 19:00:56 -04:00
rusefi 5f62c3535a date 2020-04-01 00:42:53 -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
Matthew Kennedy af76ce9e86 Print all rx packets in can debug mode (#1242)
* print packets in debug mode

* remove extra calls

* fix sign too
2020-03-31 21:18:19 -04:00
rusEfi 3f55b0db59 CAN progress 2020-03-31 20:57:52 -04:00
rusefi ffd262a7ba CAN progress 2020-03-31 20:23:40 -04:00
rusefi f2dafeefe0 CAN progress 2020-03-31 20:08:30 -04:00
rusefi f559976a19 CAN progress 2020-03-31 16:52:52 -04:00
rusefi fe604f71b8 CAN progress 2020-03-31 16:49:19 -04:00
rusefi 872f32c994 better message 2020-03-31 16:02:13 -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
rusefi dc52d039e7 start/stop progress 2020-03-31 01:06:19 -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
rusefi 287aa9536f Reducinc code duplication thank you Matt 2020-03-30 14:12:57 -04:00
rusEfi a3588f64fa v12 & dual-TPS 2020-03-30 01:13:02 -04:00
rusefi 21e96141a8 f4-slave 2020-03-29 22:10:13 -04:00
rusefi a806f14c24 f4-slave 2020-03-29 21:42:43 -04:00
rusefi 8a3e47d9e6 refactoring + MAP broadcast consumption 2020-03-29 21:15:06 -04:00
Matthew Kennedy 67f01ff9c7 Friendlier pin names (#1233)
* enable TS error readout

* friendlier text for common errors

* improve comment

* friendlier ADC errors

* ign/inj names

* more pin names
2020-03-29 19:07:07 -04:00
Matthew Kennedy 0ac3e06149 cleanup extern mess (#1237)
* cleanup

* move outside define
2020-03-29 19:06:03 -04:00
rusefi 06da8fe3fa start/stop progress 2020-03-29 17:21:17 -04:00
rusefi 51769df47c progress 2020-03-29 17:08:29 -04:00
rusefi 1956de6cea oooops 2020-03-29 16:56:40 -04:00
rusefi 22ed80f144 docs 2020-03-29 10:29:45 -04:00
rusefi d8fa2f449a ETB progress 2020-03-29 10:29:33 -04:00
rusefi 07dafde68f fsio 2020-03-29 09:03:33 -04:00
rusefi 40b530d6ae fsio 2020-03-29 08:43:13 -04:00
Matthew Kennedy d37b5f0494 Show fatal error text in TS (the right way) (#1232)
* enable TS error readout

* friendlier text for common errors

* improve comment
2020-03-29 07:27:36 -04:00
rusefi 84e0e1b6e9 critical error usability improvements 2020-03-28 21:28:32 -04:00
rusefi c6ac5ed888 progress 2020-03-28 20:56:58 -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
rusefi bd3b616d1f no longer relevant 2020-03-28 19:02:46 -04:00
rusefi f08b1542b0 AfterStart Enrichment #1230 2020-03-27 12:13:12 -04:00
rusefi 0e457ecedb date 2020-03-26 19:25:14 -04:00
rusefi ba80e91966 building the wall 2020-03-26 19:24:39 -04:00
rusefi 612131cbd5 #203 2020-03-26 19:22:14 -04:00
Matthew Kennedy 7645e033eb un-generate (#1228) 2020-03-26 11:52:19 -04:00
Matthew Kennedy 7596a80242 Ts cleanup 2 (#1226)
* remove biquad config

* fuel pump clarity

* hide stuff

* hide more stuff correctly

* more hides

* hide comparator except for kinetis

* didn't mean to change all those

* fix kinetis
2020-03-26 11:41:58 -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 fb222514c1 vscode config (#1227)
* vscode config

* actually don't hide those

* format
2020-03-26 08:02:37 -04:00
Matthew Kennedy b7b67a2a7f Multispark implementation (#1192)
* multispark prototype

* only multispark if not cut

* typo

* do some reasonableish math

* consume cfg

* todo

* bad merge

* move math out of engine2.cpp

* engine state config

* consume generated

* use new

* hand generate

* doc, debugging

* debug channel names

* don't depend on rpmcalc

* safer, fix math

* tests

* default multispark config

* remove todo

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-26 01:49:36 -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
Matthew Kennedy 9ba4279264 no fahrenheit (#1224) 2020-03-25 19:04:21 -04:00
Matthew Kennedy 2e12329199 Default to applyPinState (#1219)
* make applyPinState default

* consumers

* format
2020-03-25 18:14:09 -04:00
Matthew Kennedy 5420e5ef6d Fix mre vbatt (#1218)
* Revert "vbatt MRE happiness"

This reverts commit 4c5477f2cd.

* update comments
2020-03-25 16:23:04 -04:00
rusefi 5649f26348 allPins consistency thank you AndreiKa 2020-03-25 10:03:09 -04:00
rusefi e386955741 start/stop progress 2020-03-25 01:41:15 -04:00
rusefi b9ea8d74ae start/stop progress 2020-03-25 01:28:37 -04:00
rusefi 736957a875 startStopDialog 2020-03-25 00:58:59 -04:00
rusEfi 5928cd486a pretty slow v12 progress 2020-03-24 23:17:54 -04:00
rusEfi 66990d5c8d Launch debug mode 2020-03-24 23:09:35 -04:00
rusEfi 44fdb83844 dual ETB progress 2020-03-24 20:22:01 -04:00
Matthew Kennedy 45f5afe871 Remove old monitoring timestamps (#1217)
* remove monitoring timestamps

* adv map

* fuel calc

* map avg

* printing

* spark logic

* hip 9011

* new traces

* s

* missed a few
2020-03-24 20:19:19 -04:00
rusefi a910ab3da5 launch control #203 2020-03-24 19:55:12 -04:00
rusefi aa28127211 random code inspired by Ola 2020-03-24 19:50:04 -04:00
rusefi 92a13312dc random code inspired by Ola 2020-03-24 19:21:20 -04:00
rusefi 74b191d6d0 random code from Ola 2020-03-24 19:14:16 -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 3232aeb80c progress 2020-03-23 23:51:51 -04:00
rusefi 44b2cd1254 date 2020-03-23 23:28:17 -04:00
rusefi 42834ba5ec launch control #203
somewhat questionable code
2020-03-23 23:20:54 -04:00
rusefi 9e9c4249e2 progress 2020-03-23 23:16:57 -04:00
rusefi bd4cf816e8 progress 2020-03-23 23:15:44 -04:00
rusefi a5c9457eb9 progress 2020-03-23 23:06:52 -04:00
rusefi ff663692c0 code style 2020-03-23 22:31:24 -04:00
rusefi d770290d0e launch control #203 2020-03-23 22:30:47 -04:00
rusefi 205fdcee66 launch control #203 2020-03-23 20:44:34 -04:00
rusefi e58f00692e start/stop progress 2020-03-23 10:32:41 -04:00
rusefi 4d617aa0fe random header clean-up 2020-03-23 09:00:57 -04:00
rusefi 7c991fedce moving a bit of crazy aside 2020-03-23 00:01:59 -04:00
rusefi ce1a11ead5 code style 2020-03-23 00:00:11 -04:00
rusefi d3071ea348 start/stop progress debug mode 2020-03-22 20:43:27 -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
rusefi fb115578dc start/stop 2020-03-20 20:45:35 -04:00
rusefi a6c3b220d6 At least read all TPS inputs 2020-03-20 19:55:36 -04:00
rusefi b55a892e3a At least read all TPS inputs 2020-03-20 09:53:45 -04:00
rusEfi fbbac83010 v12 progress 2020-03-20 00:36:22 -04:00
Matthew Kennedy fa8036e4b6 fix (#1202)
* fix test

* shrink memory
2020-03-19 20:02:49 -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 9f5eece62d split out can tx logic (#1197)
* move to can folder

* split out can rx

* only print in debug mode

* guard on feature flag

* split out tx

* headers

* headers

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-19 14:01:07 -04:00
rusefi 37bdc68ff5 "rusefi CAN" config #1198 2020-03-19 09:22:16 -04:00
Matthew Kennedy f2994d6889 split out can rx logic (#1196)
* move to can folder

* split out can rx

* only print in debug mode

* guard on feature flag

* headers

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-19 08:43:37 -04:00
Matthew Kennedy 3ecedc8ccc move to can folder (#1195)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-18 23:20:00 -04:00
Matthew Kennedy 1b4d98a7f0 Add new CanTxMessage class, consume in OBD2 (#1186)
* relocate

* include path

* simulator makefile

* fix mre while we're at it

* it would help if I fixed it right

* add can_msg

* convert obd2

* guard properly

* better include order

* docs & headers

* inject CAN device

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-18 22:07:41 -04:00
Matthew Kennedy f43042d61b const (#1193) 2020-03-18 21:55:46 -04:00
rusefi 17b498a0f3 progress towards start/stop 2020-03-18 19:41:12 -04:00
rusEfi b9d6f33b82 v12 2020-03-18 17:46:46 -04:00
rusefi d9690bed3a progress towards start/stop 2020-03-18 16:32:03 -04:00
rusefi b442d16d87 progress towards start/stop 2020-03-18 15:56:17 -04:00
rusefi b7324c9a51 proteus-f4 was requested 2020-03-18 11:37:53 -04:00
rusefi d79148b4ea proteus-f4 was requested 2020-03-18 10:19:17 -04:00
rusefi ed947d5ce6 proteus-f4 was requested 2020-03-18 09:32:46 -04:00
rusEfi f2b3fe281e v12 & ETB progress 2020-03-18 00:24:10 -04:00
rusEfi 5a21db41a4 v12 & ETB progress 2020-03-18 00:12:31 -04:00
rusefi 717400e1c4 hiding SPI from MRE users 2020-03-17 15:50:42 -04:00
rusefi f44cda67bc docs 2020-03-17 13:40:14 -04:00
rusefi 782724fdd9 Merge remote-tracking branch 'origin/master' 2020-03-17 10:21:01 -04:00
rusefi ecfc8c250e cj125 usability 2020-03-17 10:20:29 -04:00
rusEfi e18fb9419d RemindMe! add 16 cylinder firing order on April 1st 2020-03-16 17:13:27 -04:00
rusEfi 0e3f8b1b5c docs 2020-03-16 16:39:42 -04:00
Matthew Kennedy 78c1a614cd Multispark configuration (#1190)
* multispark

* scaling, units

* hide in "broken stuff" menu for now

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-14 09:13:38 -04:00
Matthew Kennedy 1f57bdc556 bootloader ci (#1189)
* bootloader ci

* trailing slash

* Revert "progress?"

This reverts commit e5c3da2ab1.

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-13 22:12:52 -04:00
rusefi e5c3da2ab1 progress? 2020-03-13 21:23:58 -04:00