Commit Graph

698 Commits

Author SHA1 Message Date
rusefi 4aaa670bc5 refactornig & new console command 2020-05-31 14:15:18 -04:00
Matthew Kennedy d13bd0b77c Hardware pwm (#1283)
* hard pwm

* fix, comments

* PC6-9 and PD12-15

* PB6-9

* dynamic frequency

* f7 mcuconf

* format

* relocate to common, support variable frequency

* error handling

* oops

* fix test build

* noop kinetis

* better guards

* guard for bl

* guards don't work if they have typos

* more mapping

* oops

* don't use for slow pwm

* enable pwm

* guard properly

* save a little memory

* use less mem

* correct timers

* all your ram are belong to us

* update limit & comment

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-28 16:02:41 -04:00
rusefi 7d8236a6b3 composite log for console 2020-05-26 00:07:18 -04:00
Matthew Kennedy 45e03262d0 Redundant accelerator pedal (#1470)
* add second boudns

* init logic

* test changes

* reconfigure correctly

* rams
2020-05-23 19:48:32 -04:00
rusefi 6453e891e6 "TLE8888 SR Unexpected response" does not work as intended fix #1466 2020-05-22 22:56:19 -04:00
rusefi ef66c84d77 date 2020-05-22 13:30:14 -04:00
Matthew Kennedy 0a278375fd 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
Matthew Kennedy 441fe43dab warnings (#1462)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-21 01:08:07 -04:00
rusefi 60835c4269 HW_CHECK_MODE 2020-05-20 22:15:47 -04:00
Matthew Kennedy ce2beafb5f 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 e6e48ce66c 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
rusefi 11b66a6713 toyota 2jz progress 2020-05-15 16:35:18 -04:00
rusefi 03a632f3a7 VVT_INACTIVE 2020-05-14 23:13:32 -04:00
rusefi 632bedcf9c helping build 2020-05-13 19:41:10 -04:00
rusefi 4adac49050 docs & helping master 2020-05-13 19:27:11 -04:00
rusefi e37f737689 date 2020-05-11 00:59:55 -04:00
rusefi 2db29c7824 34-2 3 cam Toyota wheel progress 2020-05-10 18:03:11 -04:00
rusefi 08cfcddeb4 manual date 2020-05-09 22:44:44 -04:00
rusefi d79e404bec date&docs 2020-05-09 09:35:34 -04:00
rusefi d472685c41 docs 2020-05-03 12:40:43 -04:00
rusefi 3b4317d622 date 2020-05-03 02:50:43 -04:00
rusefi b70dab791b exactly noone is surprised 2020-05-02 22:44:36 -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 7689cfc2dd Attempting cj125 2020-05-01 17:52:25 -04:00
rusefi 0750df5392 sweet unused method 2020-05-01 12:05:18 -04:00
rusefi 65fde14800 Add firing order fix #1385 2020-04-29 16:46:59 -04:00
Matthew Kennedy a9bf0f8358 Perf Trace Improvements (#1383)
* add tid field to thread

* change perf trace format

* trace consumers

* Update java parsing

* guard for test + kinetis

* stubs

* ram

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-29 10:53:35 -04:00
Matthew Kennedy 7e067eb0b5 Move ETB control to a thread (#1374)
* switch to thread

* actually use default frequency define

* crank ADC too

* make space in RAM

* remove TS field

* this should work for test

* fix dt

* re-resize ram
2020-04-28 07:22:31 -04:00
Matthew Kennedy 499d445fd2 reclaim (#1377)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-27 14:36:26 -04:00
rusefi 30759ed8b3 VVT miata trying to crank with random phase #1278 2020-04-26 20:50:49 -04:00
rusefi 025c8c2903 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	firmware/controllers/engine_controller.cpp
2020-04-26 19:44:04 -04:00
rusefi 176a08f0a6 minor clean-up 2020-04-26 18:47:56 -04:00
rusefi 7513c08def method inline 2020-04-26 17:50:03 -04:00
rusefi 0ec3ce595e dead code 2020-04-26 17:40:12 -04:00
rusefi fe03d576e6 minor clean-up 2020-04-26 17:07:39 -04:00
Matthew Kennedy 738e53442d General purpose PWM: implementation & tests (#1366)
* config

* significant digits

* renumber enum, no need for a "none"

* ui

* impl base

* error handle MAP

* init & update

* don't need arg

* don't lie about sensor

* fix test build

* test stub

* initialize

* null check

* fix clamping

* test output

* types & enums

* don't need param

* test getOutput

* fix

* output pin instead of brain pin

* default config
2020-04-26 14:06:28 -04:00
Matthew Kennedy 39c84378eb don't store self stim in config (#1356)
* kill

* add bench test

* fix
2020-04-23 22:38:14 -04:00
rusefi 4e662415ff progress 2020-04-22 20:20:22 -04:00
rusefi ceb8b6d9b4 idle duty cycle clamping 2020-04-20 14:11:40 -04:00
rusefi ebbd8c28f5 still want RAM?! 2020-04-19 23:56:08 -04:00
rusefi f7327e0d71 still the cost of remix 66-2-2-2 2020-04-19 18:58:22 -04:00
rusefi 912e543680 date & trigger ram usage 2020-04-19 18:32:36 -04:00
rusefi 89be50fd70 Renix 44-2-2 2020-04-18 22:20:17 -04:00
rusefi d7198271aa multi-channel Tuner Studio tooth logger #1284 2020-04-17 12:14:45 -04:00
rusefi 3e1006a626 MC progress 2020-04-16 14:08:28 -04:00
rusefi 631e900f31 but what?! 2020-04-14 13:27:07 -04:00
rusefi 0f24a41698 is GH trying to tell us something?!
Linking build/rusefi.elf
/home/runner/work/rusefi/rusefi/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: build/rusefi.elf section `.ram4' will not fit in region `ram4'
/home/runner/work/rusefi/rusefi/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: region `ram4' overflowed by 352 bytes
collect2: error: ld returned 1 exit status
2020-04-14 13:15:04 -04:00
rusefi e35fc80a0b fresh 2020-04-13 09:23:13 -04:00
rusefi 8368e3fa08 date 2020-04-12 18:11:43 -04:00
Matthew Kennedy 1a59950240 support ETB disable pin (#1273)
* config & hand gen

* board configs

* add dc motor support

* initialization

* also set duty to zero

* use disable in etb

* fix proteus default

* add TS fields

* I guess we needed 8 bytes

* :D

* comment

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-10 17:27:13 -04:00
rusefi 35f08f3958 progress 2020-04-10 13:32:06 -04:00
rusEfi 80d5ef0c3f cj125 diag 2020-04-09 00:12:27 -04:00
rusefi 6b171c97fb TunerStudio: Save settings with self-simulation fix #1272 2020-04-08 18:03:46 -04:00
Matthew Kennedy 3abd181f6f 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 11e489f8d7 date 2020-04-06 14:58:18 -04:00
rusefi 5993a6a7f0 killing nbVvtIndex 2020-04-05 11:43:45 -04:00
Matthew Kennedy 43d38a6691 TPS Initialization Testing (#1264)
* test support

* stub for tests

* plumbing so we can test this

* add test

* comments
2020-04-05 09:10:08 -04:00
rusefi fd02a6dc8c v12 2020-04-03 00:19:04 -04:00
rusefi be5b4fb3c6 less ETB in case of critical 2020-04-02 00:32:03 -04:00
rusefi f3ab4d81f7 start/stop works now 2020-04-01 21:22:54 -04:00
rusefi 0f774b1c1c start/stop works now 2020-04-01 20:25:44 -04:00
rusefi cc35e8a9b0 code style 2020-04-01 19:00:56 -04:00
rusefi 5f62c3535a date 2020-04-01 00:42:53 -04:00
rusefi 872f32c994 better message 2020-03-31 16:02:13 -04:00
rusefi dc52d039e7 start/stop progress 2020-03-31 01:06:19 -04:00
Matthew Kennedy cd41449459 Debuggability in the new sensor world (#1238)
* rename to avoid conflict

* fix efilib

* add sensor printing

* makefile

* that check was already there

* const

* const

* fix tests

* formatting

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-30 18:29:42 -04:00
rusefi 287aa9536f Reducinc code duplication thank you Matt 2020-03-30 14:12:57 -04:00
rusEfi a3588f64fa v12 & dual-TPS 2020-03-30 01:13:02 -04:00
Matthew Kennedy 0ac3e06149 cleanup extern mess (#1237)
* cleanup

* move outside define
2020-03-29 19:06:03 -04:00
rusefi 1956de6cea oooops 2020-03-29 16:56:40 -04:00
rusefi 79e5059c5a critical error usability improvements 2020-03-28 20:14:17 -04:00
rusefi 0e457ecedb date 2020-03-26 19:25:14 -04:00
Matthew Kennedy b7033bbde9 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 e386955741 start/stop progress 2020-03-25 01:41:15 -04:00
rusefi 92a13312dc random code inspired by Ola 2020-03-24 19:21:20 -04:00
rusefi 3232aeb80c progress 2020-03-23 23:51:51 -04:00
rusefi 44b2cd1254 date 2020-03-23 23:28:17 -04:00
rusefi 9e9c4249e2 progress 2020-03-23 23:16:57 -04:00
rusefi 205fdcee66 launch control #203 2020-03-23 20:44:34 -04:00
rusefi e58f00692e start/stop progress 2020-03-23 10:32:41 -04:00
rusefi 7c991fedce moving a bit of crazy aside 2020-03-23 00:01:59 -04:00
Matthew Kennedy 3840440e97 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 b55a892e3a At least read all TPS inputs 2020-03-20 09:53:45 -04:00
rusEfi fbbac83010 v12 progress 2020-03-20 00:36:22 -04:00
Matthew Kennedy fa8036e4b6 fix (#1202)
* fix test

* shrink memory
2020-03-19 20:02:49 -04:00
rusEfi 5a21db41a4 v12 & ETB progress 2020-03-18 00:12:31 -04:00
rusEfi cb37a6f51d v12 2020-03-11 20:48:09 -04:00
rusefi bd34f5479a In case of incompatible firmware and console we have a vague error message fix #1180 2020-03-10 19:12:37 -04:00
rusefi 2ae15b5bab hard-coding miata Nb2 VVT Ratio magic 2020-03-09 16:59:19 -04:00
rusefi 7bbe4f791a date 2020-03-08 09:17:43 -04:00
rusEfi a0e838467a date 2020-03-07 15:55:08 -05:00
rusefi 0865b7be2e better invalid configuration handling 2020-03-05 21:16:45 -05:00
Matthew Kennedy a2a5b40ced Support disabling most/all features (#1162)
* this flag did nothing

* guard features properly
2020-02-26 18:16:35 -05:00
rusEfi c2ab5f4871 more mc33816 2020-02-25 22:38:08 -05:00
rusefi e2704a4525 minor progress 2020-02-22 13:04:19 -05:00
rusEfi e9ac797ac9 reviving FRANKENSO_QA_ENGINE 2020-02-18 17:53:56 -05:00
rusefi 2eec300251 miata vvt trigger decoding is broken #1145 2020-02-14 13:02:27 -05:00
rusEfi 21853eb500 FATAL error running MRE blinking test #1137
still not the fix?
2020-02-11 17:49:39 -05:00
rusEfi 3c874398ff tle8888 start-up clean-up 2020-02-09 20:41:25 -05:00
Matthew Kennedy a08946c2f5 Fix master (#1134)
* Revert "something went very wrong."

This reverts commit e0fb325d5a.

* Revert "trying to fix build broken by "Sensor reconfiguration while running (#1131)""

This reverts commit 55e8ee5052.

* Revert "partial Revert of "Stricter compile options (#1132)""

This reverts commit b0d7cc9a22.

* temp prometheus fix

* fix bootloader

* fix batch files
2020-02-08 16:34:29 -05:00
rusefi e0fb325d5a something went very wrong.
first we have functional defects
that we do not write test to cover newly intdroduced defects
then attempts to fix defects do not compile
2020-02-08 08:15:46 -05:00
960 580e725d11 Boost pr (#1114)
* boost control

* cleanup

* Delete rusefi_config.txt

* Add files via upload

* Delete rusefi_config.txt

* Add files via upload

* Update rusefi.input

* Update boost_control.cpp
2020-02-02 03:56:21 -05:00
rusefi a124e0b934 date & VVT test progress 2020-01-31 01:23:01 -05:00
rusefi d1a4b39a5a refactoring: de-coupling trigger decoder and engine 2020-01-26 03:48:25 -05:00
rusefi 59c293b548 trigger refactoring 2020-01-25 11:22:25 -05:00
rusefi f6ce9397db refactoring 2020-01-22 01:22:44 -05:00
rusefi 5529e7cebf date 2020-01-19 03:49:06 -05:00
rusefi 12600a3b06 date 2020-01-13 02:03:42 -05:00
rusefi 63e3e84e08 happy new year 2020-01-08 00:02:40 -05:00
rusefi 50d78f648b de-coupling things a bit 2019-12-24 00:26:23 -05:00
rusefi 4605c64a07 that's not a worth a file 2019-12-24 00:03:53 -05:00
rusefi ae615376ea refactoring 2019-12-23 23:32:43 -05:00
rusefi c629b21ab4 adding simplicity 2019-12-23 23:25:08 -05:00
rusefi 67e1f06d36 simplicity? 2019-12-23 22:50:04 -05:00
rusefi 0cede6673f adding simplicity 2019-12-23 22:40:23 -05:00
rusefi de480fe05e adding simplicity 2019-12-23 22:30:58 -05:00
rusefi 34e1d4c3c1 date & fresh integration 2019-12-22 08:24:47 -05:00
Matthew Kennedy df57b24e3f 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 5c679034a7 Revert "fresh integration & changing protocol versions & versions"
This reverts commit 8a8ea6c0
2019-12-21 15:02:37 -05:00
rusefi 8a8ea6c096 fresh integration & changing protocol versions & versions 2019-12-21 12:35:47 -05:00
Matthew Kennedy 4866a78e63 Re-shrink stacks (#1060)
* small stacks

* giant servo stack

* reclaim ram
2019-12-14 09:31:13 -05:00
rusefi 9bd5721033 great news about #1055 2019-12-13 23:07:56 -05:00
rusefi eafefe5b24 great news about #1055 2019-12-13 21:50:14 -05:00
rusefi 2c296c0f18 etbActualCount logic to handle the scenario where only one ETB is present 2019-12-13 12:50:34 -05:00
rusefi f47a1a16d1 getting rid of boardConfiguration / binary compatible change 2019-12-11 17:48:55 -05:00
rusefi 34b32db032 straightening enum reuse 2019-12-10 21:18:35 -05:00
rusEfi 52c15a7d9b dual-ETB progress 2019-12-10 00:07:46 -05:00
rusefi a40477e598 Making UART/TTL pins configurable 2019-12-07 21:22:09 -05:00
rusefi 561986d3e4 The Big Refactoring of 2019: folder structure #723 2019-12-04 01:11:10 -05:00
rusefi d5bfd76922 "sensor chart" for aux fast analog input 2019-12-02 20:31:49 -05:00
rusefi 34f53bd102 making things nicer with dual ETB settings 2019-11-30 17:38:33 -05:00
rusEfi 13d4ae2169 dual ETB seems to work! 2019-11-29 19:06:50 -05:00
rusefi 002a08316c steps towards dual ETB 2019-11-28 15:24:30 -05:00
rusefi 265727b7db steps towards dual ETB 2019-11-27 22:07:36 -05:00
rusefi 155ff25c22 MapAveragingCallback schedules all cylinders at once #974 2019-11-24 23:20:24 -05:00
rusefi 6efab3683c bug: aux valve actions can overlap 2019-11-23 10:34:43 -05:00
rusefi 8dddc62979 aux overlap debugging 2019-11-22 18:50:46 -05:00
rusEfi 7e78f077bc steps towards dual ETB 2019-11-21 00:49:38 -05:00
rusefi 95e8f4227b making F4 and else happier with perf_trace, also maybe missing 'break'? 2019-11-19 20:36:47 -05:00
Matthew Kennedy 8fd603dca9 Merge remote-tracking branch 'origin/master' into perf-tracing 2019-11-19 16:28:58 -08:00
rusefi 7dade5a878 v12 2019-11-17 22:32:27 -05:00
rusefi 1624346c97 v12 2019-11-16 16:00:50 -05:00
rusefi ef9ad935e0 poke 2019-11-14 10:23:11 -05:00
rusefi c3aa47195d todo 2019-11-13 22:02:13 -05:00
rusefi a23f6bb23e time to panic and revert more 2019-11-12 21:42:44 -05:00
rusefi 1ad591742b refactoring: time to unify digital pin API
trying to fix build
2019-11-12 19:04:33 -05:00
rusefi 7c453fb199 Strange INJ1 signal behavior (when the frequency of scheduler's timer is less than 1MHz) fix #996 2019-11-10 23:54:08 -05:00
andreika-git add26866f5 Industrial PID Controller (#1002)
* Implement Industrial PID controller

* Test-Use PidIndustrial in alternator

* Meaningful unit-tests for PidIndustrial
2019-11-10 13:04:27 -05:00
rusefi ca0984007d 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 3b2d5c8c7f Missing dwell altogether in some corner cases #796
only additional live data here
2019-11-05 23:36:33 -05:00