Commit Graph

6202 Commits

Author SHA1 Message Date
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 1817b8654e SCB_DisableDCache rollback 2020-01-25 21:30:19 -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 fea2394c7b F7 SPI challenges 2020-01-24 23:52:56 -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
rusefi b377e1f2f0 better variable name & docs 2020-01-19 00:16:19 -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 fc987052b5 fresh 2020-01-14 23:21:18 -05:00
Matthew Kennedy 3445b76f01 fix signed ignition timing (#1102) 2020-01-14 22:57:29 -05:00
rusefi 53433c88a7 trigger shape constraint validation 2020-01-14 03:54:46 -05:00
rusefi 73a6b7b813 code style 2020-01-14 03:41:11 -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
dron0gus 85a460f2ba hw: gpio: use unsigned int as pin number inside gpiochip drives (#1097)
Not brain_pin_e. Drivers like to see pin number within current
chip.
2020-01-11 10:29:41 -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
Matthew Kennedy 859ef97607 stepper as thread task (#1089) 2020-01-09 09:03:23 +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 bd029e27da remove concept of TS pages (#1075)
* remove pages

* unify validation

* these need to be unsigned or we can still overrun
2020-01-07 07:56:45 -05:00
dron0gus 9f0d84f338 Gpio fixes (#1086)
* drivers: gpio: add MC33810 driver (skeleton)

* pin_repository: debug: do not show absent chips
2020-01-07 07:55:50 -05:00
dron0gus a2fdc1128e triggers: fix coexistence of ICU and EXTI trigger drivers (#1085) 2020-01-07 03:42:08 -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 feae6f95f2 Merge branch 'master' of https://github.com/rusefi/rusefi 2020-01-03 21:41:51 -05:00
rusefi 30db7e3c26 typo 2020-01-03 21:41:11 -05:00
dron0gus eabde7079a icu trigger: do not crash on incorrect brainPin (#1082)
* icu trigger: do not crash on incorrect brainPin

* Update trigger_input_icu.cpp
2020-01-03 09:13:55 -05:00
dron0gus 4aba7756e2 scripts: add gen_config, gen_config_board and gen_enum_to_string for Linux (#1081) 2020-01-02 18:58:28 -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 2d59d23ce2 docs 2019-12-29 14:58:39 -05:00
rusEfi 4126262aa6 improvements around weird engine types 2019-12-28 23:26:43 -05:00
rusEfi 6e881d53b7 improvements around weird engine types 2019-12-28 23:22:16 -05:00
rusefi 4192de8fcc TL,DR 2019-12-26 23:07:15 -05:00
rusefi a9229d08cb MC33816 default firmware 2019-12-26 23:06:31 -05:00
rusefi 8bc2dba054 would URLs work? 2019-12-26 22:30:18 -05:00
rusefi b83816b9ef laughable gdi progress 2019-12-26 22:30:12 -05:00
rusefi d03135aa13 would URLs work? 2019-12-26 22:29:04 -05:00
rusefi 8998e3abae laughable gdi progress 2019-12-26 21:33:12 -05:00
rusefi 0bd8a7e039 Frankenso does not use ETB 2019-12-25 15:58:54 -05:00
rusefi 3ab209fafc maybe improvent for trigger errors in TS and console, TS still does not know about order error counter 2019-12-25 15:57:47 -05:00
rusefi 6a193576be all pins improvement 2019-12-25 15:39:13 -05:00
rusefi 9956ee6c15 maybe improvement to console trigger messages 2019-12-25 15:05:02 -05:00
rusefi 5ef99a044b version compatibility validation fix 2019-12-25 14:15:44 -05:00
rusefi d575ffe5c1 enabling TIM8 ICU 2019-12-25 09:28:51 -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 a08258ba8e style 2019-12-23 23:05:40 -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
rusefi 84e732846b replacing probably unused engineSnifferHisto with new perf_trace 2019-12-23 20:22:17 -05:00
rusefi 65f5991b9e Merge remote-tracking branch 'origin/master' 2019-12-23 20:19:44 -05:00
rusefi a338f28396 removing one dead line 2019-12-23 20:19:13 -05:00
rusEfi aacb921fc2 TS project repair 2019-12-22 20:15:00 -05:00
Matthew Kennedy 868a2bb8ef Split CAN in to separate threads for rx/tx (#1078)
* rewrite can

* default parameters
2019-12-22 12:17:53 -05:00
rusefi 253f68cb61 date & fresh integration 2019-12-22 08:24:47 -05:00
Matthew Kennedy 9645130527 Shrink output channels, now with passing CI (#1077)
* reorder fields

* temporary tle8888 fix

* comment, simplify

* hand tweak generated

* oops, those are reciprocal

* fix engineLoadAccelExtra

* aggressive priority order

* fix output size

* comments

* reorder fields, no sizes yet

* should've been signed

* simplify constructor mess, hook up scaling

* notes

* typo

* if -> switch

* rev signature

* correct map offset

* handle unsigned properly

* RPM is unsigned

* vss isn't scaled

* extract magic

* required generated for build

* de-scale rpm

* field type cases
2019-12-22 08:12:45 -05:00
rusefi b8733edf11 functional testing should not be that darn slow #1076
progress?
2019-12-22 01:03:58 -05:00
rusefi 73a4a92891 functional testing should not be that darn slow #1076
hopefully progress?
2019-12-21 23:27:54 -05:00
rusefi 609865da0f hopefully useful macro? 2019-12-21 21:18:38 -05:00
rusefi fde9a449cf random refactoring: hopefully not changing byte size of any variables but clarifying/fixing type between ticks, US and MS 2019-12-21 21:11:09 -05:00
rusefi 6ca549ca34 refactoring & fixing build 2019-12-21 20:43:11 -05:00
rusefi 31f4d3ade9 a bit of dead code 2019-12-21 20:35:13 -05:00
rusefi ce0921cb78 refactoring only #1076 2019-12-21 20:17:58 -05:00
rusefi b78e1b7a00 refactoring & docs update 2019-12-21 19:59:33 -05:00
rusefi 745348bf49 kinetis just started to suddenly work? #1061 2019-12-21 19:58:07 -05:00
rusefi 128e002896 docs :( 2019-12-21 19:50:16 -05:00
rusefi 7a08c18ad6 looks like UI options does not work yet :( trying to make command line option a bit more usable 2019-12-21 16:04:03 -05:00
rusefi 871f86967f Revert "DRAFT Shrink output channels, again (#1074)"
This reverts commit 562ce6cc
2019-12-21 15:02:49 -05:00
rusefi 86a3feb13f Revert "fresh integration & changing protocol versions & versions"
This reverts commit f6c3f120
2019-12-21 15:02:37 -05:00
rusefi b9338b4047 Revert "reducing magic constants"
This reverts commit 032d8240
2019-12-21 15:02:17 -05:00
rusefi 8602379a32 Revert "trying to save build. it's a useful PR overall but :("
This reverts commit 9f191f0d
2019-12-21 15:01:22 -05:00
rusefi 9f191f0dd8 trying to save build. it's a useful PR overall but :( 2019-12-21 14:34:50 -05:00
rusefi 032d824064 reducing magic constants 2019-12-21 13:30:47 -05:00
rusefi f6c3f12091 fresh integration & changing protocol versions & versions 2019-12-21 12:35:47 -05:00
Matthew Kennedy 562ce6ccaf DRAFT Shrink output channels, again (#1074)
* reorder fields

* temporary tle8888 fix

* comment, simplify

* hand tweak generated

* oops, those are reciprocal

* fix engineLoadAccelExtra

* aggressive priority order

* fix output size

* comments

* reorder fields, no sizes yet

* should've been signed

* simplify constructor mess, hook up scaling

* notes

* typo

* if -> switch
2019-12-21 08:55:19 -05:00
rusefi 4a21203c05 docs 2019-12-19 22:40:27 -05:00
rusefi 22f2739764 Revert "Shrink output channels, use scaling (#1069)"
This reverts commit 89405014
2019-12-19 22:35:06 -05:00
rusefi d3da010088 Revert "fresh integration"
This reverts commit 9363d081
2019-12-19 22:34:58 -05:00
rusefi 320ff0972f Revert "hmm (#1073)"
This reverts commit f8c98cad
2019-12-19 22:34:52 -05:00
rusefi 88b04e374c Revert "fresh integration"
This reverts commit 5a160912
2019-12-19 22:34:47 -05:00
rusefi 5a160912f5 fresh integration 2019-12-19 22:05:19 -05:00
Matthew Kennedy f8c98cad07 hmm (#1073) 2019-12-19 21:09:59 -05:00
rusefi 9363d081c3 fresh integration 2019-12-19 20:38:48 -05:00
Matthew Kennedy 89405014cf Shrink output channels, use scaling (#1069)
* reorder fields

* temporary tle8888 fix

* comment, simplify

* hand tweak generated

* oops, those are reciprocal

* fix engineLoadAccelExtra

* aggressive priority order
2019-12-19 20:37:42 -05:00
rusefi bf8cdee62c fresh .ini 2019-12-18 19:37:51 -05:00
Matthew Kennedy 59dcc004ac add settings to log debug & errors list (#1071) 2019-12-18 19:35:08 -05:00
Matthew Kennedy 1fe3fee0d3 only log acc if enabled (#1070) 2019-12-18 19:34:08 -05:00
Matthew Kennedy 2f0b25a476 don't log if disabled (#1067) 2019-12-18 14:39:38 -05:00
Matthew Kennedy b9454790c7 Add new sensor function types (#1065)
* add functions

* add tests

* add chain tests

* float suffix
2019-12-17 09:06:29 -05:00