Commit Graph

319 Commits

Author SHA1 Message Date
rusefillc 4d7b055f86 need Proteus QC 2022-09-30 11:47:04 -04:00
Matthew Kennedy d413b28a77
GDI: add min/max boost time config (#4343)
* add min/max boost time config

* add cast

* generated

* UI
2022-07-16 02:23:05 -04:00
Matthew Kennedy a95bc3ad03
implement CAN driver for simulator (#4312)
* stub simulator CAN driver

* comments

* CAN sensor

* maybe implement?

* s

* fix

* tx and rx actually work!?!?!

* check_can_isr

* modify chibios

* Sim has no CAN on Windows (for now?)

* safer init/deinit, enable assertions

* smarter handling of missing CAN device

* better guards

* guards for windows
2022-07-03 08:25:24 -04:00
rusefillc b9c1d72659 proteus_f4_hardware_QC_special_build 2022-05-04 06:16:44 -04:00
Andrey e62877964a Move curves out of engineConfiguration in order to reduce RAM usage #4127 2022-05-01 23:43:43 -04:00
Matthew Kennedy e4a0979dc2
Brain pin is enum class (#4108)
* change most usages to Gpio::

* board configs

* engine configs etc

* isBrainPinValid, smart gpio

* generator

* generator

* generator

* connector yamls

* kinetis enums

* cypress txt

* kinetis config

* frankenso

* config generator

* actually do it for the others

* disable skips for pr ci

* fix tle8888

* misc

* weird cast from int

* needs this operator too

* this can be an unsigned subtract

* happy tests

* s

* kinetis isConfigurationChanged weirdness

* missed J/K

* cypress efifeatures

* build script mistake (!)

* mistake in smart gpio

* debounce

* eg33

* kinetis, so needy

* it's pretty green, we can skip these again
2022-04-28 17:32:39 -04:00
rusefillc 6ba13e5e09 Mark reports that detectHellenBoardType hangs up HD and Nucleo #4084 2022-04-19 15:26:32 -04:00
Andrey cc9a1136c4 Trigger setup in TS is highly confusing: hide operation mode from users? #4031 2022-04-03 02:21:37 -04:00
Andrey 95d36b37e3 Trigger setup in TS is highly confusing: hide operation mode from users? #4031 2022-04-03 00:34:18 -04:00
rusefillc 2bc1215f86 Trigger setup in TS is highly confusing: hide operation mode from users? #4031 2022-04-02 22:55:44 -04:00
rusefillc 2ab8a3df4e Feature request: odometer for engine break #3857 2022-02-25 00:46:45 -05:00
rusefillc f086fb8e14 L9779WD driver L9779 #3768
most important detail
2022-02-09 15:22:27 -05:00
rusefillc a811751ad4 L9779WD driver L9779 #3768 2022-02-09 08:00:33 -05:00
rusefi ad57fd1628 I2C EEPROM support fix #3860
bare bones support works
2022-02-06 19:39:21 -05:00
rusefi c50bf8666b helping build 2022-02-06 18:13:35 -05:00
rusefi 7ce5f8655a I2C EEPROM support #3860 2022-02-06 17:23:42 -05:00
rusefi d45b8361c2 I2C EEPROM support #3860 2022-02-06 13:59:08 -05:00
rusefi 7e96c3ee05 L9779WD driver L9779 #3768 2022-02-06 13:56:50 -05:00
Matthew Kennedy 40d16291b0
Remove fsio part 2 (#3876)
* dead config stuff

* fsio state

* remove tests

* getEngineValue

* put part back
2022-02-02 00:49:44 -05:00
Matthew Kennedy a718f3a30a
Remove fsio part 1 (#3871)
* dead includes

* move last logic out of fsio

* dead functions
2022-02-01 15:42:04 -05:00
rusefi fd13b9d9de moving away from debugMode 2022-01-21 15:21:05 -05:00
rusefillc 2055c1a1be hard code canned tune for harley #3789 2022-01-14 16:38:05 -05:00
Andreika 1b9037314a
Hellen mcu module detector (experimental) (#3756)
* Hellen mcu module detector (experimental)

* make unit-tests happy

* make unit-tests even more happy

* move Hellen-specific stuff to hellen_common.cpp

* fix other hellen config builds

* helping non-Hellen builds too

* helping alpha2ch build

* helping build

* cleanup

* help unit-tests

Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2022-01-09 17:40:08 -05:00
rusefillc bd69941ec4 GDI Epic #1448 2022-01-09 01:29:39 -05:00
rusefi ec281d4e35 some dead stuff & minor progress 2022-01-08 20:35:12 -05:00
rusefillc 212687dd10 extracting common hellen to it's own file 2022-01-08 20:16:01 -05:00
rusefillc 5d5648f38d GDI better defaults? 2022-01-03 22:05:19 -05:00
rusefillc b57b9a79cc moving curves to defaults 2022-01-03 18:49:06 -05:00
rusefillc e9498f64db GDI/HPFP: Set HPFP current/timing params on MC33816 #3736 follow-up 2022-01-03 02:13:47 -05:00
rusefillc b90638be44 reviving Passat 2021-12-29 21:18:15 -05:00
rusefillc 47cde8801c 2 byte table axis #3045 2021-12-20 02:07:03 -05:00
rusefillc 06ccf524dd MAP phase sensing #3544
removing dead implementation
2021-12-16 21:13:55 -05:00
rusefillc e915754943 MAP phase sensing #3544
defaults
2021-12-05 18:19:15 -05:00
rusefillc 4b8c5f1671 harley 2021-11-26 14:41:35 -05:00
Andrey bb96b284fc Mark made progress 2021-11-25 09:07:28 -05:00
Andrey 2864d41844 harley config 2021-11-24 22:35:56 -05:00
rusefillc 8b07e0c643 typo 2021-11-24 09:12:06 -05:00
rusefi 48d44242ff harley lua 2021-11-22 17:33:28 -05:00
rusefillc a07e0a37b1 harley 2021-11-22 14:29:48 -05:00
rusefi bc0c1a6b4a harley CAN Lua 2021-11-22 13:00:16 -05:00
Scott Smith 823d9a07e0
Programmatically replace ENGINE() and CONFIG() with engine-> etc (#3565)
git grep -l -w ENGINE | xargs sed -i -r "s/ENGINE\(([]a-zA-Z_0-9.[]+)\)/engine->\1/g"

git grep -l -w CONFIG | xargs sed -i -r "s/([^a-zA-Z_])CONFIG\(([]a-zA-Z_0-9.[]+)\)/\1engineConfiguration->\2/g"
2021-11-17 03:54:21 -05:00
Matthew Kennedy 8cdac4cac0
remove engine pointer passing (#3556)
* some

* more

* more

* the last?!
2021-11-16 04:15:29 -05:00
rusefi 377c9e2fda Something something Automatic Compression Release #3442 2021-11-14 16:04:44 -05:00
rusefillc 14c0711011 script settings need names! 2021-11-14 13:18:11 -05:00
rusefi 800bbf38ad Lua progress 2021-11-14 10:02:28 -05:00
rusefillc eb1af46655 Epic: Remove FSIO #2928 2021-11-14 08:37:50 -05:00
rusefillc a85d1bb064 Epic: Remove FSIO #2928 2021-11-14 07:30:26 -05:00
rusefillc a9bcce88d0 script settings need names! 2021-11-13 22:47:46 -05:00
rusefi 5e346e40a3 pid demo progress 2021-11-13 16:41:20 -05:00
rusefi b7dc5a4ac5 pid demo progress 2021-11-13 10:33:13 -05:00
rusefi 844a8418a8 pid demo progress 2021-11-13 10:02:45 -05:00
rusefillc e662544919 lua can 2021-11-13 04:44:17 -05:00
rusefillc 8333234737 Something something Automatic Compression Release #3442 2021-11-13 04:24:53 -05:00
Matthew Kennedy 73b05d2e20
lua pid class (#3411)
* lua pid

* no luaaa stl

* update luaaa

* finality

* luaaa

* luaaa

* = default

* bad merge

* gitmodules

* lua

* proteus demo script

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-13 03:18:16 -05:00
rusefi b3204da186 maybe lua freezes proteus h7 after 7 seconds of run #3539 2021-11-12 13:45:07 -05:00
rusefillc b2c2e7e0c1 maybe lua freezes proteus h7 after 7 seconds of run #3539 2021-11-12 13:11:32 -05:00
rusefi 4e63922317 pid demo progress 2021-11-12 00:20:52 -05:00
rusefi 4f85b655ec lua PID example 2021-11-11 19:16:04 -05:00
rusefi dda2992e4f pid demo progress 2021-11-10 22:27:21 -05:00
rusefi ccb27d487d lua pid 2021-11-08 21:30:38 -05:00
rusefi 8aaecb568e pid demo progress 2021-11-08 17:31:33 -05:00
rusefi 2c5d6cb6c9 MRE_SECONDARY_CAN 2021-10-29 16:33:12 -04:00
Andrey bfe6a5b2a8 Proteus meta - fixing confusion 2021-10-28 22:11:26 -04:00
rusefi 3cdfd9866e Lua CAN fun 2021-10-28 00:20:14 -04:00
rusefi 75d8d334b7 secondary MRE 2021-10-27 19:54:45 -04:00
rusefillc dc52723eba a bit of dead code? 2021-10-24 11:47:20 -04:00
rusefillc 9b249fe1b3 export board-specific macro for stm32 pins based on board yaml #3298 2021-10-03 00:35:09 -04:00
rusefillc 6808c3c52f export board-specific macro for stm32 pins based on board yaml #3298 2021-10-03 00:27:55 -04:00
rusefillc 618d13e673 export board-specific macro for stm32 pins based on board yaml #3298 2021-10-03 00:09:09 -04:00
rusefillc 441549d3e6 export board-specific macro for stm32 pins based on board yaml #3298 2021-10-02 23:56:43 -04:00
rusefi a32f172a03 VrThresholdTest 2021-10-02 15:18:45 -04:00
rusefillc 53ae005d07 https://github.com/rusefi/hellen-NB1-issues/issues/15 2021-09-29 12:22:38 -04:00
rusefi 00c6e52883 https://github.com/rusefi/hellen-NB1-issues/issues/15 2021-09-29 11:52:54 -04:00
rusefi f62c628bef https://github.com/rusefi/hellen-NB1-issues/issues/15 2021-09-29 11:47:16 -04:00
Andrey c5e50c5d97 vr threshold test configuration 2021-09-26 03:01:25 -04:00
Andrey 65f8caa686 vr threshold test configuration 2021-09-26 02:21:21 -04:00
rusefi 6307ffd3a6 merc128: engine config defaults #3236 2021-09-18 22:12:22 -04:00
rusefillc 3e50319eb7 merc128: engine config defaults #3236 2021-09-18 21:27:17 -04:00
rusefillc 26d4646e88 merc128: engine config defaults #3236 2021-09-17 21:23:54 -04:00
Matthew Kennedy 25414ebdad
yet more pch (#3068)
* big pch energy

* put back ramdisk stub

* tests are happy

* h743 nucleo

* kinetis

* I love deleting code!

* make stepper happy

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-08-03 22:05:01 -04:00
Andrey a8afb6eb85 trailing spark outputs #2931 2021-07-21 19:55:14 -04:00
Matthew Kennedy 2ce7777865
don't require EXTERN_ENGINE in every file (#2969)
* move enginePins

* no more extern engine

* uses

* more

* extern config too

* put this where it belongs

* include correct header

* merge
2021-07-16 18:13:33 -04:00
Andrey e1c41ff798 FATAL on NB2 tune jim stim input signal #2965 2021-07-14 16:03:00 -04:00
Andrey 41ec764617 refactoring 2021-07-13 20:10:31 -04:00
Matthew Kennedy 2eb0b2a631
Unified cyl count macro (#2914)
* update test framework

* eh

* hey look it's fewer warnings

* unwind

* fix

* config

* configs

* logic

* even java had some

* console needs help
2021-07-06 20:14:08 -04:00
Andrey 24131cdc0e s/controlPin1/controlPin/ 2021-06-05 16:19:01 -04:00
rusefillc 20fcaafb92 https://github.com/rusefi/hellen72/issues/25 2021-04-10 23:30:36 -04:00
Andrey G 2af32084f4
gpio helper (#2195)
* gpios: isBrainPinValid helper

* LCD HD44780: do not touch pins if DM_NONE or invalid gpio

* Fix isEnabled checks for GPS and Joystick

* LCD HD44780: writePad use this method wider
2021-01-08 20:01:26 -05:00
rusefi 0622917e53 xmas tree 2020-12-26 21:25:19 -05:00
rusefi 75d141f2ad xmas tree 2020-12-26 18:59:30 -05:00
rusefi 81e7da7e2b proteusBoardTest 2020-12-26 13:41:33 -05:00
rusefillc 1ebce57721 proteusBoardTest 2020-12-26 10:41:33 -05:00
rusefi af6ad0757e PROTEUS_QC_TEST_BOARD 2020-12-26 00:57:23 -05:00
rusefi fb98a3dffc GDI Epic #1448 2020-11-22 01:14:34 -05:00
Andrey G 8e11675afd
Tle8888 big update 1 (#1892)
* smart gpio: fix tle8888 direct pin mapping for MRE

* MRE: use TLE8888 pins instead of MCU gpios that drives TLE8888

* TLE8888: cleanup

* TLE8888: do not reset driver private data on WD/undervoltage reset

* TLE8888: diagnostic updates

* TLE8888 driver: BIG driver rework

* TLE8888: check SPI answers for abnormal states

Reply with other than requested register can be a sign of:
-Power-On-Reset, then OpStat0 will be replyed
-WatchDog reset, then FWDStat1 will be replyed
-Invalid communication frame, then Diag0 will be replyed

Keep tracking last accessed register and check with the next reply.

* TLE8888: debug clean-up

* TLE8888: implement spi array write

This reduce CS inactive state time between two consequent accesses
from 8.8 uS to 1.4 uS

* TLE8888: fix PP outputs in OD mode

* TLE8888: cleanup register definitions

* TLE8888: run separate driver thread for each chip instance

Calculating poll interval for few chips become more complex, avoid
this running thread for each device.

* TLE8888: fix cypress and kinetic compilation

Both platforms define its own MAX and cause redifination error if
common.h is included in driver.

* MRE: update mapping.yaml and fix direct pin mapping for TLE8888

* TLE8888: diagnnostic: disable switch off in case of overcurrent

For all output, use current limiting instead

* TLE8888: check for overvoltage on OUT8..OUT13

* TLE8888: add TODO note about how to recover from failure condition

Currently TLE8888 automaticly recovers only from overcurrent and
(may be) overtemperature conditions.
Short to bat cause output disable (bit in OECONFIG is reset) and
needs driver/host intervention.

* TLE8888: save few bytes of RAM

* TLE8888: Lada Kalina is test mule for IDLE stepper on TLE8888

Don't forget to enable PP mode for TLE8888 outputs 21..24:
uncomment line 1087 in tle8888.c

* TLE8888: reorder code, cleanup

* TLE8888: mode all debug/statisctic to per-chip struct

* TLE8888: rework poll interval calculation

* MRE: use TLE8888 pins instead of MCU gpios that drives TLE8888 #2
2020-10-23 12:25:30 -04:00
rusefillc ba906c2cee GDI Epic #1448 2020-10-13 00:35:04 -04:00
rusefi fc5f47a653 QC control mode to crash if RPM = 0 and to mark successful 3 minute test with self-stimulation RPM increase #1871 2020-10-11 19:16:41 -04:00
rusefi 94a6399e56 QC control mode to crash if RPM = 0 and to mark successful 3 minute test with self-stimulation RPM increase #1871 2020-10-11 19:05:56 -04:00
rusefi 67f305f48a microRusEFI used as Body Control Module BCM BCU 2020-09-07 17:59:59 -04:00
rusefi 52cb30f9ea microRusEFI used as Body Control Module BCM BCU 2020-09-06 20:09:26 -04:00