Matthew Kennedy
650d148008
Usable fuel consumption data/gauges ( #2474 )
...
* fuel consumption
* gauge names
* consumers
* obd
* binary logging
* doesn't need explicit constructor
* getters
* it works
* correct for injections per cycle
* datalog
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-19 17:04:42 -04:00
Matthew Kennedy
d7698f6703
Dedicated code path for USB console/TS ( #2465 )
...
* new apis
* dedicated USB path
* move decl
* init
* don't init usb twice
* guard
* check that we're initialized before using TS
* comment
* guard
* guard USB
* brain doesn't go good
* make tests happy
* dead define
* cypress
* ifdef != if
* s
* include priority
* don't start a thread we know we don't need
* bad-ish merge
* const
* why did this code exist...?
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-18 14:07:22 -04:00
Matthew Kennedy
248e9636db
extract CAN TS channel ( #2469 )
...
* extract CAN channel
* this is gross
2021-03-17 08:39:13 -04:00
Matthew Kennedy
a931928a61
type signature, guards
2021-03-15 17:11:11 -04:00
rusefillc
cf4068f54a
fix error/warning buffer overflow #2456
2021-03-14 09:52:27 -04:00
Matthew Kennedy
b56a31143e
fix error/warning buffer overflow ( #2456 )
...
* fix error printing overflow
* make the worst offender shorter
* error as warning
* these don't need that flag set
2021-03-14 09:31:11 -04:00
Matthew Kennedy
990c3649ae
logging cleanup before refactor ( #2438 )
...
* minor cleanup
* more cleaning
* signature
* spelling
* doy
2021-03-09 08:43:29 -05:00
Matthew Kennedy
b1873b3d8b
set all thread priorities in the same place ( #2412 )
...
* unify thread priority
* header
* mmc
2021-02-28 07:30:45 -05:00
Matthew Kennedy
9226f483a8
yet more TS sanity ( #2382 )
...
* ts cleanup part 1
* move more stuff in to the class
* extract base class
* switch to TsChannelBase where we can
* dfu
* more to TsChannelBase
* bad merge
* another bad merge
* bootloader
* bluetooth
* format
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-20 02:11:39 -05:00
Matthew Kennedy
a50d1d5ee3
start making tunerstudio more sane: part 2 ( #2381 )
...
* ts cleanup part 1
* move more stuff in to the class
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-19 20:48:21 -05:00
Matthew Kennedy
bc85adc74e
start making tunerstudio more sane: part 1 ( #2378 )
...
* ts cleanup part 1
* unused unused
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-19 07:40:59 -05:00
Matthew Kennedy
187c4d00f7
USB mass storage tweaking ( #2352 )
...
* disable TS in case of USB MSD
* housekeeping while we're here
* enable on MRE
* changelog
2021-02-14 15:03:07 -05:00
rusefi
6793b5d8fc
M62T vanos support #2243
2021-02-08 20:38:38 -05:00
rusefillc
156ae07bac
limp mode too good for bench testing #2244
2021-01-27 00:02:37 -05:00
Andrey G
777979c3ca
Chibi os 20 ( #2212 )
...
* Update ChibiOS
* Fix Makefiles includes paths
* halconf.h: remove flash hack
* mcuconf: fix EXTI ptiorityes
* Digital Input: ICU: use designated initializers, initialize 'arr'
* ChibiOS: lis302dl fix
* ADC: update to new API
* UARTConfig: timeout_cb field, formating
* ChibiOS: remove _exit, _kill, _getpid
* Fix lis302dl
* Bump config versions
* chconfig_common: cosmetic changes
* stm32f4ems: commulative config update
* Update Simulator
* ALLCSRC already contain all needed ChibiOS files.
Same for ALLINC and ALLCPPSRC
* ChibiOS fix for Simulator
* ChibiOS: port lock/unlock hook and MMC over SPI timeout
* STM32F7: update configs
* STM32F7: update linker file
* Cypress: port ADC lld to ChibiOS-20
* Cypress: port SPI lld to ChibiOS-20
* Cypress: port CAN lld to ChibiOS-20
* Cypress: fix include path for rules.ld
* Cypress: update chconf.h and halconf.h for ChibiOS-20
* Kinetis: update ADC lld to ChibiOS-20
* Kinetis: update SPI lld to ChibiOS-20
* Kinetis: update UART lld driver for ChibiOS-20
* Kinetis: update chconf.h and halconf.h for ChibiOS-20
* Kinetis: fix include path for rules.ld
* Nucleo F746: update ld script
* Nucleo F746: fix compile
* Bootloader: fix compilation with ChibiOS-20, cleanup
* Bootloader: add way to pass crosscompiler using CROSS_COMPILE
* Debug build arguments
* Simulator: fix windows compilation
Exclude syscalls_cpp.cpp from compilation
2021-01-19 15:20:35 -05:00
rusefillc
1cbb0c5680
Revert "Revert "rpm rate of change ( #2159 )""
...
This reverts commit 538b3ac6
2021-01-09 20:06:19 -05:00
rusefillc
538b3ac649
Revert "rpm rate of change ( #2159 )"
...
This reverts commit f73b7123
#2207 yes, this makes no sense but just to confirm
2021-01-09 19:45:07 -05:00
Matthew Kennedy
edee10ee1c
Flex fuel stubs ( #2187 )
...
* config & ui
* stub sensor
* stub init
* output channel, gauge, SD log
* linky linky
* fix
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-01-05 07:57:26 -05:00
Matthew Kennedy
f73b7123bb
rpm rate of change ( #2159 )
...
* compute rpm rate of change
* fix units on gauge
* oops
* correct order
* scaling and limits
* correct for engine cycle length
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-01-03 09:55:44 -05:00
Matthew Kennedy
342414a5f7
show when idle is closed loop ( #2160 )
...
* show when idle is closed loop
* semicolon
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-30 08:42:40 -05:00
Matthew Kennedy
fadfc8d09b
config for second lambda ( #2047 )
...
* config
* size
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-09 14:30:51 -05:00
Matthew Kennedy
99b9391ae8
start peeling out ts commands ( #2045 )
...
* start peeling out commands
* guard
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-09 02:23:02 -05:00
rusefillc
ea8e09ba13
fix warnings found by clang #2014
2020-12-08 13:59:40 -05:00
Matthew Kennedy
cc59a42e3f
start making TS protocol testable ( #2043 )
...
* start pulling out a class
* pull function out of loop
* there we go
* ok there we go for real
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-08 03:05:43 -05:00
rusefi
2a1b585bfe
Revert "Revert "Split ETB in to interface + implementation headers ( #2040 )""
...
This reverts commit 4f4bb957
2020-12-07 01:27:27 -05:00
rusefi
4f4bb95770
Revert "Split ETB in to interface + implementation headers ( #2040 )"
...
This reverts commit d9a82c09
2020-12-07 01:11:19 -05:00
Matthew Kennedy
d9a82c09af
Split ETB in to interface + implementation headers ( #2040 )
...
* split etb interface
* mocks
* fix master while we're at it
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-07 00:29:09 -05:00
Matthew Kennedy
27fee86923
add indicator for tps2 fail ( #2016 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-05 00:01:24 -05:00
rusefillc
e5ef8de2ae
unit tests in clang #2012
2020-12-04 23:59:21 -05:00
rusefillc
52a1ff0817
time to bump TS_OUTPUT_SIZE!
2020-12-02 14:10:02 -05:00
shadowm60
ecc9c0dc6b
introduce vehicle acceleration in TS ( #1997 )
...
* introduce vehicle acceleration in TS
* Update rusefi.input
added gauge as well
2020-12-02 11:12:19 -05:00
rusefillc
44a0bade05
occasional tunerstudio CRC errors #1943
...
third time a charm?
2020-11-17 23:47:35 -05:00
rusefillc
3917324f21
sporadic crc error #1943
...
un-removing, one step forward
2020-11-17 15:24:00 -05:00
rusefi
7cba09b3fa
occasional tunerstudio CRC errors #1943
...
second step back
2020-11-15 22:41:04 -05:00
rusefillc
c561fae005
occasional tunerstudio CRC errors #1943
...
one step back
2020-11-15 21:41:38 -05:00
Matthew Kennedy
5b0a178605
Fix crc again, for real this time ( #1948 )
...
* re enable
* changelog
* fix
* fix test
* put some tests back
2020-11-15 16:59:02 -05:00
rusefillc
43c5c7ff83
occasional tunerstudio CRC errors #1943
...
unit test progress
2020-11-15 12:36:07 -05:00
rusefillc
a42077bef8
occasional tunerstudio CRC errors #1943
...
now with a bit of a unit test
2020-11-15 12:27:47 -05:00
rusefillc
286fa10b15
occasional tunerstudio CRC errors #1943
...
getting ready for unit test
2020-11-15 11:55:26 -05:00
rusefillc
842372e69a
Re-applying part of "fix CRC errors #1944"
2020-11-15 10:28:23 -05:00
rusefillc
0a4b409810
fix CRC errors #1944
...
partial rollback in order to isolate the defect
2020-11-15 10:02:40 -05:00
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
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
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
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
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
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
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
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
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
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
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
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
4280e3327f
Stack usage is still all over the place #1662
2020-08-02 10:52:52 -04:00
rusefi
e0e39bc4f1
let's enlarge... outputs area
2020-07-31 20:08:26 -04:00
rusefi
a4155bc554
analog temperature inputs validation for quality control
2020-07-27 22:49:59 -04: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
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
677d5888ed
EFI_IDLE_INCREMENTAL_PID_CIC should be a runtime parameter #806
2020-07-12 18:11:10 -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
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