Commit Graph

731 Commits

Author SHA1 Message Date
Matthew Kennedy 1fc55da3ca
two throttles one thread (#1806)
* two throttles one thread

* look at all this RAM!
2020-09-18 13:47:49 -04:00
David Holdeman 337106cd24
DebounceButton A/C switch (#1782)
* change acSwitch name, add mode

* fix

* remove some adc stuff

* remove some adc stuff

* semicolon stupid

* left behind

* add readpinstate

* wrong var name

* add functions back

* fix name

* bool, not void, plus fix name

* move

* not sure what I broke

* try setMockValue

* namespace

* whoops missed one

* switch values because adc was set up for pullup

* try 5

* comment for now

* comment for now

* uncomment tests, add function to mock, add mock to efiReadPin

* fixes

* for F's sake

* if

* add defy

* pass params

* use ASSERT_TRUE/FALSE

* advance time

* remove ifdef from readPin

* try moving if

* move to separate func

* move extern

* move include

* try engine_test_helper

* am confuse

* move func to else

* include hal

* add efi prod check

* remove include

* try extern

* move include

* semicolon stupid

* move extern again

* include

* move mockPinStates

* size

* add if

* add comment

* clean on instantiation
2020-09-10 22:16:20 -04:00
David Holdeman f5d9263ad1
switch start/stop to ButtonDebounce (#1777) 2020-09-09 08:22:15 +01:00
Andrey G 2312b0ae57
Adc improvements (#1765)
* ADC: move DMA buffer outside of AdcDevice (save few bytes)

* ADC: inlcude fast channels to debug output

* ADC: save some CPU ticks (disabled until fully tested)

* ADC: simplify
2020-09-08 17:20:55 -04:00
rusefi 141cad585c do we need RAM?! 2020-09-07 00:23:18 -04:00
rusefi 7d0c8b4870 microRusEFI used as Body Control Module BCM BCU
got stack too low warning with DBG_CAN
2020-09-06 21:45:17 -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 82f52bf065 helping build 2020-09-02 21:19:10 -04:00
David Holdeman b8838de309
[TCU] Button Shifting (#1750)
* add buttonshift files

* buttonshift includes, targets, and init
2020-09-02 20:17:58 -04:00
David Holdeman 499a430347
[TCU] GearController and TransmissionController base classes (#1749)
* add tcu ts outputs

* accidental change?

* add tcu base classes

* rearrange

* accidental change?

* add files

* missing backslash

* undo accidental change

* buttonshift includes, targets, and init

* Revert "buttonshift includes, targets, and init"

This reverts commit 1b0630511e1948f3d330d74be5bff6c087f118fb.

* use unused bit

* add return documentation

Co-authored-by: rusefillc <48498823+rusefillc@users.noreply.github.com>
2020-09-02 15:39:50 -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
rusefi 77ddb49d91 price of lazy progress 2020-08-31 21:30:47 -04:00
rusefi f4f6750308 price of lazy progress 2020-08-31 21:09:51 -04:00
rusefi 3101475769 one of F7 builds reports error? 2020-08-26 23:22:10 -04:00
rusefi 58226c06e5 ? :( 2020-08-26 22:37:15 -04:00
rusefi 7980e68d02 ? 2020-08-26 22:03:07 -04:00
rusefi 39e69ea572 one of F7 builds reports error? 2020-08-26 21:53:12 -04:00
rusefi fa11b969ad docs 2020-08-26 20:49:21 -04:00
rusefi 245b378ac1 progress 2020-08-23 17:21:08 -04:00
rusefi 2e98575751 better TPS naming 2020-08-22 08:06:04 -04:00
rusefi 57e4c071d1 better messages 2020-08-21 19:13:03 -04:00
rusefi add49b0a5c bugfix - PPS second channel was not initialized 2020-08-19 00:46:57 -04:00
rusefi 20ec569e46 TS SD integration #1653 2020-08-07 17:24:02 -04:00
rusefi dc623ba7f0 do we have this RAM? 2020-08-02 17:21:07 -04:00
rusefi e09b9eee3a auxTempSensor text output 2020-07-27 20:23:57 -04:00
Matthew Kennedy a1d39b8de6 more spots 2020-07-20 00:55:45 -07:00
David Holdeman 664ed149f4
Workflow to write the date, once a day (#1504)
* Add date workflow

* add files

* use VCS_DATE in engine controller

* initial values

* switched to using one file

* moved to controllers

* Add comment and fix cron entry

* add pragma once

* Add more comments
2020-06-17 12:59:57 -04:00
rusefi 308f82c4b3 fixing stuff? 2020-06-14 18:06:33 -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 d1a30f362c tuneCrc16 - we use it to match logs to tunes 2020-06-04 20:43:52 -04:00
rusefi cfcf1cc7b3 index for fsio_analog_input 2020-06-01 22:39:56 -04:00
rusefi 0b5bb7c0cf useFSIO6ForRevLimiter 2020-06-01 09:09:55 -04:00
rusefi 4405ce80a4 refactornig & new console command 2020-05-31 14:15:18 -04:00
Matthew Kennedy 3a7c6f242b
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 5d75c36651 composite log for console 2020-05-26 00:07:18 -04:00
Matthew Kennedy 0290a268ab
Redundant accelerator pedal (#1470)
* add second boudns

* init logic

* test changes

* reconfigure correctly

* rams
2020-05-23 19:48:32 -04:00
rusefi 44b5e38d3a "TLE8888 SR Unexpected response" does not work as intended fix #1466 2020-05-22 22:56:19 -04:00
rusefi bdd0bc5c77 date 2020-05-22 13:30:14 -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
Matthew Kennedy 4f334c91d5
warnings (#1462)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-21 01:08:07 -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 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
rusefi 18760bb699 toyota 2jz progress 2020-05-15 16:35:18 -04:00
rusefi d3785b543e VVT_INACTIVE 2020-05-14 23:13:32 -04:00
rusefi 1f73fa208d helping build 2020-05-13 19:41:10 -04:00
rusefi 28608449b1 docs & helping master 2020-05-13 19:27:11 -04:00
rusefi 0e8282995e date 2020-05-11 00:59:55 -04:00
rusefi 1f692c4a9b 34-2 3 cam Toyota wheel progress 2020-05-10 18:03:11 -04:00
rusefi 816356f987 manual date 2020-05-09 22:44:44 -04:00
rusefi 39424cf5f0 date&docs 2020-05-09 09:35:34 -04:00
rusefi b5571569e9 docs 2020-05-03 12:40:43 -04:00
rusefi 21e5482c47 date 2020-05-03 02:50:43 -04:00
rusefi 639b519ad8 exactly noone is surprised 2020-05-02 22:44:36 -04:00
Matthew Kennedy 3052f2ab7b
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 fe25c8162a Attempting cj125 2020-05-01 17:52:25 -04:00
rusefi cdbab4c68e sweet unused method 2020-05-01 12:05:18 -04:00
rusefi 9180154848 Add firing order fix #1385 2020-04-29 16:46:59 -04:00
Matthew Kennedy 1f16228bdb
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 fe4b531aeb
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 28d0cfa91e
reclaim (#1377)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-27 14:36:26 -04:00
rusefi 88bbbb6c33 VVT miata trying to crank with random phase #1278 2020-04-26 20:50:49 -04:00
rusefi 24bb43c334 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	firmware/controllers/engine_controller.cpp
2020-04-26 19:44:04 -04:00
rusefi 289691a3f2 minor clean-up 2020-04-26 18:47:56 -04:00
rusefi 8149d90814 method inline 2020-04-26 17:50:03 -04:00
rusefi 1b84406e77 dead code 2020-04-26 17:40:12 -04:00
rusefi ab691c4821 minor clean-up 2020-04-26 17:07:39 -04:00
Matthew Kennedy f128b33694
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 1bad5f3047
don't store self stim in config (#1356)
* kill

* add bench test

* fix
2020-04-23 22:38:14 -04:00
rusefi c749807b4b progress 2020-04-22 20:20:22 -04:00
rusefi 934898f903 idle duty cycle clamping 2020-04-20 14:11:40 -04:00
rusefi 1c9e56e56f still want RAM?! 2020-04-19 23:56:08 -04:00
rusefi ca19d2fb44 still the cost of remix 66-2-2-2 2020-04-19 18:58:22 -04:00
rusefi c5ba138471 date & trigger ram usage 2020-04-19 18:32:36 -04:00
rusefi be497685a0 Renix 44-2-2 2020-04-18 22:20:17 -04:00
rusefi ed0e5e2aac multi-channel Tuner Studio tooth logger #1284 2020-04-17 12:14:45 -04:00
rusefi 3a70700935 MC progress 2020-04-16 14:08:28 -04:00
rusefi 049724b902 but what?! 2020-04-14 13:27:07 -04:00
rusefi e0712daa63 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 3e1b38043c fresh 2020-04-13 09:23:13 -04:00
rusefi 12c79b328d date 2020-04-12 18:11:43 -04:00
Matthew Kennedy 001ef27eb8
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 6a94a58796 progress 2020-04-10 13:32:06 -04:00
rusEfi 19184033dd cj125 diag 2020-04-09 00:12:27 -04:00
rusefi 4420218994 TunerStudio: Save settings with self-simulation fix #1272 2020-04-08 18:03:46 -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 d550554145 date 2020-04-06 14:58:18 -04:00
rusefi b43da0d0f8 killing nbVvtIndex 2020-04-05 11:43:45 -04:00
Matthew Kennedy 3186741ddc
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 db82363325 v12 2020-04-03 00:19:04 -04:00
rusefi e9665e1ddc less ETB in case of critical 2020-04-02 00:32:03 -04:00
rusefi eef32ee4fc start/stop works now 2020-04-01 21:22:54 -04:00
rusefi 63246269c7 start/stop works now 2020-04-01 20:25:44 -04:00
rusefi 907b80efa9 code style 2020-04-01 19:00:56 -04:00
rusefi 46cd4af9aa date 2020-04-01 00:42:53 -04:00
rusefi b9eaa3a797 better message 2020-03-31 16:02:13 -04:00
rusefi 65e362740b start/stop progress 2020-03-31 01:06:19 -04:00
Matthew Kennedy 483d4a2204
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 057b447d3d Reducinc code duplication thank you Matt 2020-03-30 14:12:57 -04:00
rusEfi 2a2b00f2d9 v12 & dual-TPS 2020-03-30 01:13:02 -04:00
Matthew Kennedy 8fd9842310
cleanup extern mess (#1237)
* cleanup

* move outside define
2020-03-29 19:06:03 -04:00
rusefi b3be6f03a2 oooops 2020-03-29 16:56:40 -04:00
rusefi 6f5468d3ea critical error usability improvements 2020-03-28 20:14:17 -04:00
rusefi 076954d72e date 2020-03-26 19:25:14 -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 36ec8e565f start/stop progress 2020-03-25 01:41:15 -04:00
rusefi 957b0e19c1 random code inspired by Ola 2020-03-24 19:21:20 -04:00
rusefi 391b0ec368 progress 2020-03-23 23:51:51 -04:00
rusefi c6fb7fb7bb date 2020-03-23 23:28:17 -04:00
rusefi 26b50159f2 progress 2020-03-23 23:16:57 -04:00
rusefi 43440afade launch control #203 2020-03-23 20:44:34 -04:00
rusefi 31ef10fe1c start/stop progress 2020-03-23 10:32:41 -04:00
rusefi 66ec0fdea6 moving a bit of crazy aside 2020-03-23 00:01:59 -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 ef28f394a9 At least read all TPS inputs 2020-03-20 09:53:45 -04:00
rusEfi 984445d545 v12 progress 2020-03-20 00:36:22 -04:00
Matthew Kennedy d5600995e2
fix (#1202)
* fix test

* shrink memory
2020-03-19 20:02:49 -04:00
rusEfi d558b1372e v12 & ETB progress 2020-03-18 00:12:31 -04:00
rusEfi 620088cdc1 v12 2020-03-11 20:48:09 -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 16930da2d3 hard-coding miata Nb2 VVT Ratio magic 2020-03-09 16:59:19 -04:00
rusefi 7144d8f843 date 2020-03-08 09:17:43 -04:00
rusEfi bd93d9e204 date 2020-03-07 15:55:08 -05:00
rusefi f93ac0751d better invalid configuration handling 2020-03-05 21:16:45 -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
rusEfi c35f4aa2e3 more mc33816 2020-02-25 22:38:08 -05:00
rusefi 40145ab09c minor progress 2020-02-22 13:04:19 -05:00
rusEfi 84995652df reviving FRANKENSO_QA_ENGINE 2020-02-18 17:53:56 -05:00
rusefi e9a3b218c4 miata vvt trigger decoding is broken #1145 2020-02-14 13:02:27 -05:00
rusEfi 8c1536dd0e FATAL error running MRE blinking test #1137
still not the fix?
2020-02-11 17:49:39 -05:00
rusEfi 51cfc6bcf1 tle8888 start-up clean-up 2020-02-09 20:41:25 -05:00
Matthew Kennedy 98e6e4b0eb Fix master (#1134)
* Revert "something went very wrong."

This reverts commit 53179dfd22.

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

This reverts commit 0bf32a7291.

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

This reverts commit a17cc28382.

* temp prometheus fix

* fix bootloader

* fix batch files
2020-02-08 16:34:29 -05:00
rusefi 53179dfd22 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 4b4e683957
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 b6e0bc7ed1 date & VVT test progress 2020-01-31 01:23:01 -05:00
rusefi 154b679491 refactoring: de-coupling trigger decoder and engine 2020-01-26 03:48:25 -05:00
rusefi af8383ae3a trigger refactoring 2020-01-25 11:22:25 -05:00
rusefi 06cdb7cde6 refactoring 2020-01-22 01:22:44 -05:00
rusefi 2e0a30859c date 2020-01-19 03:49:06 -05:00
rusefi 2785b39c0e date 2020-01-13 02:03:42 -05:00
rusefi b83a5310be happy new year 2020-01-08 00:02:40 -05:00
rusefi cc466ad3ef de-coupling things a bit 2019-12-24 00:26:23 -05:00
rusefi cb9fc19f92 that's not a worth a file 2019-12-24 00:03:53 -05:00
rusefi c38b4545eb refactoring 2019-12-23 23:32:43 -05:00
rusefi 3494f6ff9f adding simplicity 2019-12-23 23:25:08 -05:00
rusefi 8ffbe768cd simplicity? 2019-12-23 22:50:04 -05:00
rusefi a81655216b adding simplicity 2019-12-23 22:40:23 -05:00
rusefi 1576a9f731 adding simplicity 2019-12-23 22:30:58 -05:00
rusefi 253f68cb61 date & fresh integration 2019-12-22 08:24:47 -05:00