Commit Graph

6506 Commits

Author SHA1 Message Date
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 42456329b8 progress 2020-03-29 17:08:29 -04:00
rusefi b3be6f03a2 oooops 2020-03-29 16:56:40 -04:00
rusefi 19ff4ff2e6 docs 2020-03-29 10:29:45 -04:00
rusefi 0bb1f1f55f ETB progress 2020-03-29 10:29:33 -04:00
rusefi 70f1ae9271 fsio 2020-03-29 09:03:33 -04:00
rusefi fdc918d2e2 fsio 2020-03-29 08:43:13 -04:00
rusefi 7edf4cae70 progress 2020-03-29 08:23:59 -04:00
Matthew Kennedy 61ee03ee06
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 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 593565b56d no longer relevant 2020-03-28 19:02:46 -04:00
rusefi 8fd52ba50a AfterStart Enrichment #1230 2020-03-27 13:38:42 -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 a145701ffa building the wall 2020-03-26 19:24:39 -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 e227018c85
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 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 a410e00609
vscode config (#1227)
* vscode config

* actually don't hide those

* format
2020-03-26 08:02:37 -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
rusEfi 1fb9e181a0 Dear Fahrenheit, it was fun! Hope to see you back one day. 2020-03-25 19:06:35 -04:00
Matthew Kennedy 85951b8fdc
no fahrenheit (#1224) 2020-03-25 19:04:21 -04:00
Matthew Kennedy 2349d74f0b
Default to applyPinState (#1219)
* make applyPinState default

* consumers

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

This reverts commit ca1d44ae2c.

* update comments
2020-03-25 16:23:04 -04:00
rusefi d3482327f3 allPins consistency thank you AndreiKa 2020-03-25 10:03: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 361e058d89 pretty slow v12 progress 2020-03-24 23:17:54 -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 392c3a1d0c random code from Ola 2020-03-24 19:14:16 -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
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 1fc22fcfae code style 2020-03-23 00:00:11 -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
Matthew Kennedy e605b39ab1
const (#1193) 2020-03-18 21:55:46 -04:00
rusefi 0b7a929587 progress towards start/stop 2020-03-18 19:41:12 -04:00
rusEfi d918147ea1 v12 2020-03-18 17:46:46 -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 09c4def495 proteus-f4 was requested 2020-03-18 11:37:53 -04:00
rusefi 76eedf1e2c proteus-f4 was requested 2020-03-18 10:19:17 -04:00
rusefi 53b43776b8 proteus-f4 was requested 2020-03-18 09:32:46 -04:00
rusEfi 2c7ee709c8 v12 & ETB progress 2020-03-18 00:24:10 -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 2717fbe18f docs 2020-03-16 16:39:42 -04:00
rusefi 93e77c9ccf fresh config 2020-03-14 09:18:25 -04:00
Matthew Kennedy 43f3ab7624
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 a617cb30a5
bootloader ci (#1189)
* bootloader ci

* trailing slash

* Revert "progress?"

This reverts commit 6085bee005.

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-13 22:12:52 -04:00
rusefi 6085bee005 progress? 2020-03-13 21:23:58 -04:00
rusefi 1c16038150 progress 2020-03-13 20:36:07 -04:00
rusefi 97ce0eda46 fixing build? 2020-03-13 20:30:07 -04:00
Matthew Kennedy bb9c851a07
Deduplicate mpu_util headers (#1187)
* this flag did nothing

* header dedupe

* mre fix again

* get all dependencies in mpu_util.h

* guard can/spi

* more dedupe

* pragma once

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-13 18:48:22 -04:00
Matthew Kennedy fc051fd2ca
remove (#1188)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-13 17:19:29 -04:00
Matthew Kennedy 5fc82e21f8
Move can_hw.cpp in to drivers folder (#1184)
* relocate

* include path

* simulator makefile

* fix mre while we're at it

* it would help if I fixed it right
2020-03-13 09:50:43 -04:00
rusefi 84807e8439 docs & wall 2020-03-13 02:27:44 -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 e065da52df wall of text 2020-03-11 03:08:20 -04:00
rusEfi cbf45d1df5 TPS#2 gauge 2020-03-11 02:10:57 -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 2a07d4f2e4 H-bridge 2020-03-10 14:32:20 -04:00
Matthew Kennedy 1cdd1b86a9
hbridge idle ui (#1178) 2020-03-10 14:31:00 -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 9a170bda58 better message 2020-03-08 09:17:55 -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 9f27f95d14
ignore vbus (#1175) 2020-03-07 15:53:38 -05:00
Matthew Kennedy c1319342d5
don't use standard sprintf/snprintf (#1174) 2020-03-07 10:28:18 -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 9316272f90 slow v12 progress 2020-03-07 00:45:45 -05:00
rusefi a33d479683 CLT stops working when using 2-0 custom trigger wheel #1171 2020-03-06 01:31:04 -05:00
rusefi 0a7356cf39 code style 2020-03-06 01:26:33 -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 86c6494ff7 debugFieldF1List great stuff!!! 2020-03-02 21:01:17 -05:00
960 47eeebed05
Update rusefi.input (#1165) 2020-03-02 20:54:47 -05:00
rusefi d09901f5ba proteus 2020-03-02 20:06:52 -05:00
Matthew Kennedy 439b998cd6
proteus prepend (#1166) 2020-03-02 20:02:25 -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 948bb2e70a mapping docs 2020-02-29 23:22:39 -05:00
rusefi f088bcf1f1 MRE PNP 2020-02-29 23:15:04 -05:00
rusefi df993c47f6 PC simulator: TS over HW VSP wants lower blockingFactor fix #794 2020-02-28 18:12:22 -05:00
rusefi 17af8e27f7 todo NB2 2020-02-27 21:28:31 -05:00
rusEfi 8a40c69180 v12 2020-02-27 03:29:03 -05:00
rusEfi 8cd3470caf throttle2Position 2020-02-27 03:28:49 -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
Matthew Kennedy 6c747ebbbe
this flag did nothing (#1161) 2020-02-26 17:30:02 -05:00
Matthew Kennedy ada5d5fee7
insert dsb on flash write (#1160) 2020-02-25 23:52:11 -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 6307a446d3
Omit canned configs from Proteus (#1159)
* omit presets from proteus

* ifdef guard
2020-02-25 19:46:22 -05:00
Matthew Kennedy 836aca5426
default to O2 (#1155) 2020-02-24 21:49:04 -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
Matthew Kennedy 0b72db0811
split out scaled channel header (#1156)
* split out scaled channel header

* update header
2020-02-24 16:47:10 -05:00
rusefi 9c0bcd4be0 v12 2020-02-24 00:20:36 -05:00
rusefi 9decb79a5e migrate slow ADC to software timer so that TIM8 is also available for input capture #630 2020-02-24 00:12:51 -05:00
rusefi 97d68ccbfa MRE technical info 2020-02-24 00:12:26 -05:00
rusefi b4c371f44d v12 2020-02-23 09:16:11 -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 1fd4e01693 better script name 2020-02-22 15:38:21 -05:00
rusefi 40145ab09c minor progress 2020-02-22 13:04:19 -05:00
rusefi 890984214f explicit cross-referencing 2020-02-21 20:08:16 -05:00
rusefi bb25c0a716 poke CI 2020-02-21 19:50:43 -05:00
Matthew Kennedy 6038dc203b
minor simplify spark (#1150)
* simplify

* rename
2020-02-21 19:35:11 -05:00
rusefi 59ff1713c2 "so I guess defaults are fine then, maybe add main relay = PB9" 2020-02-21 19:31:36 -05:00
rusefi 2bace565d2 M73 2020-02-19 22:34:51 -05:00
rusefi a7e5e5280b proteus 2020-02-19 22:34:38 -05:00
rusEfi 84995652df reviving FRANKENSO_QA_ENGINE 2020-02-18 17:53:56 -05:00
rusefi 548ecc8cfb bugfix - new option was flipped in TS 2020-02-18 16:38:57 -05:00
rusefi ec5ec558c2 my take on useRunningMathForCranking 2020-02-18 10:47:39 -05:00
rusefi b84971cc6a code style & pleasing LGTM 2020-02-18 08:16:19 -05:00
rusEfi ca1d44ae2c vbatt MRE happiness 2020-02-16 16:59:33 -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 64c83fa4cd he owes me one now 2020-02-14 23:03:26 -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 fe063d53cd proper 'f' syntax 2020-02-12 23:16:46 -05:00
rusEfi 67c4fe9f63 catching up 2020-02-12 22:56:31 -05:00
rusEfi aed1152c7a MRE divider 2020-02-12 22:15:36 -05:00
rusefi 333a7a6608 TLE8888 watchdog #917 2020-02-12 19:32:40 -05:00
rusefi deb73f505b #917 progress 2020-02-12 17:37:45 -05:00
rusefi efc8d69085 and fixing build now! 2020-02-12 17:23:22 -05:00
rusefi 6c843e6954 tle8888 refactoring already - extracting method 2020-02-12 17:19:58 -05:00
rusEfi abf0f950e7 Merge branch 'master' of https://github.com/rusefi/rusefi 2020-02-12 08:54:41 -05:00
rusEfi 01855b9c85 more commands 2020-02-12 08:53:50 -05:00
dron0gus 3b61334714
tle8888: disable diagnostic for outputs (#1144)
DS is not clear, may be tle8888 clears OE bit in case of error on
output.
2020-02-12 08:53:35 -05:00
rusEfi 74ead04e84 tle8888 dump at init 2020-02-12 08:34:26 -05:00
rusEfi 86b3332cfe have nothing else to do :( 2020-02-12 08:24:24 -05:00
rusEfi 4dbff5ff30 tle8888 output fix 2020-02-12 08:15:55 -05:00
rusefi 5665e43954 tle8888 output fix 2020-02-12 08:04:33 -05:00
rusEfi 2eec13007e FATAL error running MRE blinking test #1137
typo
2020-02-11 17:52:01 -05:00
rusEfi 1e010c8e82 Merge branch 'master' of https://github.com/rusefi/rusefi 2020-02-11 17:49:49 -05:00
rusEfi 8c1536dd0e FATAL error running MRE blinking test #1137
still not the fix?
2020-02-11 17:49:39 -05:00
dron0gus 82e33e45af
Tle8888 wd (#1143)
* tle8888: watchdog: debug over TS: remove tailing register address

* tle8888: ann console command to dump all regs
2020-02-11 17:49:14 -05:00