Commit Graph

1087 Commits

Author SHA1 Message Date
Matthew Kennedy 866d645b11
fix large response packets (#1947)
* fix console text mode

* oops I should actually write the crc
2020-11-15 07:14:50 -05:00
Matthew Kennedy 11e77b7780
fix CRC errors (#1944)
* fix crc mismatch

* cleanup

* use size_t, add null check

* bounds check for good measure

* rename to scratchBuffer

* comment
2020-11-14 19:21:29 -05:00
Matthew Kennedy d992bab241
Move all DECLARE_ENGINE_PTR etc to one place (#1937)
* restructure

* guard c++

* idle too

* status_loop.h
2020-11-11 19:06:04 -05:00
rusefillc 2e9da66743 Output pin init/deinit needs a linked list #1803 2020-11-05 18:47:45 -05:00
Matthew Kennedy f9357d209a
fatal error + inhibit read on TS preset (#1922)
* fatal error + inhibit read on preset

* inhibit more stuff when flag is set

* don't need that message

* extract function, improve msg

* changelog entry
2020-11-03 19:03:46 -05:00
rusefi e5ad8eb5c0 Output pin init/deinit needs a linked list #1803 2020-11-03 00:21:39 -05:00
Matthew Kennedy 15d5c872c2
log afr in addition to lambda (#1920)
* log afr

* log it

* weird double commas
2020-10-31 17:52:07 -04:00
Matthew Kennedy 66cc63b18a
log target lambda (#1919) 2020-10-30 17:42:00 -04:00
rusefillc 106c91efac fluid gauges 2020-10-28 00:20:35 -04:00
Matthew Kennedy 09b41bb1bb
Everything in lambda! (#1893)
* lambda

* default configs, fix build

* config, gauge, UI

* more digits

* change menu text

* fix that while I'm here

* doesn't need extra word

* todo note

* tests

* last test

* missed a config

* update java

* store target lambda

* more java

* format

* hopefully enough java for CI to pass
2020-10-26 18:15:17 -04:00
Matthew Kennedy a90792fa44
convert mass -> duration later in the pipeline (#1906)
* cranking duration to mass

* implement

* units

* patch types

* suppress warning

* fix output channels

* add note about how to set it
2020-10-26 07:23:13 -04:00
shadowm60 9ae6f5c85f
Trigger logger (#1902)
* 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

* Switched UART DMA on

* Revert "Switched UART DMA on"

This reverts commit 4a23974c431e0e7fd760595d2161e74e6854897e.

* tooth logger update

Updated the way we send the buffer to TS
Updated the way we log cam signals
removed TDC, inj and ign direct log... this causes some flicker in TS, this way we log inj and ign comapred to a cranck or camshaft trigger.

* Update tooth_logger.cpp

Fix unit_tests

* Update tooth_logger.h

clean-up

* Update tooth_logger.cpp

remove dead code, actually i forgot to uncomment these lines.
rename isTDC to trigger, since it is trigger (cam) for TS.

Co-authored-by: rusefi <rusefi@users.noreply.github.com>
2020-10-25 22:26:20 -04:00
Matthew Kennedy 4e249889a6
implement fuel pressure sensors (#1897)
* add

* remove old

* remove more old

* makefile

* fix init

* patch up other stuff

* actually fix it this time

* raw output channels

* gauges, UI

* scaled channel

* fix field ordering
2020-10-23 07:31:47 -04:00
rusefillc edd7cc34d1 GDI Epic #1448 2020-10-22 23:17:29 -04:00
Matthew Kennedy 7eeb60a8a0
trigger/scheduler perf improvements (#1885)
* avoid 64b on hot path

* no tooth log when fast

* use crit section locker

* final

* only flip pins if not also self stim

* only trace if doing work

* slightly drop lateDelay

* trace if not bailing out
2020-10-16 11:04:27 -04:00
Matthew Kennedy a8057cfc16
write SD header using new Writer class (#1882)
* write header

* hooray, free memory!

* fix test

* is there really this much free space...?

* no, there is not
2020-10-15 16:00:13 -04:00
Matthew Kennedy 2855e04234
start using BufferedWriter (#1878)
* do the part up to actual usage

* borrow some memory for now
2020-10-14 20:06:05 -04:00
Matthew Kennedy 2cb665cc51
Check for sd buffer overrun (#1867)
* use actual header size

* and the buffer can be a little smaller
2020-10-08 21:02:15 -04:00
rusefillc 0726f168cf SD card logs not valid for REO #1864 2020-10-08 20:17:32 -04:00
rusefillc e721acc60c SD card logs not valid for REO #1864 2020-10-08 20:06:07 -04:00
rusefi b87fb3686f SD card logs not valid for REO #1864 2020-10-08 17:58:58 -04:00
rusefi 048c7a6025 SD card logs not valid for REO #1864 2020-10-08 17:50:43 -04:00
rusefillc e2ca642f97 60/2 perf grab #1850 2020-10-04 00:15:40 -04:00
rusefi 1ed7d0579b making error codes available 2020-10-01 00:03:54 -04:00
Matthew Kennedy 6ac9aad358
display base fuel mass in milligrams (#1838)
* switch to mg

* use the correct thing

* gauge scaling

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-09-30 20:19:51 -04:00
Matthew Kennedy 16bfd39bac
Remove dead & useless config (#1834)
* remove dead config

* remove enum
2020-09-29 06:34:39 -04:00
andreika-git 6e5a3fbbe9
Hellen says fix cypress build (#1818)
* fix compilation

* fresh generated files

* more files

Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-09-23 14:06:22 -04:00
Matthew Kennedy 3d6a6398ac
Dedicated sensors for wastegate + idle position (#1805)
* config

* add sensor

* listen to new adc channels

* fix

* add gauges to TS

* add gauge values

* TS UI
2020-09-18 10:04:07 +03:00
Matthew Kennedy 97cb9f45bd
logging simplification: switch bare functions to member functions: try the second (#1794)
* first pass

* first pass

* const means we don't have to check!

* static

* test fixup

* fix sniffer
2020-09-13 11:49:25 +03:00
rusefi 256a4a2637 Revert "logging simplification: switch bare functions to member functions (#1788)"
This reverts commit d941bdc5
2020-09-12 04:36:24 -04:00
Matthew Kennedy d941bdc502
logging simplification: switch bare functions to member functions (#1788)
* first pass

* first pass

* const means we don't have to check!

* static

* test fixup
2020-09-12 03:08:11 +03:00
rusefi a0cd451c5d Hellen says let's fix Prometheus part #3 2020-09-11 08:25:42 -04:00
rusefi ae27051ef5 Hellen says let's fix Prometheus 2020-09-11 07:51:49 -04:00
rusefi f98620e158 Hellen says let's fix Prometheus 2020-09-11 07:19:04 -04:00
rusefi cf90ed125e Hellen says let's fix master 2020-09-11 07:05:32 -04:00
rusefi 98fa9dd6de Merge remote-tracking branch 'origin/Hellen_fork_point' into master
# Conflicts:
#	firmware/console/binary/tunerstudio_io.cpp
#	firmware/console/console_io.cpp
2020-09-11 05:54:21 -04:00
rusefi 4463253a6d Hellen says merge #1772 TS 2020-09-11 05:50:48 -04:00
Matthew Kennedy d2d0ffa1ee
remove tach output pin (#1779)
* remove from cfg

* cfg

* rip out impl

* efi gpio
2020-09-09 16:52:23 -04:00
rusefi 2347324aba Hellen says merge #1772 helping merge 2020-09-09 16:25:50 -04:00
rusefi 5d2e212498 Hellen says merge #1772 helping merge 2020-09-09 15:08:01 -04:00
rusefi 6e64d243da Hellen says merge #1772 helping merge 2020-09-09 14:35:01 -04:00
rusefi 05ef53fbbc Hellen says serial can 2020-09-07 12:19:32 -04:00
rusefi 4e341dfa99 Hellen says serial can 2020-09-07 12:10:39 -04:00
Matthew Kennedy ef0b2f7be0
Selectable VE axis override (#1769)
* add config fields

* config options

* new output channels

* dump out state to ts

* s

* implement override

* enums

* this test is no longer used

* test new behavior

* old

* comments
2020-09-07 10:15:42 -04:00
rusefi b04a4ec04c microRusEFI used as Body Control Module BCM BCU 2020-09-06 23:19:32 -04:00
Matthew Kennedy 6e7d72170f
Move ve logic (#1762)
* move ve

* fix build

* fix rendering

* duh

* cleaning

* correct scaling

* put some back

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-09-06 19:06:32 -04:00
Matthew Kennedy 95798a5246
fix broken master, inject engine ptr to rpmcalculator (#1759)
* fix

* oops
2020-09-05 18:49:42 -04:00
rusefi ca21d5b4c2 refactoring 2020-09-03 19:29:15 -04:00
David Holdeman 9ef0813962
[TCU] TS interface and output channels (#1747)
* add tcu ts outputs

* accidental change?

* rearrange
2020-09-02 13:30:54 -04:00
Matthew Kennedy 5fec6d0c04
move lambda in to sensor model (#1736)
* lambda sens

* fix init

* fix

* a test for good measure

* he's climbin in your windows, snatchin you ram up

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-09-01 16:22:31 -04:00
Matthew Kennedy 988d9b138c
detect which cylinder knocked (#1732)
* s

* science

* set pin mode

* turn stuff off so it fits

* filtering maybe

* filtering actually works

* generate filter parameters internally

* shorter window

* guard behind enable flag

* use checked in filter

* add biquad reset

* tracing

* const

* exec order

* do it from a thread

* smaller buffer, comment

* configure with header

* only for proteus

* oops

* unused

* not needed

* guards

* pin config

* don't need that include

* precook filter steady state

* define sample rate

* multi cylinder knock

* TS

* only sense when running
2020-08-31 21:05:33 -04:00
Matthew Kennedy 1a55085bb6
Software knock detection (#1730)
* s

* science

* set pin mode

* turn stuff off so it fits

* filtering maybe

* filtering actually works

* generate filter parameters internally

* shorter window

* guard behind enable flag

* use checked in filter

* add biquad reset

* tracing

* const

* exec order

* do it from a thread

* smaller buffer, comment

* configure with header

* only for proteus

* oops

* unused

* not needed

* guards

* pin config

* don't need that include

* precook filter steady state

* define sample rate

* config enable switch
2020-08-28 21:13:50 -04:00
rusefi 3910cafbcc Revert "reducing confusion?"
This reverts commit bd30d7d8

this was NOT reducing the confusion
2020-08-28 21:03:01 -04:00
rusefi bd30d7d8ec reducing confusion? 2020-08-28 08:58:51 -04:00
rusefi 7867e83e43 VVT support for VAG trigger #883 2020-08-24 02:01:50 -04:00
Matthew Kennedy 110a6d79d4
more data (#1727)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-08-24 01:26:33 -04:00
Matthew Kennedy 12bc5eb28b
Auto cal dual etb (#1725)
* implement

* add bench mode

* add ts cal mode

* TS impl

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-08-23 23:41:35 -04:00
Matthew Kennedy 4e81b67ca3
harmonize blocking factor (#1709)
* harmonize blocking factor

* static assert
2020-08-21 14:12:28 -04:00
Matthew Kennedy c450ea7fcd
add (#1711) 2020-08-21 08:53:23 -04:00
Matthew Kennedy a73d5718a7
Ts error codes (#1706)
* correct TS errors

* tidy

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-08-21 08:24:31 -04:00
Matthew Kennedy 66b404fc59
improve (#1702) 2020-08-18 22:37:08 -04:00
Matthew Kennedy 1f64754b57 consume 2020-08-10 21:41:03 -07:00
rusefi 20ec569e46 TS SD integration #1653 2020-08-07 17:24:02 -04:00
rusefi 526e02af53 TS SD integration #1653 2020-08-06 22:05:26 -04:00
rusefi ea7fed6a16 TS SD integration #1653 2020-08-06 01:15:41 -04:00
rusefi b63bf2aea8 TS SD integration #1653 2020-08-05 20:43:16 -04:00
Matthew Kennedy 51804a4eb9 no more setFuelMap 2020-08-03 12:14:11 -07:00
rusefi 10b8da525d TS SD integration #1653 2020-08-02 22:31:11 -04:00
rusefi 73f07d6efc TS SD integration #1653 2020-08-02 21:38:32 -04:00
rusefi ede4616614 Stack usage is still all over the place #1662 2020-08-02 11:39:20 -04:00
rusefi 4280e3327f Stack usage is still all over the place #1662 2020-08-02 10:52:52 -04:00
rusefi 4210632cd1 Stack usage is still all over the place #1662 2020-08-01 21:31:23 -04:00
rusefillc e009d60b29
Merge pull request #1632 from mck1117/remove-plain-maf
goodbye, plain maf
2020-08-01 09:16:38 -04:00
rusefi e0e39bc4f1 let's enlarge... outputs area 2020-07-31 20:08:26 -04:00
Matthew Kennedy 978fa20916 Merge remote-tracking branch 'upstream/master' into remove-plain-maf 2020-07-31 14:56:29 -07:00
Matthew Kennedy 132ee12974 cleanup 2020-07-30 21:20:10 -07:00
Matthew Kennedy b4b8781993 log second tps 2020-07-30 11:31:49 -07:00
Matthew Kennedy 5b99fdf3df deprecate 2020-07-28 12:13:55 -07:00
rusefi a4155bc554 analog temperature inputs validation for quality control 2020-07-27 22:49:59 -04:00
Matthew Kennedy 5e7ddc9f24 start refactor 2020-07-22 13:11:07 -07:00
rusefillc fdd63812bc
Merge pull request #1626 from mck1117/ign-load
Use ignition load for ignition
2020-07-22 15:39:34 -04:00
Matthew Kennedy 0e7bb7c550 maf 2020-07-20 23:22:42 -07:00
Matthew Kennedy a42ab4e3e2 ign/fuel load 2020-07-20 23:21:04 -07:00
Matthew Kennedy a3b29f9011 use ign load for ign 2020-07-20 23:11:48 -07:00
rusefillc d85e98d1f7
Merge pull request #1622 from mck1117/encapsulate-wwae
put wall wetting inside InjectionEvent
2020-07-20 14:19:57 -04:00
rusefi 2a45c9cbe8 unit test framework improvements for smoother event execution 2020-07-20 12:45:26 -04:00
rusefi 52d69abf4a logicdata into unit tests 2020-07-20 09:04:29 -04:00
Matthew Kennedy 0f0d18afc8 s 2020-07-20 01:03:13 -07:00
Matthew Kennedy a1d39b8de6 more spots 2020-07-20 00:55:45 -07:00
rusefi b2edd3a4f4 logicdata into unit tests 2020-07-20 00:36:10 -04:00
rusefi 517761320e logicdata into unit tests 2020-07-19 22:41:34 -04:00
rusefi 1a2ee8e7a5 the miracle of makefile 2020-07-19 22:22:28 -04:00
rusefi 677d5888ed EFI_IDLE_INCREMENTAL_PID_CIC should be a runtime parameter #806 2020-07-12 18:11:10 -04:00
Matthew Kennedy 2b8b43ca55
plumb new load channels (#1573)
* wire up new channels

* add deprecation comment

* add gauges

* these tables are indeed used in those modes

* simplify

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-07-05 16:25:19 -04:00
rusefi 42541da76c more on wipeString 2020-07-05 14:09:43 -04:00
rusefi 015293ee43 wipe strings in configuration images 2020-07-05 11:16:07 -04:00
rusefi a462f75050 idle_min through FSIO not working as intended #1553 2020-07-04 21:40:56 -04:00
rusefi c0bb907aa3 idle_min through FSIO not working as intended #1553
FSIO debug outputs progress
2020-07-04 21:32:12 -04:00
rusefi 45b81d5def detailed error message 2020-07-04 17:46:16 -04:00
rusefi bd2f4736fa detailed error message 2020-07-04 17:22:27 -04:00
Matthew Kennedy 00e01abc4d
Add ign & fuel load fields (#1568)
* add to code

* output channels size

* rusefi.input

* java offsets

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-07-04 16:40:31 -04:00
Matthew Kennedy b50a1fccc9
fix maf gauge scaling (#1566)
* div by 10

* define ratio

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-07-03 23:06:00 -04:00
andreika-git 1e8bebd5b3
Gen config refactor 2 (#1560)
* gen_config refactor, part II

* short board defines

* oops

* comment & undef

* define QUOTE

Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-07-02 12:33:31 -04:00
rusefi 508f13bdd0 UART DMA for "primary" connector #1528 2020-06-22 11:32:47 -04:00
rusefi 15e141f995 UART DMA for "primary" connector #1528 2020-06-22 09:46:56 -04:00
rusefi cee465b963 UART DMA for "primary" connector #1528 2020-06-22 01:18:58 -04:00
rusefi cbc3d5045b UART DMA for "primary" connector #1528 2020-06-22 00:46:17 -04:00
rusefi 282b5af92b UART DMA for "primary" connector #1528 2020-06-22 00:25:19 -04:00
rusefi 1be00fa89e UART DMA for "primary" connector #1528 2020-06-21 23:31:41 -04:00
rusefi 63e936a5e8 UART DMA for "primary" connector #1528 2020-06-21 23:12:08 -04:00
rusefi 7d4f3f73f5 UART DMA for "primary" connector #1528 2020-06-21 21:47:51 -04:00
rusefi dfe5bcd658 refactoring connectivity 2020-06-21 21:17:48 -04:00
rusefi 294ee55525 refactoring connectivity 2020-06-21 20:47:46 -04:00
rusefi 57239f6001 refactoring connectivity 2020-06-21 19:48:55 -04:00
rusefi 2a64b6eb1a refactoring connectivity 2020-06-21 16:37:33 -04:00
rusefi e57fbcb24b refactoring 2020-06-21 15:50:21 -04:00
rusefi 048e910957 refactoring 2020-06-21 15:40:59 -04:00
rusefi 42d6aa53e8 ROE progress 2020-06-20 22:33:13 -04:00
rusefi 35e68da3b0 REO progress 2020-06-20 18:36:58 -04:00
rusefi c0d7905e07 indicators are broken - reported by Jokeri 2020-06-18 14:50:00 -04:00
Matthew Kennedy a34201d1d1
fuel math simplifications (#1485)
* simplify

* fix

* tweak

* cleaning

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-06-17 17:15:04 -04:00
rusefi 8165ee016f REO progress - binary logs 2020-06-14 15:43:54 -04:00
rusefi d0d484ac16 MLQ code duplication & docs 2020-06-14 14:46:24 -04:00
rusefi 6478c52c26 MLQ code duplication & docs 2020-06-14 13:38:14 -04:00
rusefi ff1312f75e MLQ code duplication & docs 2020-06-14 13:07:06 -04:00
rusefi fc5dd7d0c3 a few unneeded properties 2020-06-13 22:46:10 -04:00
rusefi f62eafb5d9 warning LED is for warnings only, communications have to reflected by COMMS LED 2020-06-13 13:23:34 -04:00
rusefi 685ebf1f40 making dead code! 2020-06-13 11:54:19 -04:00
rusefi d1a30f362c tuneCrc16 - we use it to match logs to tunes 2020-06-04 20:43:52 -04:00
rusefi 747ec8cf4a tuneCrc16 - we use it to match logs to tunes 2020-06-04 20:07:00 -04:00
Matthew Kennedy 2bdd8128db
refactor (#1481) 2020-06-03 21:12:12 -04:00
Matthew Kennedy 5beca0c48c
fix tpsadc (#1479)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-06-01 13:09:48 -04:00
Matthew Kennedy d24b5d5e93
Integrate stft (#1475)
* code changes

* missed a spot

* update UI

* gauge name

* adjust gauge scaling

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-31 16:59:05 -04:00
rusefi 4405ce80a4 refactornig & new console command 2020-05-31 14:15:18 -04:00
Matthew Kennedy 6c92a3ab3e
fix (#1476) 2020-05-30 21:50:57 -04:00
rusefi bd9a601ce6 extracting protocol constants 2020-05-30 12:23:27 -04:00
rusefi a20a1b5fe4 composite logger for console 2020-05-30 11:31:18 -04:00
Matthew Kennedy 105460dada
Remove old thermistor implementation (#1458)
* remove test clt/iat

* remove warning since this code is nearly dead

* remove old therm impl

* tests & live doc

* not quite right
2020-05-28 17:51:33 -04:00
rusefi 389f0e28a4 more of the same 2020-05-27 23:18:33 -04:00
rusefi 347413e44b console composite logger 2020-05-26 22:30:53 -04:00
rusefi 5d75c36651 composite log for console 2020-05-26 00:07:18 -04:00
rusefi bf2794ca91 docs 2020-05-25 22:38:57 -04:00
rusefi f738aa0b93 reusing constants 2020-05-25 19:30:02 -04:00
rusefi 30c4682b16 TS commands reuse 2020-05-25 18:49:35 -04:00
rusefi 7ab299f8e2 dead code 2020-05-25 18:27:34 -04:00
rusefi c39d135e94 Makefile clean-up 2020-05-25 13:42:55 -04:00
rusefi 6fdbefe844 better location, better command name 2020-05-25 13:12:15 -04:00
rusefi a4329169e9 better file name 2020-05-25 13:02:05 -04:00
rusefi 425af66f5d docs 2020-05-25 12:55:26 -04:00
rusefi 0fb540f6cc refactoring 2020-05-22 16:36:37 -04:00
Matthew Kennedy af53939d84
Binary logging to SD (#1461)
* binary log

* remove old text logging

* change file extension

* just use a bare buffer

* more mem :(

* double ugh

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-21 15:52:58 -04:00
rusefi 9ab7507e67 BUG? handleCrc32Check does not use 'offset' parameter #1429 2020-05-21 00:14:08 -04:00
rusefi 416855c2f1 HW_CHECK_MODE 2020-05-20 22:15:47 -04:00
Matthew Kennedy 9dda1a21bc
Redundant tps (#1427)
* add redundant sensor

* add tests

* add configure, info printing

* tests

* tests

* partial hookup

* fix

* fix

* bad makefile merge

* use second TPS config

* update test

* update test

* sensor names

* set second pin by default

* fix auto cal

* auto cal both sensors

* add reconfigure of secondary sensors

* gobblin' up your ram

* slow down write a little bit

* put split in debug gauge

* s

Co-authored-by: Matthew Kennedy <matthew@mck-mbp-15.local>
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-18 14:32:00 -04:00
Matthew Kennedy a7f3958fd0
dead (#1451) 2020-05-17 17:43:27 -04:00
Matthew Kennedy ee15560f3d
pass in write length (#1447) 2020-05-17 17:27:26 -04:00
Matthew Kennedy 94e63e7c43
binary logging (#1443)
* field support

* tests

* makefiles

* test data too

* missing include dir

* write correct thing

* fix one test

* fix test

* omnomnomnom ram

* format

* use defined names

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-17 15:56:37 -04:00
Matthew Kennedy 445f1c28f4
dead datalog code (#1439)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-16 00:11:52 -04:00
rusefi 257ed04fac new LED logic: constant WARNING if VBATT is below 7v 2020-05-13 01:17:48 -04:00
rusefi fcbba66e89 rusEFI online engine crc 2020-05-09 22:43:39 -04:00
rusefi c59271c669 engine crc for REO 2020-05-09 20:04:58 -04:00
rusefi c0d45f9330 rusEFI online engine crc 2020-05-09 18:31:41 -04:00
rusefi 0efcb8f7c1 reducing confusion? 2020-05-04 20:52:32 -04:00
rusefi 2337a89cf9 docs 2020-05-04 13:28:00 -04:00
rusefi 69a232e12d ugly copy-paste 2020-05-04 00:10:20 -04:00
rusefi c5dca5b958 this is all very sad 2020-05-03 02:30:05 -04:00
rusefi 6882764221 steps towards BT 2020-05-03 01:43:39 -04:00
rusefi 32b724dba7 better names 2020-05-03 00:30:35 -04:00
rusefi 398af3d18b looks like a better variable name 2020-05-03 00:20:54 -04:00
rusefi 2222aaa3f0 looks like with current implementation we can use the fancy method 2020-05-03 00:01:54 -04:00
rusefi b9733c5901 refactoring: using brain_pin like the rest of the code 2020-05-02 23:47:10 -04:00
rusefi 5eddfeebdd fixing headers 2020-05-02 22:20:41 -04:00
Matthew Kennedy 7aa697c256
TS protocol framing for auto tune/calibration features (#1370)
* rearrange

* fix enum

* too much

* format

* enough generate for CI

* comment

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-26 14:06:09 -04:00
Matthew Kennedy a8db44d48a
Remove scheduler debug pins (#1359)
* trigger gen refactoring

* missed one

* remove microsecond timer debug pins

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-24 23:13:05 -04:00
Matthew Kennedy 57900b679c
Revamp indicator panel in TS (#1357)
* fix pedal ind

* maf -> map

* only set pedal error light if error

* adjustments
2020-04-24 00:10:19 -04:00
rusefi c749807b4b progress 2020-04-22 20:20:22 -04:00
rusefi 43ba5e1936 multi-channel Tuner Studio tooth logger #1284
composite TDC mark not working?
2020-04-19 20:46:29 -04:00
Matthew Kennedy e739b49446
Gauges for raw sensors (#1304)
* add to struct

* input

* set channels

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-16 20:32:07 -04:00
Matthew Kennedy 044766ec70
New clt consumers part 1 (#1301)
* idle

* CLT test prep

* idle target

* header

* air interpolate

* ancient comment

* fuel cut

* fuel cut, idle tests

* cleanup
2020-04-15 09:48:17 -04:00
Matthew Kennedy ccee238867
new temperature sensor math in TS (#1297)
* switch

* new sensor printing

* typo

* and printing info

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-15 01:12:07 -04:00
rusefi e32aa5266b multi-channel Tuner Studio tooth logger #1284 2020-04-14 15:17:15 -04:00
rusefi 5f1e4666e2 multi-channel Tuner Studio tooth logger #1284 2020-04-13 20:47:54 -04:00
rusefi c233d9d1b3 really rusEFI LLC 2020-04-10 23:30:44 -04:00
rusefi fb06813e12 DBG_TRIGGER_SYNC merged into DBG_TRIGGER_COUNTERS 2020-04-10 13:19:54 -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
rusefi b62f578fab KLUDGE? we always show VBatt because Proteus board has VBatt input sensor hardcoded 2020-04-04 09:31:56 -04:00
Matthew Kennedy f10f2109ab
always show vbatt (#1262) 2020-04-04 07:42:14 -04:00
rusefi 907b80efa9 code style 2020-04-01 19:00:56 -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
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 6f5468d3ea critical error usability improvements 2020-03-28 20:14:17 -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
rusefi 9e125ecbdf launch control #203 2020-03-24 19:55:12 -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
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 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
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
rusefi 9a170bda58 better message 2020-03-08 09:17:55 -04:00
Matthew Kennedy 9f26e6d894
fix icu trigger polarity (#1177)
* fix polarity

* fix confusing names
2020-03-08 08:57:21 -04:00
rusEfi 8cd3470caf throttle2Position 2020-02-27 03:28:49 -05:00
rusEfi 95160967dd throttle2Position progress 2020-02-27 03:21:42 -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 0b72db0811
split out scaled channel header (#1156)
* split out scaled channel header

* update header
2020-02-24 16:47:10 -05: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
Matthew Kennedy c7dce2e38b
Rescale TPS (#1112)
* fake adc ticks

* consumers

* fix test 1

* fix tests
2020-02-01 16:41:07 -05:00
rusefi f6e7e8871a VVT refactoring & assertions for VVT test 2020-01-31 01:49:10 -05:00
rusefi 0c3f73c2b4 code style 2020-01-21 01:47:58 -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
rusefi bb217b01dd happy new year unification 2020-01-13 21:57:43 -05:00
rusefi b83a5310be happy new year 2020-01-08 00:02:40 -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
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 5ef99a044b version compatibility validation fix 2019-12-25 14:15:44 -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 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 31f4d3ade9 a bit of dead code 2019-12-21 20:35:13 -05:00
rusefi 871f86967f Revert "DRAFT Shrink output channels, again (#1074)"
This reverts commit 562ce6cc
2019-12-21 15:02:49 -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
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
Matthew Kennedy 08a8fa8d1e Remove sensor reporting loc (#1064)
* remove raw rept loc

* remove normal reporting location

* fix up oil pressure

* format
2019-12-16 22:45:46 -05:00
Matthew Kennedy 49105335b2 lcd thread name (#1059) 2019-12-14 09:12:37 -05:00
rusefi 236d952335 progress towards ETB controller mocking 2019-12-13 13:52:34 -05:00
rusefi af4f20551b getting rid of boardConfiguration / binary compatible change 2019-12-11 17:48:55 -05:00
Matthew Kennedy 0e674f7eca ETB Encapsulation & C++ Conventions (#1049)
* encapsulate etb stuff, c++ conventions

* remove DECLARE_ENGINE_PTR/INJECT_ENGINE_REFERENCE

* reduce include dependencies

* Revert "reduce include dependencies"

This reverts commit c529bbbf757cd9070f6e00616f84b1229eeb768e.

* Revert "remove DECLARE_ENGINE_PTR/INJECT_ENGINE_REFERENCE"

This reverts commit ca98b18cd4dae24b993d1263a18daf509dcd54b9.
2019-12-10 19:37:04 -05:00
rusefi 23c0d8646f Making UART/TTL pins configurable 2019-12-07 21:22:09 -05:00
rusefi 813b6aa6ce The Big Refactoring of 2019: folder structure #723 2019-12-04 01:11:10 -05:00
andreika-git 2a39c69f51 iacPidMultTbl + EFI_IDLE_PID_CIC + kinetis_hysteresis (#1043)
* rename EFI_IDLE_INCREMENTAL_PID_CIC -> EFI_IDLE_PID_CIC

* Impl. IacPidMultTable

* Kinetis: Trigger Comparator Hysteresis settings (+adaptive mode)
2019-12-04 00:37:32 -05:00
Matthew Kennedy 2bedb3ad8c Perf trace housekeeping (#1038)
* use default params

* fix that mess

* format
2019-12-02 19:18:00 -05:00
rusEfi e2074388ff dual ETB seems to work! 2019-11-29 19:06:50 -05:00
rusefi 07f71c8dfa steps towards dual ETB 2019-11-28 15:24:30 -05:00
rusefi 067aa0aeee steps towards dual ETB 2019-11-27 22:07:36 -05:00
Matthew Kennedy 1ad5b55dbb s (#1023) 2019-11-21 23:45:16 -05:00
rusefi d3da33517f making F4 and else happier with perf_trace, also maybe missing 'break'? 2019-11-19 20:36:47 -05:00
Matthew Kennedy 93d24dfc0b Merge remote-tracking branch 'origin/master' into perf-tracing 2019-11-19 16:28:58 -08:00
rusefi 7dfdfc6378 docs & code formatting 2019-11-19 18:17:03 -05:00
rusefi 08e3dd835d reducing warnings 2019-11-17 08:44:07 -05:00
rusefi 15a571fb3e this is not great :(
#639
#971
2019-11-11 22:19:35 -05:00
rusefi 79e049a5f8 Strange INJ1 signal behavior (when the frequency of scheduler's timer is less than 1MHz) #996
new advanced debugging: hardware pins
2019-11-10 12:39:47 -05:00
rusefi d2e24cf2e5 evil manual merge of https://github.com/DonaldBecker/rusefi 2019-11-06 20:33:40 -05:00
rusefi ae0456e5fb fine, taking care of more warnings 2019-11-06 19:53:09 -05:00
rusefi cc6381fe96 evil manual merge of https://github.com/DonaldBecker/rusefi 2019-11-05 20:07:55 -05:00
rusefi 801b2eb70e progress towards #961 2019-11-04 22:52:37 -05:00
andreika-git ee5ee1942c Kinetis & TLE8888 compatibility & fixes... (#991)
* TLE8888: More compatibility & postTunerStudioState

* activeConfiguration & EFI_ACTIVE_CONFIGURATION_IN_FLASH fix

* Kinetis: jump_to_bootloader() impl.

* Kinetis: UART baudrate safety check

* Kinetis: OMG!..
2019-10-31 16:06:34 -04:00
Matthew Kennedy 10a6d6eb8b fix wwae (#980) 2019-10-17 00:06:54 -04:00