Commit Graph

6740 Commits

Author SHA1 Message Date
dron0gus 225f529b37 tle6240: fix crash in driver wake routine (#1435) 2020-05-15 15:54:41 -04:00
rusefi eab3f8f2b7 nicer handling of main relay in MRE.ini file 2020-05-15 12:05:09 -04:00
rusefi 929b21d5a1 maybe this would just work?!... 2020-05-15 02:31:02 -04:00
rusefi abc79f831b Revert "moving SD card to SPI1 thank you Matt!"
This reverts commit be5ec2c0
2020-05-15 00:30:49 -04:00
rusefi be5ec2c03f moving SD card to SPI1
thank you Matt!
2020-05-15 00:29:18 -04:00
rusefi 03a632f3a7 VVT_INACTIVE 2020-05-14 23:13:32 -04:00
rusefi 021ec09303 :) 2020-05-14 20:53:47 -04:00
dron0gus 624ed955db triggers: add Subaru SVX trigger (3 sensors) (#1433) 2020-05-14 20:40:47 -04:00
rusefi 084175ce64 one step sideways 2020-05-14 19:10:01 -04:00
rusefi c66a55e5e3 now with EFI_CONSOLE_RX_BRAIN_PIN 2020-05-14 17:20:27 -04:00
dron0gus 425d1a2554 smart gpios: remove dead code (#1432) 2020-05-14 16:15:55 -04:00
rusefi 7bb7744ec8 Merge remote-tracking branch 'origin/master' 2020-05-14 08:39:42 -04:00
Matthew Kennedy 7a41df6153 Fix 100% duty injection (#1431)
* skip turn-off for high duty

* mock executor injection

* test

* switch to hard cut

* test no longer relevant
2020-05-14 07:44:32 -04:00
rusefi 6683c96638 maybe EFI_CONSOLE_TX_BRAIN_PIN 2020-05-14 00:02:10 -04:00
rusefi 92227cb4cb SPI3 2020-05-13 23:29:52 -04:00
rusefi c47a0c3125 SD card for MRE 2020-05-13 23:26:28 -04:00
rusefi 632bedcf9c helping build 2020-05-13 19:41:10 -04:00
rusefi 36586c0243 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	firmware/controllers/engine_controller.cpp
2020-05-13 19:31:42 -04:00
rusefi 4adac49050 docs & helping master 2020-05-13 19:27:11 -04:00
rusefi f081c8eef4 new LED logic: constant WARNING if VBATT is below 7v 2020-05-13 01:52:27 -04:00
rusefi 5c91d96ce6 new LED logic: constant WARNING if VBATT is below 7v 2020-05-13 01:17:48 -04:00
rusefi d74f1c0951 lovely, yet another minor confusion 2020-05-13 01:16:05 -04:00
rusefi adafa0a0d8 I think it's OK to crash very visibly if no proper SPI response 2020-05-13 01:07:11 -04:00
rusefi 28d362d904 NB2 MAF 2020-05-12 23:37:30 -04:00
rusefi bdb93db70d https://github.com/rusefi/hw_microRusEfi/issues/157 2020-05-12 23:37:12 -04:00
rusefi d44a8a08c6 joy to all pins 2020-05-12 14:16:31 -04:00
dron0gus 442d7ddfc5 either newline at end of mk file either no backslash on last line (#1425)
This fixes following build issue under linux:
make: *** No rule to make target 'build/obj/.cpp cj125.cpp', needed by 'build/obj/ build/obj/cj125.o'.  Stop.
make: *** Waiting for unfinished jobs....

Introduces in ae44c0fce7
2020-05-12 09:55:43 -04:00
Matthew Kennedy bd38359ceb s (#1424) 2020-05-11 23:23:04 -04:00
NOx-z f0d556c74b Mc33 undervolt (#1423)
* mc33 flash check

* DI sanity checks for setting HV config

* mc33 under voltage check

* mc33 under voltage check

* mc33 clear driver status on startup

Co-authored-by: Christopher W. Anderson <gitstuff@pswitch.com>
2020-05-11 21:11:16 -04:00
rusefi 2ce1d1c016 helping master build 2020-05-11 19:59:35 -04:00
rusefi 9c3bc93471 RED FATAL/CRITICAL LED is a bit dim when it should be OFF
fix https://github.com/rusefi/hw_microRusEfi/issues/157
2020-05-11 18:35:28 -04:00
rusefi a7a6bb0d81 more dead code 2020-05-11 18:24:29 -04:00
rusefi a88b41a8d0 refactoring related to RED FATAL/CRITICAL LED is a bit dim when it should be OFF
#157
2020-05-11 18:22:51 -04:00
rusefi 7d4c86db9f https://www.youtube.com/watch?v=g7tYt_0NTs8 2020-05-11 12:57:19 -04:00
rusefi c71bc30149 https://www.youtube.com/watch?v=g7tYt_0NTs8 2020-05-11 12:45:34 -04:00
kon ae44c0fce7 Aux serial (#1422)
* aux serial updates from last PR

* trying to guess

* wow that's old! also not working maybe?

* hiding diag code which was messing with GP2/GP3 i.e. TLE8888_PIN_22 TLE8888_PIN_23

* date

* Mc33 undervolt (#1421)

* mc33 flash check

* DI sanity checks for setting HV config

* mc33 under voltage check

* mc33 under voltage check

Co-authored-by: Christopher W. Anderson <gitstuff@pswitch.com>

* fixed {}

Co-authored-by: rusefi <rusefillc@gmail.com>
Co-authored-by: NOx-z <50815960+NOx-z@users.noreply.github.com>
Co-authored-by: Christopher W. Anderson <gitstuff@pswitch.com>
Co-authored-by: kon <dev@triggerdevel>
2020-05-11 12:17:42 -04:00
NOx-z ff724bdc74 Mc33 undervolt (#1421)
* mc33 flash check

* DI sanity checks for setting HV config

* mc33 under voltage check

* mc33 under voltage check

Co-authored-by: Christopher W. Anderson <gitstuff@pswitch.com>
2020-05-11 01:52:20 -04:00
rusefi e37f737689 date 2020-05-11 00:59:55 -04:00
rusefi 5714ef009b Merge branch 'tle8888_random' 2020-05-11 00:59:11 -04:00
rusefi 5240384624 hiding diag code which was messing with GP2/GP3 i.e. TLE8888_PIN_22 TLE8888_PIN_23 2020-05-11 00:53:50 -04:00
rusefi e9e79f8309 34-2 3 cam Toyota wheel progress 2020-05-10 18:10:50 -04:00
rusefi 2db29c7824 34-2 3 cam Toyota wheel progress 2020-05-10 18:03:11 -04:00
Matthew Kennedy 8a73c191bc configuration for secondary (redundant) TPS sensors (#1419)
* add new fields

* add tps 2 secondary

* sensible error detection limits

* UI mods

* grey out as appropriate

* defaults

* either it's unused or its not
2020-05-10 16:13:15 -04:00
rusefi 7471af9117 34-2 3 cam Toyota wheel progress 2020-05-10 15:22:50 -04:00
rusefi 7f88c6e78a 34-2 3 cam Toyota wheel progress 2020-05-10 11:54:21 -04:00
rusefi 907df2aa0a 34-2 3 cam Toyota wheel progress 2020-05-10 11:54:04 -04:00
rusefi 6086a8c6f8 Merge remote-tracking branch 'origin/master' 2020-05-10 10:12:50 -04:00
rusefi 6fe2f7c38f mck1117:secondary-tps-config progress 2020-05-10 10:11:51 -04:00
Matthew Kennedy 9792fc01fc updates for proteus v0.3 (#1418)
* updates for v0.3

* board config too

* oops
2020-05-10 09:19:01 -04:00
rusefi 14b63774fb that's embarrassing 2020-05-10 02:36:01 -04:00
rusefi b54a4116b8 34-2 3 cam Toyota wheel progress 2020-05-10 02:12:47 -04:00
rusefi db8d11739d removing some unneeded flexibility 2020-05-10 01:34:43 -04:00
rusefi e4cfc39b68 docs & clean-up 2020-05-10 00:59:32 -04:00
rusefi 2f431d7079 34-2 3 cam Toyota wheel progress 2020-05-10 00:42:33 -04:00
rusefi 18229d27c0 more makes 2020-05-09 23:59:10 -04:00
rusefi 9c01614a46 34-2 3 cam Toyota wheel progress 2020-05-09 23:47:51 -04:00
rusefi 08cfcddeb4 manual date 2020-05-09 22:44:44 -04:00
rusefi 7fdb6ca2be rusEFI online engine crc 2020-05-09 22:43:39 -04:00
rusefi db8f76bba5 trying to guess 2020-05-09 20:45:20 -04:00
rusefi c2a4c4c4ec engine crc for REO 2020-05-09 20:04:58 -04:00
rusefi 1c0a3b6205 rusEFI online engine crc 2020-05-09 18:31:41 -04:00
dron0gus 8e9f283953 board: subaru-ej20g: remove (#1414)
Noone uses this board anymore
2020-05-09 18:22:17 -04:00
rusefi c00a74ee49 Merge remote-tracking branch 'origin/master' 2020-05-09 17:26:03 -04:00
rusefi 64a07c77b8 LED docs 2020-05-09 17:25:46 -04:00
rusefi 7aa195e86e tle8888 restoration 2020-05-09 16:59:54 -04:00
rusefi 137a41282b mre 050 compromise 2020-05-09 09:40:00 -04:00
rusefi d79e404bec date&docs 2020-05-09 09:35:34 -04:00
rusefi bb8762ba76 Merge remote-tracking branch 'origin/master' 2020-05-09 09:34:36 -04:00
Matthew Kennedy 103a1693c8 fix gppwm on-off mode (#1406)
* fix

* put it back

* do it with PWM instead

* comments

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-09 09:25:45 -04:00
rusefi 0c95adad96 34-2 3 cam Toyota wheel 2020-05-09 01:51:04 -04:00
rusefi 94ca216936 nicer error messages 2020-05-09 01:49:17 -04:00
rusefi 452a579e8e 34-2 3 cam Toyota wheel progress 2020-05-09 01:15:55 -04:00
rusefi b7f56732de docs 2020-05-09 00:56:26 -04:00
rusefi 14a2d93a8b this part can go forward 2020-05-09 00:53:04 -04:00
rusefi 19e917012d placing parts of confusion closer together 2020-05-09 00:47:11 -04:00
rusefi 61e852f0ae placing parts of confusion closer together 2020-05-09 00:43:28 -04:00
rusefi caa4a790f9 placing parts of confusion closer together 2020-05-09 00:16:48 -04:00
rusefi bf2d29bff3 Revert "Tle8888 for mre 050 (#1408)"
This reverts commit bd0a84b6
2020-05-08 23:58:34 -04:00
rusefi 74d5799626 refactoring: extracting magic constant 2020-05-08 22:05:44 -04:00
rusefi 9d2cbd682b helping build 2020-05-08 21:39:35 -04:00
rusefi 7da62e7892 command line switch to DFU 2020-05-08 21:11:11 -04:00
dron0gus 35af083a6e idle thread: debug output for bipolar stepper (#1409) 2020-05-08 20:05:05 -04:00
dron0gus bd0a84b62d Tle8888 for mre 050 (#1408)
* tle8888: fix tle8888_chip_init flow

* tle8888: set correct pin modes for mcu gpios in tle8888_chip_init

Direct drive, reset, inj_en and ign_en gpio should be outputs
2020-05-08 19:05:30 -04:00
dron0gus 3fd4d9ffc3 tle8888: on MRE 0.5.0 we can drive ING_EN and INJ_EN from STM (#1407)
Do it!
2020-05-08 17:47:41 -04:00
rusefi edc5dbbc58 default engine make/code 2020-05-08 17:31:03 -04:00
rusefi 7073a629da getting deeper into the rabbit hole 2020-05-07 13:06:39 -04:00
rusefi 8244d77b77 Merge remote-tracking branch 'origin/master' 2020-05-07 10:22:22 -04:00
rusefi 6682ab1216 https://github.com/rusefi/web_backend/issues/1 2020-05-07 10:22:04 -04:00
dron0gus baef1e4a73 Tle8888 stage 1 (#1404)
* TLE8888: implement diagnostic

* TLE8888: add support for PP mode on OUT21..24

* tle8888: use helpers to extract register value from 16bit reply
2020-05-07 09:49:57 -04:00
Matthew Kennedy 424a86be7b short term fuel trim: part 2 (#1405)
* add tooltip

* add other direction to deadband

* add impl

* test partitioning

* makefile

* wrong comment

* fix include
2020-05-07 08:52:32 -04:00
rusefi 46a56f3799 Merge remote-tracking branch 'origin/master' 2020-05-07 00:56:22 -04:00
rusefi c0ce8b1b22 field useful for rusEFI online catalog 2020-05-07 00:55:59 -04:00
Matthew Kennedy 55159cae44 short term fuel trim: part 1 (#1402)
* add cell

* add stft cell tests

* add bit

* minimally generate

* config defaults
2020-05-06 21:00:40 -04:00
dron0gus 7007627b70 [SAFE] Debug cleanups (#1403)
* electronic throttle: inprove debug

* idle thread: show debug info for configured idle driver

* gpio-chips: make private functions static
2020-05-06 20:06:50 -04:00
rusefi 95d1771bc5 steps towards tle8888 2020-05-06 19:20:12 -04:00
rusefi 7e817fb4fd steps towards tle8888 2020-05-06 19:15:52 -04:00
Matthew Kennedy 5c84d95360 proteus -> exti (#1378)
* proteus -> exti

* do frankenso pal the same way

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-06 18:52:15 -04:00
rusefi 2951a161bf it's a mess but helps Proteus F7
F4 Proteus will will handle separately
2020-05-06 18:14:23 -04:00
rusefi 9d05182ae1 magic is around the corner 2020-05-06 14:00:08 -04:00
Matthew Kennedy 6f3736f246 Rewrite boost control in new closed loop framework (#1342)
* rewrite boost

* test

* fix build

* tests

* open loop test

* test closed loop

* fix names

* typo

* tests

* mock boost setOutput

* needs more virtual

* fix boost logic

* switch to TPS based open loop

* fix test

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-06 08:40:42 -04:00
Matthew Kennedy 950ff9cb80 ETB auto-PID: auto set values in TS (#1400)
* switch to thread

* actually use default frequency define

* crank ADC too

* make space in RAM

* remove TS field

* this should work for test

* auto cal

* wire up bench testing

* auto gains too

* s

* fix

* rearrange a bit

* inject

* remove unused bit

* mock repair

* move

* add maintainconstantvalue

* add disable button

* cleaning

* move state inside

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-06 08:39:02 -04:00
Matthew Kennedy c75adfc97f doesn't need to pass callback (#1399)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-06 08:38:15 -04:00
rusefi c5da481914 helping build 2020-05-05 15:47:14 -04:00
Matthew Kennedy a26355fdd1 don't fail on multiple Start calls (#1396)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-05 15:45:07 -04:00
rusefi e904b63ec0 vehicleName TS field 2020-05-05 15:12:12 -04:00
Matthew Kennedy 10903c4659 remove "plain MAP" mode (#1398)
* consumers

* enums, input, config

* java

* default config cleanup
2020-05-05 15:04:55 -04:00
Matthew Kennedy 573d6d2d55 pull out std air charge math (#1397) 2020-05-05 08:01:40 -04:00
rusefi 9b0a65efad progress - firing order logic to be re-evaluated every time we generate 2020-05-04 23:54:28 -04:00
rusefi 7641c4f7d9 haha notes 2020-05-04 23:38:32 -04:00
rusefi 39a7aa1306 docs 2020-05-04 22:31:47 -04:00
rusefi cc1ca11e40 reducing confusion? 2020-05-04 20:52:32 -04:00
rusefi 6268b8d039 reducing confusion? 2020-05-04 19:26:13 -04:00
rusefi d35ecea765 Nick says we need this MAP sensor 2020-05-04 19:08:36 -04:00
rusefi f1b3b0df1c docs 2020-05-04 13:28:00 -04:00
rusefi a91b97f6d4 getting all start-up issues together 2020-05-04 00:21:22 -04:00
rusefi c2e3ad0f94 ugly copy-paste 2020-05-04 00:10:20 -04:00
rusefi 101aabd8a4 docs 2020-05-03 15:54:17 -04:00
rusefi 460badec94 MRE adapter 2020-05-03 15:21:32 -04:00
rusefi d472685c41 docs 2020-05-03 12:40:43 -04:00
rusefi a1b6807e66 unifying Frankenso and MRE defaults 2020-05-03 12:11:47 -04:00
rusefi f7321942e9 class constructors are a great way to have simple initialization sequence 2020-05-03 11:49:06 -04:00
rusefi cfd8889236 class constructors are a great way to have simple initialization sequence 2020-05-03 10:58:52 -04:00
rusefi b34693da97 docs 2020-05-03 10:41:48 -04:00
rusefi 3b4317d622 date 2020-05-03 02:50:43 -04:00
rusefi 94aa7aa9d2 this is all very sad 2020-05-03 02:30:05 -04:00
rusefi da415c7c8d docs 2020-05-03 02:10:27 -04:00
rusefi 965f247e11 steps towards BT 2020-05-03 01:43:39 -04:00
rusefi 9a2f6735b3 better names 2020-05-03 00:30:35 -04:00
rusefi 3e863859fe looks like a better variable name 2020-05-03 00:20:54 -04:00
rusefi 6a8ec58b94 docs 2020-05-03 00:04:22 -04:00
rusefi 3c571bef9f looks like with current implementation we can use the fancy method 2020-05-03 00:01:54 -04:00
rusefi 5d6ec1d68b refactoring: using brain_pin like the rest of the code 2020-05-02 23:47:10 -04:00
rusefi 04363877b4 refactoring: using constructor life-cycle to simplify initialization sequence 2020-05-02 23:15:48 -04:00
rusefi 0261bd09ec docs 2020-05-02 23:02:54 -04:00
rusefi b70dab791b exactly noone is surprised 2020-05-02 22:44:36 -04:00
rusefi 433b4811ca what could possibly go wrong 2020-05-02 22:34:31 -04:00
rusefi b3cfac397b oh what did I do 2020-05-02 22:27:20 -04:00
rusefi 9115e00783 fixing headers 2020-05-02 22:20:41 -04:00
rusefi 812184a572 reducing confusion? 2020-05-02 22:06:11 -04:00
Matthew Kennedy 5ac535c5e5 Support 4 h-bridges (#1392)
* update dc motor api

* add more etbio

* get out of two arrays

* hand generate enough

* forgot engine param

* ram

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-02 17:54:28 -04:00
rusefi 5b3d7da10b we need aux voltage in addition to aux temp 2020-05-02 15:29:28 -04:00
rusefi f9e63c5c45 CJ125 PI commands 2020-05-01 20:22:49 -04:00
rusefi f66a1c21c9 cj125 progress 2020-05-01 19:42:09 -04:00
rusefi b262b5da66 cj125 less verbose when running 2020-05-01 19:27:26 -04:00
rusefi c33d611dd4 bugfix 2020-05-01 19:19:29 -04:00
rusefi 9353ef7d51 better state messages 2020-05-01 18:52:06 -04:00
rusefi 7689cfc2dd Attempting cj125 2020-05-01 17:52:25 -04:00
rusefi a07ac78b4e docs 2020-05-01 17:21:26 -04:00
rusefi 0750df5392 sweet unused method 2020-05-01 12:05:18 -04:00
rusefi 75fc417efa Merge branch 'master' of https://github.com/rusefi/rusefi 2020-04-30 22:32:25 -04:00