Commit Graph

4206 Commits

Author SHA1 Message Date
rusefi 041919d940 multi-channel Tuner Studio tooth logger #1284
reducing magic constants
2020-04-12 19:10:36 -04:00
rusefi 12c79b328d date 2020-04-12 18:11:43 -04:00
Matthew Kennedy e1301f3c47
fix maf (#1287) 2020-04-12 15:52:29 -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 6481b9df0a
filter ETB autotune results (#1281)
* Astrom-Hagglund

* enums

* comments

* dead

* fix

* changed enum

* ts guard

* safety

* etb autotune debug channels

* filter results

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-11 22:28:50 -04:00
rusefi 5dc9cb4ace fresh 2020-04-11 22:16:45 -04:00
Matthew Kennedy b526b43864
etb autotune (#1274)
* Astrom-Hagglund

* enums

* comments

* dead

* fix

* changed enum

* ts guard

* safety

* etb autotune debug channels

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-11 22:15:49 -04:00
rusefi 04a5a39858 documentation 2020-04-11 22:08:04 -04:00
rusefi b51da343d1 making magic constants a bit less fragile 2020-04-11 01:22:31 -04:00
rusefi 4c41220c21 progress 2020-04-10 20:31:58 -04:00
Matthew Kennedy 626e8586a4
fix again (#1280)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-10 19:02:37 -04:00
Matthew Kennedy 84e73e37dd
tps (#1279)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-10 17:49:13 -04:00
rusefi f0a4dffacb PPS FSIO not complete support 2020-04-10 17:46:56 -04:00
rusefi 3f56e751d4 better message? 2020-04-10 17:45:04 -04:00
rusefi 73438adc64 fresh 2020-04-10 17:32:36 -04:00
Matthew Kennedy 001ef27eb8
support ETB disable pin (#1273)
* config & hand gen

* board configs

* add dc motor support

* initialization

* also set duty to zero

* use disable in etb

* fix proteus default

* add TS fields

* I guess we needed 8 bytes

* :D

* comment

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-10 17:27:13 -04:00
rusefi 1bea04a2ed I got distracted as usual :( 2020-04-10 15:49:44 -04:00
rusefi 6a94a58796 progress 2020-04-10 13:32:06 -04:00
rusefi fb06813e12 DBG_TRIGGER_SYNC merged into DBG_TRIGGER_COUNTERS 2020-04-10 13:19:54 -04:00
Matthew Kennedy 9831c8c874
simplify (#1275) 2020-04-10 08:12:16 -04:00
rusEfi 19184033dd cj125 diag 2020-04-09 00:12:27 -04:00
rusefi 89474adb63 cj125 progress 2020-04-08 23:14:21 -04:00
rusefi 742bf3f8ab set_cj125_cs_pin & set_cj125_heater_pin 2020-04-08 22:37:00 -04:00
rusefi 4056cf1022 extracting method 2020-04-08 22:36:18 -04:00
rusefi d2bbc30133 isCJ125Verbose 2020-04-08 22:12:33 -04:00
rusefi 64047911c9 fresh 2020-04-08 21:43:05 -04:00
rusefi 4420218994 TunerStudio: Save settings with self-simulation fix #1272 2020-04-08 18:03:46 -04:00
Matthew Kennedy 8006c0a548
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
dron0gus 00417b1040
idle: add two coil idle valve support (#1271) 2020-04-06 17:55:41 -04:00
rusEfi d550554145 date 2020-04-06 14:58:18 -04:00
rusefi d3745c0f9e smart gpio clean-up 2020-04-06 14:13:29 -04:00
rusefi 607692695e safer version by Dron0Gus 2020-04-06 11:29:09 -04:00
Matthew Kennedy 595df15dfd
fix (#1268) 2020-04-06 09:00:26 -04:00
Matthew Kennedy 345bf61bd5
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 b43da0d0f8 killing nbVvtIndex 2020-04-05 11:43:45 -04:00
Matthew Kennedy 7d5df29fbd
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 3186741ddc
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 c33079eb46
cleanup (#1259) 2020-04-04 15:59:13 -04:00
rusefi b29fdc6f4d fresh ini 2020-04-04 09:07:30 -04:00
Matthew Kennedy 36477d348d
remove ETB controlPinMode (#1260) 2020-04-04 08:41:45 -04:00
Matthew Kennedy bc3f0c6b27
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 9f75c0cea6
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 fcef353b12 could this work? 2020-04-03 16:14:29 -04:00
rusefi 16ada2d85d extracting magic constant 2020-04-03 16:06:21 -04:00
Matthew Kennedy 1fe39e81e0
fix (#1251) 2020-04-03 07:48:12 -04:00
rusefi 0bd2291866 flipped 60/2? 2020-04-03 00:44:54 -04:00
rusefi db82363325 v12 2020-04-03 00:19:04 -04:00
Matthew Kennedy b197c6ff07
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
Matthew Kennedy a193ae3e42 switch (#1250) 2020-04-02 16:26:06 -04:00
shadowm60 ea4cfa9046
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 b015ec5944
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 f958047d14
only correct timing in dynamic mode (#1247)
* only correct in dynamic mode

* redundant check
2020-04-02 08:54:55 -04:00
Matthew Kennedy 22267e5479
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 8151793ec7
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 0edb791cff partial revert 2020-04-02 00:37:02 -04:00
rusefi e9665e1ddc less ETB in case of critical 2020-04-02 00:32:03 -04:00
rusefi eef32ee4fc start/stop works now 2020-04-01 21:22:54 -04:00
rusefi cd3ef56b55 Merge branch 'master' of https://github.com/rusefi/rusefi 2020-04-01 20:26:00 -04:00
rusefi 63246269c7 start/stop works now 2020-04-01 20:25:44 -04:00
Matthew Kennedy 50cd6549a2
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 26f1ff996b progress towards E30 M3 Tach output solution #907 #1203 2020-04-01 19:12:34 -04:00
rusefi 907b80efa9 code style 2020-04-01 19:00:56 -04:00
rusefi 46cd4af9aa date 2020-04-01 00:42:53 -04:00
Matthew Kennedy 15c40ffb5b
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 e5e243f0a7
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 96828ae017 CAN progress 2020-03-31 20:57:52 -04:00
rusefi b7618dbed1 CAN progress 2020-03-31 20:23:40 -04:00
rusefi 4c8ebc4edb CAN progress 2020-03-31 20:08:30 -04:00
rusefi 90e4fc3922 CAN progress 2020-03-31 16:52:52 -04:00
rusefi 81211219f2 CAN progress 2020-03-31 16:49:19 -04:00
rusefi b9eaa3a797 better message 2020-03-31 16:02:13 -04:00
Matthew Kennedy f41f0454bd
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 65e362740b start/stop progress 2020-03-31 01:06:19 -04:00
Matthew Kennedy 483d4a2204
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 057b447d3d Reducinc code duplication thank you Matt 2020-03-30 14:12:57 -04:00
rusEfi 2a2b00f2d9 v12 & dual-TPS 2020-03-30 01:13:02 -04:00
rusefi 6ff928a798 f4-slave 2020-03-29 22:10:13 -04:00
rusefi d52ec6a58f refactoring + MAP broadcast consumption 2020-03-29 21:15:06 -04:00
Matthew Kennedy d541e04a7d
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 8fd9842310
cleanup extern mess (#1237)
* cleanup

* move outside define
2020-03-29 19:06:03 -04:00
rusefi b0d8cae798 start/stop progress 2020-03-29 17:21:17 -04:00
rusefi b3be6f03a2 oooops 2020-03-29 16:56:40 -04:00
rusefi 0bb1f1f55f ETB progress 2020-03-29 10:29:33 -04:00
rusefi 5c2794c2e0 critical error usability improvements 2020-03-28 21:28:32 -04:00
rusefi d1b5a51400 progress 2020-03-28 20:56:58 -04:00
rusefi 6f5468d3ea critical error usability improvements 2020-03-28 20:14:17 -04:00
rusefi 6d848b6bda code style 2020-03-28 19:49:36 -04:00
rusefi 8fc39cbc94 AfterStart Enrichment #1230 2020-03-27 12:13:12 -04:00
rusefi 076954d72e date 2020-03-26 19:25:14 -04:00
rusefi c778a44c8f #203 2020-03-26 19:22:14 -04:00
Matthew Kennedy 9385e9fc8f
un-generate (#1228) 2020-03-26 11:52:19 -04:00
rusefi b21a4bc16e fresh generated 2020-03-26 11:43:14 -04:00
Matthew Kennedy 53679fab54
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 a5d4d06868
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 608cf45d26
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 2349d74f0b
Default to applyPinState (#1219)
* make applyPinState default

* consumers

* format
2020-03-25 18:14:09 -04:00
rusefi 36ec8e565f start/stop progress 2020-03-25 01:41:15 -04:00
rusefi ee7c0895bf start/stop progress 2020-03-25 01:28:37 -04:00
rusefi 7ab0a9cd76 startStopDialog 2020-03-25 00:58:59 -04:00
rusEfi 3e57f8867d Launch debug mode 2020-03-24 23:09:35 -04:00
rusEfi ff6fd10537 dual ETB progress 2020-03-24 20:22:01 -04:00
Matthew Kennedy 2c809e4475
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 9e125ecbdf launch control #203 2020-03-24 19:55:12 -04:00
rusefi 1955af0b6c random code inspired by Ola 2020-03-24 19:50:04 -04:00
rusefi 957b0e19c1 random code inspired by Ola 2020-03-24 19:21:20 -04:00
rusefi 391b0ec368 progress 2020-03-23 23:51:51 -04:00
rusefi c6fb7fb7bb date 2020-03-23 23:28:17 -04:00
rusefi 5dce6e7104 launch control #203
somewhat questionable code
2020-03-23 23:20:54 -04:00
rusefi 26b50159f2 progress 2020-03-23 23:16:57 -04:00
rusefi dc769e7a2a progress 2020-03-23 23:15:44 -04:00
rusefi 0e6aacb3b8 progress 2020-03-23 23:06:52 -04:00
rusefi c0e141026c code style 2020-03-23 22:31:24 -04:00
rusefi 63c3ae1b51 launch control #203 2020-03-23 22:30:47 -04:00
rusefi 43440afade launch control #203 2020-03-23 20:44:34 -04:00
rusefi 31ef10fe1c start/stop progress 2020-03-23 10:32:41 -04:00
rusefi 165160bb40 random header clean-up 2020-03-23 09:00:57 -04:00
rusefi 66ec0fdea6 moving a bit of crazy aside 2020-03-23 00:01:59 -04:00
rusefi 53385c32bb start/stop progress debug mode 2020-03-22 20:43:27 -04:00
Matthew Kennedy 4740f525ee
save some ram (#1211)
* remove dead stuff

* why store those pointers twice?
2020-03-22 19:06:29 -04:00
Matthew Kennedy f587b9f555
Proxy sensor for extra magic (#1210)
* proxy sensor

* header
2020-03-22 17:29:01 -04:00
Matthew Kennedy 701f7fd7aa
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 985269808e
Pedal rx shim (#1207)
* rx pedal over can

* guard

* guard

* don't cast away qualifiers
2020-03-21 22:35:27 -04:00
rusefi 0475348e4c start/stop 2020-03-20 20:45:35 -04:00
rusefi 96c79012f0 At least read all TPS inputs 2020-03-20 19:55:36 -04:00
rusefi ef28f394a9 At least read all TPS inputs 2020-03-20 09:53:45 -04:00
rusEfi 984445d545 v12 progress 2020-03-20 00:36:22 -04:00
Matthew Kennedy d5600995e2
fix (#1202)
* fix test

* shrink memory
2020-03-19 20:02:49 -04:00
Matthew Kennedy e76f567608
Grow CAN TX stack (#1201)
* grow

* check mock first
2020-03-19 19:29:56 -04:00
Matthew Kennedy 7b44f618e7
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 30cdeb0d7f
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 a4b5570223 "rusefi CAN" config #1198 2020-03-19 09:22:16 -04:00
Matthew Kennedy aeee5a1391
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 a96bf18604
move to can folder (#1195)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-18 23:20:00 -04:00
Matthew Kennedy 194bf2e0bf
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
rusefi 0b7a929587 progress towards start/stop 2020-03-18 19:41:12 -04:00
rusefi 1012df4511 progress towards start/stop 2020-03-18 16:32:03 -04:00
rusefi 482967b8db progress towards start/stop 2020-03-18 15:56:17 -04:00
rusEfi d558b1372e v12 & ETB progress 2020-03-18 00:12:31 -04:00
rusefi 5a6d10c21f hiding SPI from MRE users 2020-03-17 15:50:42 -04:00
rusefi 2dfc039eb9 docs 2020-03-17 13:40:14 -04:00
rusefi 2a0977a1f9 Merge remote-tracking branch 'origin/master' 2020-03-17 10:21:01 -04:00
rusefi a371b32073 cj125 usability 2020-03-17 10:20:29 -04:00
rusEfi 49d5c6497f RemindMe! add 16 cylinder firing order on April 1st 2020-03-16 17:13:27 -04:00
rusefi 93e77c9ccf fresh config 2020-03-14 09:18:25 -04:00
rusEfi ecf1e602b0 docs 2020-03-12 00:20:05 -04:00
rusEfi d047340725 v12 2020-03-12 00:16:32 -04:00
rusEfi 620088cdc1 v12 2020-03-11 20:48:09 -04:00
rusefi 70c2f6990f Merge branch 'master' of https://github.com/rusefi/rusefi 2020-03-10 19:12:53 -04:00
rusefi ff7438162b In case of incompatible firmware and console we have a vague error message fix #1180 2020-03-10 19:12:37 -04:00
Matthew Kennedy c19f3e4caa
Control stepper with dual H-bridges (#1121)
* divorce stepper from hw

* oops

* ptr not ref

* hbridge stepper

* typo

* hook up twin h

* hook up hardware

* use config field

* hook up motor repo

* guard tests

* whoops

* ok fix for real

* ok that's the right thing

* do full stepping

Co-authored-by: Matthew Kennedy <matthew@mck-mbp-15.stagpad.local>
Co-authored-by: Matthew Kennedy <matthew@mck-mbp-15.local>
2020-03-10 15:18:29 -04:00
rusEfi ca8a3b1e1f more of the same 2020-03-09 19:29:10 -04:00
rusEfi f62364fe39 stepper in TS should be output not any 2020-03-09 19:15:13 -04:00
rusefi 16930da2d3 hard-coding miata Nb2 VVT Ratio magic 2020-03-09 16:59:19 -04:00
rusefi 7144d8f843 date 2020-03-08 09:17:43 -04:00
rusefi 1892cfe6b7 logicAnalyzerMode was unused, removing for now 2020-03-08 09:14:49 -04:00
Matthew Kennedy 9f26e6d894
fix icu trigger polarity (#1177)
* fix polarity

* fix confusing names
2020-03-08 08:57:21 -04:00
rusEfi bd93d9e204 date 2020-03-07 15:55:08 -05:00
Matthew Kennedy e32be1799d
Simplify flash logic (#1154)
* simplify flash stuff

* put those back for now

* and those

* extra check

* fix

* crc the correct thing

* undo crc changes

* unwind
2020-03-07 10:23:30 -05:00
rusefi a33d479683 CLT stops working when using 2-0 custom trigger wheel #1171 2020-03-06 01:31:04 -05:00
rusefi f93ac0751d better invalid configuration handling 2020-03-05 21:16:45 -05:00
Matthew Kennedy 40b0783205
Split out EtbHardware (#1168)
* start tear out motor

* fix

* nuke reconfig

* guard for test

* test fixing

* format, condense headers

* fix todos

* undo todo

* format
2020-03-03 17:56:50 -05:00
Matthew Kennedy 986b80671b
warnings (#1169) 2020-03-03 08:37:02 -05:00
rusefi 3bf4219ad6 useHbridges 2020-03-02 19:49:47 -05:00
rusefi 2db8157e44 better setting name and help? 2020-03-01 22:32:09 -05:00
rusefi c553877d3d hiding "Analog divider" from MRE 2020-03-01 09:21:39 -05:00
rusEfi 95160967dd throttle2Position progress 2020-02-27 03:21:42 -05:00
rusEfi 1acbac9896 we need tpsinfo especially when data is invalid! 2020-02-27 02:21:01 -05:00
rusEfi 8c38bd5ad1 verboseTLE8888 2020-02-27 02:11:20 -05:00
rusefi 877d140ffc fixing build 2020-02-27 01:51:21 -05:00
rusEfi 89e6a33545 giving C code access to CONFIG 2020-02-27 01:32:26 -05:00
rusEfi 3312dd8112 verboseTLE8888 2020-02-27 01:11:44 -05:00
Matthew Kennedy 397907a06f
Support disabling most/all features (#1162)
* this flag did nothing

* guard features properly
2020-02-26 18:16:35 -05:00
rusEfi c35f4aa2e3 more mc33816 2020-02-25 22:38:08 -05:00
rusEfi 1ce1f43a49 fresh generated 2020-02-25 22:01:13 -05:00
rusefi ce2ec3d544 TEST_33816 2020-02-25 21:35:21 -05:00
Matthew Kennedy 8647abd22b
Add single flag for omitting PnP configs (#1157)
* switch to single enable flag

* engine_configuration.cpp
2020-02-24 19:08:02 -05:00
rusefi 04a4e2bca3 ETB: expand automated testing #115 2020-02-22 23:18:02 -05:00
rusEfi 299dd7e836 better trigger LiveDocs 2020-02-22 15:39:00 -05:00
rusefi 40145ab09c minor progress 2020-02-22 13:04:19 -05:00
Matthew Kennedy 6038dc203b
minor simplify spark (#1150)
* simplify

* rename
2020-02-21 19:35:11 -05:00
rusEfi 84995652df reviving FRANKENSO_QA_ENGINE 2020-02-18 17:53:56 -05:00
rusefi ec5ec558c2 my take on useRunningMathForCranking 2020-02-18 10:47:39 -05:00
rusefi d5faa3b517 making migration seamless on useRunningMathForCranking 2020-02-16 16:13:15 -05:00
rusefi c4e1e1e928 dreams about useFixedMsForCranking 2020-02-15 19:17:42 -05:00
rusefi e9a3b218c4 miata vvt trigger decoding is broken #1145 2020-02-14 13:02:27 -05:00
rusefi ed2b7578a5 Merge remote-tracking branch 'remotes/origin/2019.12.25_release_1.19.12_xmas' 2020-02-14 10:50:50 -05:00
rusefi 75d9417131 miata vvt trigger decoding is broken #1145 2020-02-14 00:37:36 -05:00
rusEfi 8c1536dd0e FATAL error running MRE blinking test #1137
still not the fix?
2020-02-11 17:49:39 -05:00
rusEfi 59eb424ba0 TLE8888 watchdog #917
window watchdog progress
2020-02-10 13:24:09 -05:00
rusefi cb8612a15c code style 2020-02-10 09:29:11 -05:00
rusEfi 51cfc6bcf1 tle8888 start-up clean-up 2020-02-09 20:41:25 -05:00
Matthew Kennedy 98e6e4b0eb Fix master (#1134)
* Revert "something went very wrong."

This reverts commit 53179dfd22.

* Revert "trying to fix build broken by "Sensor reconfiguration while running (#1131)""

This reverts commit 0bf32a7291.

* Revert "partial Revert of "Stricter compile options (#1132)""

This reverts commit a17cc28382.

* temp prometheus fix

* fix bootloader

* fix batch files
2020-02-08 16:34:29 -05:00
rusefi 53179dfd22 something went very wrong.
first we have functional defects
that we do not write test to cover newly intdroduced defects
then attempts to fix defects do not compile
2020-02-08 08:15:46 -05:00
Matthew Kennedy 8c118f2fbe
Stricter compile options (#1132)
* stricter

* don't warn on that one

* this code was dead
2020-02-08 08:05:40 -03:00
Matthew Kennedy a00c1a5be9 Sensor reconfiguration while running (#1131)
* reconfigure sensors

* docs

* doc
2020-02-08 06:22:23 -03:00
Matthew Kennedy 4d1d2672ce
tps header cleanup (#1130)
* tps header cleanup

* dead code
2020-02-07 23:20:14 -03:00
Matthew Kennedy f7282966d2
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
rusefi 0d1f45422e cam/vvt decoder 2020-02-05 01:49:33 -05:00
Matthew Kennedy 52c710bb62
move flash addr in to mpu_util (#1123)
* move flash addr in to mpu_util

* this _may_ work

* don't use offsetof

* proper header + defines
2020-02-05 08:06:38 +05:30
Matthew Kennedy 20465107ed
boost format & cleanup (#1126) 2020-02-05 06:47:31 +05:30
Matthew Kennedy 6ebc49ce8b
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
rusefi 6888b09c53 Three wire idle air valve #1122
ugly but should work to begin with
2020-02-04 01:22:04 -05:00
rusefi c4c28431f2 Three wire idle air valve #1122
ugly but should work to begin with
2020-02-04 01:06:20 -05:00
rusefi c2e02cc235 fixing build 2020-02-02 13:18:41 -05:00
rusefi 0ea8407097 launch dreams 2020-02-02 12:23:55 -05:00
ola d49e253bff Some initial work at Launch/ALS
(cherry picked from commit 07b3a0632f6673ad57db5b2d6b8ad21674cf3509)
2020-02-02 12:17:06 -05:00
960 4b4e683957
Boost pr (#1114)
* boost control

* cleanup

* Delete rusefi_config.txt

* Add files via upload

* Delete rusefi_config.txt

* Add files via upload

* Update rusefi.input

* Update boost_control.cpp
2020-02-02 03:56:21 -05:00
rusefi 6022838656 looking forward 2020-02-01 17:55:58 -05:00
Matthew Kennedy 7682192c2b
Simplify fuel math again (#1117)
* return the scheduled time from scheduleByAngle

* simplify fueling math
2020-02-01 17:29:55 -05:00
Matthew Kennedy c7dce2e38b
Rescale TPS (#1112)
* fake adc ticks

* consumers

* fix test 1

* fix tests
2020-02-01 16:41:07 -05:00
rusefi 7c714e5727 opening the door to boost controller! 2020-01-31 14:29:52 -05:00
rusefi c2f0a30397 opening the door to boost controller! 2020-01-31 14:23:15 -05:00
rusefi f6e7e8871a VVT refactoring & assertions for VVT test 2020-01-31 01:49:10 -05:00
rusefi b6e0bc7ed1 date & VVT test progress 2020-01-31 01:23:01 -05:00
rusefi d48a57d599 refactoring: extracting DEEP_IN_THE_PAST_SECONDS contant 2020-01-31 01:21:56 -05:00
rusefi b6fe6555e0 lovely tiny bug which mostly affects NB2 with an impossible one tooth crank trigger wheel 2020-01-30 01:47:34 -05:00
rusefi cf087218c9 micro refactoring 2020-01-30 01:20:41 -05:00
rusefi 688a85a25d reusing constant 2020-01-28 00:27:30 -05:00
rusefi d9b96fe509 extracting class & codes clean-up 2020-01-28 00:16:33 -05:00
rusefi b637757e57 reducing magic constants 2020-01-27 23:45:46 -05:00
rusefi 282cd8e1ac trigger refactoring 2020-01-26 14:20:55 -05:00
rusefi 6e128a341b code style 2020-01-26 13:58:47 -05:00
rusefi a53d9c587a trigger refactoring 2020-01-26 13:51:35 -05:00
rusefi 241d491625 trigger refactoring 2020-01-26 12:02:54 -05:00
rusefi 67bda5f088 good thing we have CI - fixing build 2020-01-26 09:00:46 -05:00
rusefi 03d2aae681 reducing code duplication 2020-01-26 06:35:51 -05:00
rusefi 51ab9f5b57 reducing code duplication 2020-01-26 06:28:33 -05:00
rusefi 080e7e12db trigger refactoring 2020-01-26 06:12:01 -05:00
rusefi 154b679491 refactoring: de-coupling trigger decoder and engine 2020-01-26 03:48:25 -05:00
rusefi db2ab72d12 refactoring trigger 2020-01-26 03:33:45 -05:00
rusefi af8383ae3a trigger refactoring 2020-01-25 11:22:25 -05:00
rusefi 0f23faba28 trigger refactoring 2020-01-25 02:00:33 -05:00
rusefi 31a92f1e9d clean-up 2020-01-25 01:42:48 -05:00
rusefi aabc50e7a9 refactoring trigger 2020-01-24 13:42:09 -05:00
rusefi 3056154fe6 refactoring trigger 2020-01-23 13:39:50 -05:00
rusefi cc1c4c9dcb refactoring - de-coupling trigger 2020-01-22 13:25:35 -05:00
rusefi 06cdb7cde6 refactoring 2020-01-22 01:22:44 -05:00
rusefi 8a88c90f3b code style: trying to get used to this syntax 2020-01-22 00:45:09 -05:00
rusefi 9d0c5540d8 refactoring 2020-01-22 00:40:26 -05:00
rusefi 0c3f73c2b4 code style 2020-01-21 01:47:58 -05:00
rusefi 83b1ca00a4 code style 2020-01-21 01:40:11 -05:00
Matthew Kennedy 103e51dd85 Inject timestamps for injection too (#1108)
* schedule by nt, not us

* inject timestamp
2020-01-20 00:12:18 -05:00
Matthew Kennedy ba0c48e0ac 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
Matthew Kennedy 09dc2f2390 don't use us for pwm calculation (#1106) 2020-01-19 07:02:49 -05:00
rusefi 7da4196f9c NT not US not MS
thank you Matt
2020-01-19 03:49:35 -05:00
rusefi 2e0a30859c date 2020-01-19 03:49:06 -05:00
rusefi 85a0490796 one step back 2020-01-19 02:58:54 -05:00
rusefi 2ae53d1681 better constraint validation 2020-01-19 00:28:58 -05:00
Matthew Kennedy fa5b5b76fb Separate stepper control logic from hardware (#1101)
* divorce stepper from hw

* oops

* ptr not ref

* ptr not ref

* whitespace

* null check
2020-01-15 02:18:15 -05:00
rusefi 53433c88a7 trigger shape constraint validation 2020-01-14 03:54:46 -05:00
rusefi 27c44f08f4 reducing complexity? 2020-01-13 22:25:51 -05:00
rusefi 4cc206a393 reducing complexity 2020-01-13 22:23:46 -05:00
rusefi bb217b01dd happy new year unification 2020-01-13 21:57:43 -05:00
rusefi 713ccf76bb header style 2020-01-13 02:30:49 -05:00
rusefi 2785b39c0e date 2020-01-13 02:03:42 -05:00
rusefi 0bab01369a refactoring: no need to specify parameter manually 2020-01-12 10:43:02 -05:00
dron0gus 618d6f5a5e Gpio diagnostic (#1100)
* enums: add brain_pin_diag_e enum for pin diagnostic

* gpio core: add pin diagnostic call

* gpio: mc33810: add diagnostic support

* gpio: mc33972: add diagnostic support

* gpio: tle6240: add diagnostic

* pin_repository: output diagnostic data for gpio chips

* enums: kinetis: add brain_pin_diag_e enum for pin diagnostic
2020-01-12 10:20:10 -05:00
rusefi 113fc4be36 refactoring 2020-01-12 05:17:42 -05:00
rusefi f74cf3bfbe refactoring 2020-01-12 05:12:09 -05:00
rusefi 1fe6899781 fresh 2020-01-12 03:45:33 -05:00
Matthew Kennedy ecd240d6f2 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 e4c4e90981 how tf did this ever build...? (#1099) 2020-01-12 03:25:34 -05:00
Matthew Kennedy d3d088676b 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
Matthew Kennedy dd3ded37f4 injector logic simplification (#1095)
* simplify injector scheduling a little

* clearer logic

* comment
2020-01-11 10:26:20 +03:00
rusefi 688107ed77 second channels for ETB related stuff 2020-01-11 01:08:41 -05:00
rusefi 67377abdea better method name 2020-01-10 23:45:01 -05:00
rusefi 03a48455ed fear he who sees dead code: 'overlappingScheduleOffTime' was never assigned so the whole logic around it is dead 2020-01-10 23:39:30 -05:00
rusefi b7807cba39 docs 2020-01-10 23:24:17 -05:00
rusefi b7951e1e70 Merge branch 'master' of https://github.com/rusefi/rusefi
# Conflicts:
#	firmware/controllers/engine_cycle/main_trigger_callback.cpp
2020-01-10 23:19:30 -05:00
rusefi 645f51a038 better method names 2020-01-10 23:17:58 -05:00
rusefi b022f431e2 better method name 2020-01-10 23:09:38 -05:00
Matthew Kennedy 68813cda65 Dedupe (#1094)
* deduplicate

* yeah, the compiler is smart enough
2020-01-11 06:29:42 +03:00
Matthew Kennedy e25a93415f Schedule sparks with scheduleByAngle (#1092)
* injection

* injectors

* add edge timestamp to ShaftPositionListener

* scheduleByAngle require edgeTimestamp

* schedule with nt not us

* fix all schedulers

* schedule spark based on edge timestamp

* aux valves too

* update comments

* schedule dwell with new stamp

* format
2020-01-11 00:01:54 +03:00
rusefi 19df4661ab better method name 2020-01-10 02:02:22 -05:00
Matthew Kennedy a6a1335adb Require tooth reference time for scheduleByAngle (#1091)
* injection

* injectors

* add edge timestamp to ShaftPositionListener

* scheduleByAngle require edgeTimestamp

* schedule with nt not us

* oops, these were missing from this branch
2020-01-09 23:45:13 +03:00
Matthew Kennedy 851c6041b1 Inject timestamps in to hwHandleShaftSignal (#1090)
* injection

* injectors
2020-01-09 21:19:11 +03:00
rusefi b83a5310be happy new year 2020-01-08 00:02:40 -05:00
Matthew Kennedy 95a7a9a8e1 Strongly typed action constructor (#1087)
* strong typing

* maybe we needed that one
2020-01-07 18:10:31 -05:00
Matthew Kennedy 5c85d53e16 Pass action_s instead of callback/param (#1084)
* change action

* consumers

* fix test

* didn't mean to add those

* simplify

* fix simulator

* fix sim for real

* oy

* maybe this time the simulator will actually be fixed, for real

* don't rely on undefined behavior
2020-01-07 00:41:18 -05:00
dron0gus 1b42748e60 Spi fixes (#1083)
* spi: add support for SPI4

* mpu_util: spi: add 8BIT mode definitions for F4, F7 and kineris (?)
2020-01-06 08:44:23 -05:00
rusefi 0075f9492c ETB documentation improvement? 2019-12-30 10:25:52 -05:00
rusefi 07222f68c0 E30 M3 Tach output solution #907 2019-12-30 01:41:23 -05:00
rusEfi 6e881d53b7 improvements around weird engine types 2019-12-28 23:22:16 -05:00
rusefi b83816b9ef laughable gdi progress 2019-12-26 22:30:12 -05:00
rusefi 8998e3abae laughable gdi progress 2019-12-26 21:33:12 -05:00
rusefi 9956ee6c15 maybe improvement to console trigger messages 2019-12-25 15:05:02 -05:00
rusefi cc466ad3ef de-coupling things a bit 2019-12-24 00:26:23 -05:00
rusefi 6f2cc0ef9b wow dead stuff? 2019-12-24 00:14:10 -05:00
rusefi 7cac985b8b oh this was OOOOLLLLLDDD 2019-12-24 00:10:28 -05:00
rusefi cb9fc19f92 that's not a worth a file 2019-12-24 00:03:53 -05:00
rusefi c38b4545eb refactoring 2019-12-23 23:32:43 -05:00
rusefi 3494f6ff9f adding simplicity 2019-12-23 23:25:08 -05:00
rusefi 8ffbe768cd simplicity? 2019-12-23 22:50:04 -05:00
rusefi a81655216b adding simplicity 2019-12-23 22:40:23 -05:00
rusefi 1576a9f731 adding simplicity 2019-12-23 22:30:58 -05:00
rusefi 82f3972417 refactoring 2019-12-23 22:12:55 -05:00
rusefi cf0b12b203 refactoring 2019-12-23 21:58:06 -05:00
rusefi 537a95a9b4 removing legacy perf code 2019-12-23 21:56:16 -05:00
rusefi 0a7ec2cf59 Revert "couple of dead lines"
This reverts commit 831dbde5
2019-12-23 21:55:08 -05:00
rusefi 831dbde538 couple of dead lines 2019-12-23 21:44:38 -05:00