Commit Graph

641 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