Commit Graph

64 Commits

Author SHA1 Message Date
Matthew Kennedy abffa262c2 emit v2 mlg (#4979)
* emit v2 mlg

* missed a spot

* s

* s

* binary log unit test

* sd generator test

* oop

* getcategory

* write zeroes instead of null pointer in case of no category
2023-01-21 07:31:40 +05:30
rusefillc 0aa2620f3f guards 2022-12-17 16:37:57 -05:00
rusefillc 6628541024 guards 2022-12-17 14:58:10 -05:00
rusefillc 23ecb21562 SD card log fields list should be auto-generated #3985
oh many fields!
2022-10-28 04:11:54 -04:00
rusefillc 64e0f660bc SD logging: cutting out intermediate buffer since we already have nicely buffered writer 2022-10-11 23:41:18 -04:00
rusefillc f0c81cc658 SD logging: calculating sum on the fly 2022-10-11 23:31:47 -04:00
rusefillc 4679cb2815 refactoring: nicer parameter name 2022-10-11 23:27:15 -04:00
rusefillc 228437f574 outputRequestPeriod into logs 2022-09-12 20:56:57 -04:00
rusefillc 5da9012d70 moving SD logic to better source 2022-09-12 20:39:43 -04:00
Andrey G 1ca5988877 time routines refactor (#4563)
* Extract time helpers from engine_controller_misc to efitime.cpp

* Rename currentTimeMillis() to getTimeNowMs()

We have getTimeNowNt(), getTimeNowUs(), currentTimeMillis() and getTimeNowSeconds()
Align a bit.

find . -type f -name '*.c*' -exec sed -i 's/currentTimeMillis/getTimeNowMs/g' {} \;

* Rename getTimeNowSeconds() to getTimeNowS()

To align with Nt, Us, Ms versions.

* Some comments about getTimeNowLowerNt()
2022-09-11 13:06:03 -04:00
Matthew Kennedy cd98ad35c2 use libfirmware for a few things (#4351)
* use libfirmware

* unit tests

* crc

* missed one

* bootloader
2022-07-16 02:22:51 -04:00
Matthew Kennedy 1601156145 aux linear sensors (#4005)
* aux linear sensors

* comment

* kick build

* fix alignment

* fix alignment
2022-03-20 20:13:04 -04:00
rusefillc ae7548c251 SD card log fields list should be auto-generated #3985 2022-03-11 17:33:08 -05:00
Matthew Kennedy 2f1f042379 sd log blah (#3991) 2022-03-11 15:48:03 -05:00
rusefillc e2a4c93910 Onboard SD Card Datalogging Doesn't Record TPS #3943 2022-02-18 22:44:39 -05:00
Matthew Kennedy 78119b7df4 improve maf output channels and logging (#3743)
* maf channels

* s

* binary log

* if only I could type

* can

* instant RPM too

* s

* test

* graceful zero rpm

* test works

* float near
2022-01-12 15:41:35 -05:00
Andrey d2c46b3310 Let's always have TS structure so that unit tests can check values in outputChannels, kind of making outputChannels a god dump for state but whatever since Live View is coming 2021-12-07 20:18:47 -05:00
rusefillc a193d268c1 automation around outputs section #197 2021-11-27 18:54:57 -05:00
rusefillc 7b73fe643c automation around outputs section #197 2021-11-27 14:08:09 -05:00
rusefillc 7bc85f5e9c automation around outputs section #197 2021-11-27 13:36:37 -05:00
rusefillc 547a045a14 automation around outputs section #197 2021-11-27 13:05:56 -05:00
rusefillc 00472d078c automation around outputs section #197 2021-11-27 12:28:59 -05:00
rusefillc b636cc3920 automation around outputs section #197 2021-11-26 21:54:31 -05:00
Matthew Kennedy 8ee86e0789 log vvt targets (#3417)
* log vvt target

* java

* make java happy probably

* sensorlogger
2021-11-02 15:03:57 -04:00
rusefillc e16054bac6 some cheap used junkyard Accelerometer #2225
MM5.10
2021-10-06 11:07:46 -04:00
rusefillc 6e07b2bb73 some cheap used junkyard Accelerometer #2225
MM5.10
2021-10-05 16:21:41 -04:00
rusefillc c0805d4cc6 rusEFI console logs are missing some fields #3314 2021-10-04 00:30:20 -04:00
rusefillc a3a3459597 rusEFI console logs are missing some fields #3314 2021-10-03 23:07:16 -04:00
rusefillc 438963c4bd rusEFI console logs are missing some fields #3314 2021-10-03 22:45:47 -04:00
Matthew Kennedy f5616b51d2 per cylinder knock level in SD log (#3239) 2021-09-19 03:54:59 -04:00
rusefillc 0ee09ef62f SD-card log fields improvement (warning counter & last code) fix #3162 2021-09-08 21:15:41 -04:00
rusefillc 39138aba8f SD-card log fields improvement (warning counter & last code) #3162 2021-09-08 20:45:52 -04:00
Andrey 536567cc13 SD-card log fields improvement (warning counter & last code) #3162 2021-09-05 14:43:35 -04:00
Andrey 935ab7610d SD-card log fields improvement (warning counter & last code) #3162 2021-09-05 10:01:04 -04:00
Matthew Kennedy 4e6b61234f yet more pch (#3068)
* big pch energy

* put back ramdisk stub

* tests are happy

* h743 nucleo

* kinetis

* I love deleting code!

* make stepper happy

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-08-03 22:05:01 -04:00
rusefillc 1cfdf68ecf fix vvt indication #2926
TS project part of the change
2021-07-08 09:37:56 -04:00
Andrey 09fee427c4 fix vvt indication #2926
only field rename
2021-07-08 09:25:31 -04:00
Matthew Kennedy 047f62b2b9 remove deprecated getEngineLoadT (#2676)
* remove

* few more
2021-05-10 08:30:41 -04:00
Matthew Kennedy d7f9d42e07 Hook up multi bank fuel trim (#2532)
* multi bank trim

* cleaning

* output channels

* output channels
2021-05-08 17:41:50 -04:00
Matthew Kennedy 1c4c7fe62c remove duplicate SD log fields (#2556)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-15 01:07:59 -04:00
Matthew Kennedy 774f4416a7 constexpr-ify log field list (#2548)
* constexprify

* reclaim ram

* more constexpr

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-13 20:16:18 -04:00
Matthew Kennedy b20ead8d18 More binary log fields (#2518)
* gauge names

* binary log

* it only takes scaled channel
2021-04-03 20:28:55 -04:00
Matthew Kennedy 2bf833a1ee 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 eba6ae2e8f 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 e0c7d550f4 sd log afr 2 (#2052) 2020-12-10 14:05:52 -05:00
Matthew Kennedy a29f73f467 log afr in addition to lambda (#1920)
* log afr

* log it

* weird double commas
2020-10-31 17:52:07 -04:00
Matthew Kennedy c0ed7cab62 log target lambda (#1919) 2020-10-30 17:42:00 -04:00
rusefillc 31256f6559 fluid gauges 2020-10-28 00:20:35 -04:00
Matthew Kennedy b8c2041467 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 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