Commit Graph

741 Commits

Author SHA1 Message Date
rusefillc aec48c294e GDI Epic #1448 2020-10-17 14:53:56 -04:00
Matthew Kennedy 02c47eeec8 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 94bd5921c5 simplify getTimeNowNt() (#1876)
* remove old impl

* add cpp wrapper to os_access

* clean up os_access

* remove touchTimeCounter

* new impl

* put comment about lock free impl

* include cpp wrappers for BL

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-10-15 08:57:13 -04:00
Matthew Kennedy 4868068e2f start using BufferedWriter (#1878)
* do the part up to actual usage

* borrow some memory for now
2020-10-14 20:06:05 -04:00
rusefillc a20f093140 SD card logs not valid for REO #1864 2020-10-08 20:35:32 -04:00
rusefillc edc8ee7299 60/2 perf grab #1850 2020-10-04 01:26:29 -04:00
Matthew Kennedy 3374db1658 Remove dead & useless config (#1834)
* remove dead config

* remove enum
2020-09-29 06:34:39 -04:00
rusefi f482b9c43d Output pin init/deinit needs a linked list #1803 2020-09-27 07:37:43 -04:00
rusefi 15a23bb399 helping CI 2020-09-22 04:57:07 -04:00
shadowm60 c85932727e Mre sw knock detection (#1815)
* Add SW knock control to MRE on AT4

* Update software_knock.cpp

cleanup

* use knock only for final build

* adjust RAM

* Update engine_controller.cpp

Adjust RAM for HW QC special to build
2020-09-22 03:48:17 -04:00
Matthew Kennedy 85304392dd two throttles one thread (#1806)
* two throttles one thread

* look at all this RAM!
2020-09-18 13:47:49 -04:00
David Holdeman e8e2cf2cfd 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 ffb5e0b1e4 switch start/stop to ButtonDebounce (#1777) 2020-09-09 08:22:15 +01:00
Andrey G 5d421f7ffa 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 a56b299922 do we need RAM?! 2020-09-07 00:23:18 -04:00
rusefi 8ba9a47c59 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 fc02c2bdf4 fix broken master, inject engine ptr to rpmcalculator (#1759)
* fix

* oops
2020-09-05 18:49:42 -04:00
rusefi a3327c242f helping build 2020-09-02 21:19:10 -04:00
David Holdeman 5d84ddfa01 [TCU] Button Shifting (#1750)
* add buttonshift files

* buttonshift includes, targets, and init
2020-09-02 20:17:58 -04:00
David Holdeman 0f10703649 [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 bad69c812e 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 6598032fd7 price of lazy progress 2020-08-31 21:30:47 -04:00
rusefi 0e70206dbf price of lazy progress 2020-08-31 21:09:51 -04:00
rusefi f0ee20be2b one of F7 builds reports error? 2020-08-26 23:22:10 -04:00
rusefi d8d3099d94 ? :( 2020-08-26 22:37:15 -04:00
rusefi 86cce3fce9 ? 2020-08-26 22:03:07 -04:00
rusefi 7c1ce8db99 one of F7 builds reports error? 2020-08-26 21:53:12 -04:00
rusefi 2269f3bc71 docs 2020-08-26 20:49:21 -04:00
rusefi dcdf7c2261 progress 2020-08-23 17:21:08 -04:00
rusefi aae7d5c914 better TPS naming 2020-08-22 08:06:04 -04:00
rusefi e388d28cd2 better messages 2020-08-21 19:13:03 -04:00
rusefi 4cd5f146f4 bugfix - PPS second channel was not initialized 2020-08-19 00:46:57 -04:00
rusefi b3f013b483 TS SD integration #1653 2020-08-07 17:24:02 -04:00
rusefi 1e24f3d529 do we have this RAM? 2020-08-02 17:21:07 -04:00
rusefi ffa9de7040 auxTempSensor text output 2020-07-27 20:23:57 -04:00
Matthew Kennedy 1249c11690 more spots 2020-07-20 00:55:45 -07:00
David Holdeman 4a43b0a29f 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 76d3dbe22c fixing stuff? 2020-06-14 18:06:33 -04:00
rusefi ff8f0731fd a few unneeded properties 2020-06-13 22:46:10 -04:00
rusefi 152fa17990 warning LED is for warnings only, communications have to reflected by COMMS LED 2020-06-13 13:23:34 -04:00
rusefi cbfdd37243 tuneCrc16 - we use it to match logs to tunes 2020-06-04 20:43:52 -04:00
rusefi a743b55e5e index for fsio_analog_input 2020-06-01 22:39:56 -04:00
rusefi 0847dc4683 useFSIO6ForRevLimiter 2020-06-01 09:09:55 -04:00
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