Commit Graph

7361 Commits

Author SHA1 Message Date
Andrey 670bd74376 MAP phase sensing #3544 2021-11-24 22:41:49 -05:00
Andrey 695557f709 MAP phase sensing #3544 2021-11-24 22:36:36 -05:00
Andrey a42a52bb2e MAP phase sensing #3544 2021-11-24 22:35:56 -05:00
Andrey 4e45297145 minor progress 2021-11-24 22:35:56 -05:00
GitHub build-firmware Action 83fc9e21bd Auto-generated configs and docs 2021-11-25 03:31:35 +00:00
Matthew Kennedy 5752b4ba92 bye (#3609) 2021-11-24 22:03:17 -05:00
GitHub build-firmware Action fb372ea639 Auto-generated configs and docs 2021-11-25 02:45:07 +00:00
GitHub set-date Action 5fa859eacf Update date 2021-11-25 01:01:18 +00:00
Matthew Kennedy 5f01898dfd fix map avg logging (#3606)
* s

* s
2021-11-24 18:24:39 -05:00
rusefi b420052848 live data for wastegate #3588 2021-11-24 15:22:10 -05:00
rusefi 09d26c7b0b live data for wastegate #3588 2021-11-24 15:07:48 -05:00
rusefi 082bfa0eb6 live data for wastegate #3588 2021-11-24 15:03:06 -05:00
GitHub build-firmware Action 3a3022d7f3 Auto-generated configs and docs 2021-11-24 19:48:08 +00:00
Matthew Kennedy 1c8c22f9f1 map averaging usability (#3603) 2021-11-24 14:39:54 -05:00
GitHub build-firmware Action 4d66ab21cd Auto-generated configs and docs 2021-11-24 19:31:50 +00:00
rusefillc 6c23986cf0 MAP phase sensing #3544 2021-11-24 14:26:41 -05:00
GitHub build-firmware Action 602437ab93 Auto-generated configs and docs 2021-11-24 19:10:22 +00:00
rusefillc 3c1196c029 live data for wastegate #3588 2021-11-24 13:20:47 -05:00
rusefillc aa4e57ded6 live data for wastegate #3588 2021-11-24 13:18:07 -05:00
rusefillc 28c9d7555b live data for wastegate #3588 2021-11-24 12:59:57 -05:00
GitHub build-firmware Action d0ddd991a6 Auto-generated configs and docs 2021-11-24 13:02:01 +00:00
Matthew Kennedy 5274cffff3 main relay doesn't use fsio (#3580)
* fuel pump

* s

* call correct callback

* more dead

* test adjustment

* don't overflow

* don't need separate function

* java

* give it a name

* generated

* generated

* add to generate script

* import *

* this is so cheap we don't need a flag

* main relay

* plumbing

* dead fsio stuff

* test it

* by 100%, we mean 99.98%
2021-11-24 07:47:51 -05:00
GitHub set-date Action e10054a592 Update date 2021-11-24 01:00:22 +00:00
GitHub build-firmware Action 974e8928a1 Auto-generated configs and docs 2021-11-23 21:48:05 +00:00
rusefillc 09ed871dad well Lua wants to be BIG 2021-11-23 16:40:04 -05:00
GitHub build-firmware Action 16e025a7fc Auto-generated configs and docs 2021-11-23 21:00:29 +00:00
rusefillc 7760ddd8b6 live data for wastegate #3588
i want to persist state so no 'const' sorry
2021-11-23 15:52:43 -05:00
rusefillc 0b1b628fd3 live data for wastegate #3588 2021-11-23 15:51:30 -05:00
rusefillc cedc5f4e9c LUA CANbus expect 29bit ID by default #3592
not great quick fix
2021-11-23 15:41:43 -05:00
GitHub build-firmware Action ec7b493f6b Auto-generated configs and docs 2021-11-23 20:06:24 +00:00
rusefillc 9300866ba8 live data for wastegate #3588 2021-11-23 15:02:03 -05:00
rusefillc c5242fb720 live data for wastegate #3588 2021-11-23 15:00:47 -05:00
rusefillc fc10166f97 spelling 2021-11-23 07:57:43 -05:00
GitHub set-date Action 5a8eed86ee Update date 2021-11-23 01:00:35 +00:00
GitHub build-firmware Action 191b76f4dd Auto-generated configs and docs 2021-11-22 23:12:52 +00:00
Matthew Kennedy 9bd8a19564 oh my god we've had no asserts (#3595) 2021-11-22 17:52:03 -05:00
rusefillc 5271d9791a j1850 SAE crc8 Lua 2021-11-22 14:19:19 -05:00
GitHub build-firmware Action a2bc33b211 Auto-generated configs and docs 2021-11-22 18:42:24 +00:00
rusefillc 5d55b8538f unusedLogFormat 2021-11-22 13:37:06 -05:00
Scott Smith 467db16828 Move LuaThread to CCM, and shuffle a couple items out. (#3587)
Lua's stack probably doesn't need DMA.  Allows us to group more of our unused RAM together
in one place.
2021-11-21 20:35:03 -05:00
GitHub set-date Action 743ea73afd Update date 2021-11-22 01:01:34 +00:00
GitHub build-firmware Action 34c2fcc60d Auto-generated configs and docs 2021-11-21 13:16:25 +00:00
Scott Smith 9d61fb4cfd Drop SingleChannelStateSequence in favor of MultiChannelStateSequenceWithData (#3519)
* Drop SingleChannelStateSequence in favor of MultiChannelStateSequenceWithData

Most all the users were Multi* anyways, so just improve that:
1. Allow up to 8 waveforms to share one byte per timestamp.  It could be better but this is simple
   and gets most of the benefit.
2. Use a wrapper structure to handle reserving space for the arrays.  Makes the interface simpler
   and more rigid.  Also saves 4 bytes per Multi*.  Downside is access is now via -> and *,
   not . and (nothing).

Saves 224 bytes of BSS, 1832 bytes of RAM4/CCM, 952 bytes of TEXT, and 103 bytes of RODATA

* Instantiate a base_t to make debugging easier.
Also fixes crash on real firmware by using &m_base instead - LTO optimization issue?

* No magical templated StaticAlloc thingy.  Just virtual functions.
2021-11-21 04:56:07 -05:00
Matthew Kennedy b9f8409f59 correctly compute engine revolution number (#3586)
* add param

* first revolution is revolution 0, not revolution 1

* would you look at that, we sync one rev quicker!

* changelog

* rpm value
2021-11-21 09:01:27 +03:00
GitHub set-date Action 6047404cfd Update date 2021-11-21 01:02:55 +00:00
Matthew Kennedy e2a4504728 rpm calculator refactoring, gm 24x test (#3585)
* data

* stub test

* use getTimeSinceSyncPoint

* s

* s

* no

* test

* stray ;

* those were 1/10 what they were supposed to be

* actually check something

* dead log line?
2021-11-20 14:59:02 +03:00
Scott Smith 04fa1fd410 Fix potential buffer overrun in cyclic_buffer. (#3583)
This exposed a buffer overrun, so double the size of the buffer (to account for 720 degree engine
cycle vs 360 degree crank events).

Also use proper numeric limits when computing min/max.
Finally, add a lock around the call to cyclic_buffer that actually caused the contention.
2021-11-20 03:01:11 -05:00
Matthew Kennedy 569415930c detect more overflows with asan (#3582)
* overflow detector

* type list dynamic allocate

* fix the buffer length

* comment

* pr fb

* sanitize sim

* fix sim sanitizer bug

* didn't mean to turn off optimization for sim

* asan can do that, if you turn it on!

* cleaning
2021-11-20 01:38:39 -05:00
rusefillc 18aacc0ef6 On -fpermissive in Windows in unit tests #3581 2021-11-20 00:16:03 -05:00
rusefillc a3fc6d3e80 brave refactoring 2021-11-19 23:56:52 -05:00