Commit Graph

16612 Commits

Author SHA1 Message Date
rusefillc 81b275567f doc 2021-11-23 17:16:22 -05:00
rusefillc 6d63e0b6de helping Android & copy right-click menu for Lua editor 2021-11-23 17:07:41 -05:00
rusefillc 9d7792f453 rusEFI console to has "Erase via DFU" button #2250 2021-11-23 16:49:20 -05:00
GitHub build-firmware Action 25d175b47a Auto-generated configs and docs 2021-11-23 21:48:05 +00:00
rusefillc 794ec5e2b8 well Lua wants to be BIG 2021-11-23 16:40:04 -05:00
rusefillc 6d1474d76b rusEFI console to has "Erase via DFU" button #2250 2021-11-23 16:24:05 -05:00
rusefillc a4a490fcb7 rusEFI console to has "Erase via DFU" button #2250 2021-11-23 16:24:05 -05:00
GitHub build-firmware Action 7287d41467 Auto-generated configs and docs 2021-11-23 21:00:29 +00:00
rusefillc c75291f415 live data for wastegate #3588
i want to persist state so no 'const' sorry
2021-11-23 15:52:43 -05:00
rusefillc ca1e420073 live data for wastegate #3588 2021-11-23 15:51:30 -05:00
rusefillc 719e3f9052 LUA CANbus expect 29bit ID by default #3592
not great quick fix
2021-11-23 15:41:43 -05:00
GitHub build-firmware Action a4557c969f Auto-generated configs and docs 2021-11-23 20:06:24 +00:00
rusefillc d21541934d live data for wastegate #3588 2021-11-23 15:02:03 -05:00
rusefillc ead3853f9a live data for wastegate #3588 2021-11-23 15:00:47 -05:00
Matthew Kennedy 178ccdeb4d
simulator writes binary log (#3598)
* simulator writes log

* replace the file

* check that the sim actually fails

* put it back

* did the sim really not fail?

* good, asan does catch it
2021-11-23 11:42:45 -05:00
rusefillc c29bb71556 spelling 2021-11-23 07:57:43 -05:00
GitHub set-date Action ad5c0fc57c Update date 2021-11-23 01:00:35 +00:00
rusefillc 50ccf1fbea harley 2021-11-22 19:16:57 -05:00
GitHub build-firmware Action 174b03e8be Auto-generated configs and docs 2021-11-22 23:12:52 +00:00
Matthew Kennedy 3334a6963c
oh my god we've had no asserts (#3595) 2021-11-22 17:52:03 -05:00
rusefi 48d44242ff harley lua 2021-11-22 17:33:28 -05:00
rusefi d5b91aaa94 lua editor scroll bar 2021-11-22 17:24:50 -05:00
Matthew Kennedy b2ae7243dd
embiggen log buffer (#3596) 2021-11-22 16:46:18 -05:00
rusefillc a07e0a37b1 harley 2021-11-22 14:29:48 -05:00
rusefillc 42da5746f4 j1850 SAE crc8 Lua 2021-11-22 14:19:19 -05:00
rusefillc da68ff5ad6 j1850 SAE crc8 2021-11-22 14:03:52 -05:00
GitHub build-firmware Action 66e9a5e9ae Auto-generated configs and docs 2021-11-22 18:42:24 +00:00
rusefillc a369e7e3d3 unusedLogFormat 2021-11-22 13:37:06 -05:00
rusefi bc0c1a6b4a harley CAN Lua 2021-11-22 13:00:16 -05:00
Scott Smith 9668626008
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 cd08e2d153 Update date 2021-11-22 01:01:34 +00:00
rusefillc 66043a5daf automation around outputs section #197 2021-11-21 09:35:37 -05:00
GitHub build-firmware Action 62e11e18e4 Auto-generated configs and docs 2021-11-21 13:16:25 +00:00
rusefillc 76d90c4fa8 https://rusefi.com/forum/viewtopic.php?f=5&t=2217 2021-11-21 08:12:05 -05:00
Scott Smith ba4a00d3bb
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 9a28e8d938
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 3b818a9585 Update date 2021-11-21 01:02:55 +00:00
rusefillc 907c955625 automation around outputs section #197 2021-11-20 14:38:50 -05:00
rusefillc 8cc775e6b6 automation around outputs section #197 2021-11-20 14:27:21 -05:00
rusefillc 7fbd8e9154 automation around outputs section #197 2021-11-20 14:08:02 -05:00
rusefillc 0e89992c38 automation around outputs section #197 2021-11-20 13:30:25 -05:00
rusefillc e3c8aa2f57 Epic: Remove FSIO #2928 2021-11-20 13:19:50 -05:00
rusefillc 22b1b04299 No longer used 2021-11-20 13:18:57 -05:00
Matthew Kennedy a342bee57e
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
rusefillc bdc6340df7 only c++ because lua does some things asan doesn't like, but don't actually cause overruns. 2021-11-20 03:04:52 -05:00
Scott Smith cbc7c61b3e
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 754e832a7f
don't do things that don't work in clang (#3584)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-20 02:40:41 -05:00
Matthew Kennedy bb57a4b084
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
Scott Smith 1fe26f55fb
Expose console over serial port for H7 proc (#3578)
This way you can use the console/TunerStudio with the ST-Link

In the process, combine TS_PRIMARY_UART and TS_PRIMARY_SERIAL into TS_PRIMARY_PORT, to make UART vs
SERIAL selection more robus.  Ditto for TS_SECONDARY_*.  Also change use of TS_NO_PRIMARY to be #if
not #ifdef, so that it can be properly set as a compile flag and not be overwritten by various
header files.
2021-11-20 00:39:08 -05:00
rusefillc fcc2b780e9 On -fpermissive in Windows in unit tests fix #3581 2021-11-20 00:26:52 -05:00