Commit Graph

12180 Commits

Author SHA1 Message Date
GitHub build-firmware Action 016cdeca73 Auto-generated configs and docs 2021-11-28 23:53:55 +00:00
rusefillc e40704a7e5 automation around outputs section #197
datalog toolset
2021-11-28 18:06:02 -05:00
rusefillc e61a6add76 automation around outputs section #197
datalog toolset
2021-11-28 17:55:33 -05:00
rusefillc 32f88596de Epic: Remove FSIO #2928 2021-11-28 17:47:16 -05:00
rusefillc e3887b35c3 Epic: Remove FSIO #2928 2021-11-28 17:31:38 -05:00
GitHub build-firmware Action 1e58ab65d1 Auto-generated configs and docs 2021-11-28 22:26:50 +00:00
rusefillc 8465c920a2 automation around outputs section #197
datalog toolset
2021-11-28 17:04:46 -05:00
GitHub build-firmware Action 12711fff71 Auto-generated configs and docs 2021-11-28 21:41:29 +00:00
rusefillc f72f081cc2 automation around outputs section #197
datalog toolset
2021-11-28 16:36:30 -05:00
GitHub build-firmware Action 4ced603941 Auto-generated configs and docs 2021-11-28 21:26:05 +00:00
rusefillc 3f0ed6bbd7 automation around outputs section #197
datalog toolset
2021-11-28 16:10:09 -05:00
GitHub build-firmware Action 4593c7d8cc Auto-generated configs and docs 2021-11-28 20:53:00 +00:00
Matthew Kennedy b364844344 fix (#3629) 2021-11-28 15:36:36 -05:00
GitHub build-firmware Action 78be13fcc3 Auto-generated configs and docs 2021-11-28 20:32:19 +00:00
Matthew Kennedy 2dda9bedb8 verbose CAN bits picker (#3628)
* verbose bits picker

* s
2021-11-28 14:59:26 -05:00
GitHub build-firmware Action 96a460bbf3 Auto-generated configs and docs 2021-11-28 19:46:47 +00:00
rusefillc da4f41ce3e automation around outputs section #197
datalog toolset
2021-11-28 14:40:16 -05:00
GitHub build-firmware Action 78daf458da Auto-generated configs and docs 2021-11-28 19:18:32 +00:00
rusefillc 6fcb42a258 automation around outputs section #197
datalog toolset
2021-11-28 14:10:13 -05:00
GitHub build-firmware Action a685daad60 Auto-generated configs and docs 2021-11-28 18:22:48 +00:00
rusefillc 37e0a6b8d4 automation around outputs section #197
refactoring: extract helper class & poke
2021-11-28 13:13:13 -05:00
GitHub build-firmware Action b3e60caa01 Auto-generated configs and docs 2021-11-28 05:54:31 +00:00
Matthew Kennedy 7164c448ec make fan control live-data-friendly (#3626)
* make fan live-data-friendly

* script

* generated for happy simulator
2021-11-28 00:40:12 -05:00
GitHub set-date Action 29ca22e837 Update date 2021-11-28 01:01:58 +00:00
GitHub build-firmware Action ea570701cf Auto-generated configs and docs 2021-11-28 00:44:50 +00:00
Matthew Kennedy c73f7d7623 not industrial (#3627) 2021-11-27 19:27:57 -05:00
rusefillc 942adf0cc8 automation around outputs section #197 2021-11-27 19:23:35 -05:00
rusefillc a193d268c1 automation around outputs section #197 2021-11-27 18:54:57 -05:00
GitHub build-firmware Action bdd77f971b Auto-generated configs and docs 2021-11-27 23:40:21 +00:00
rusefillc 24965590a2 automation around outputs section #197 2021-11-27 18:34:47 -05:00
GitHub build-firmware Action 1e3bc0464c Auto-generated configs and docs 2021-11-27 19:21:04 +00:00
rusefillc 0d88de6342 automation around outputs section #197 2021-11-27 14:09:27 -05:00
rusefillc 7b73fe643c automation around outputs section #197 2021-11-27 14:08:09 -05:00
GitHub build-firmware Action 3a68ddf904 Auto-generated configs and docs 2021-11-27 18:42:03 +00:00
rusefillc 7bc85f5e9c automation around outputs section #197 2021-11-27 13:36:37 -05:00
GitHub build-firmware Action 98636f6bf0 Auto-generated configs and docs 2021-11-27 18:23:12 +00:00
rusefillc 547a045a14 automation around outputs section #197 2021-11-27 13:05:56 -05:00
GitHub build-firmware Action dc820c0b4a Auto-generated configs and docs 2021-11-27 17:44:20 +00:00
rusefillc 00472d078c automation around outputs section #197 2021-11-27 12:28:59 -05:00
GitHub build-firmware Action 1edbb8d29e Auto-generated configs and docs 2021-11-27 16:00:49 +00:00
rusefillc 44fd0fe775 automation around outputs section #197 2021-11-27 10:55:24 -05:00
Matthew Kennedy 7eff78a9a1 don't need autoscale when it's 1.0 ratio (#3625)
* don't need autoscale when it's 1.0 ratio

* chmod +x

* we needed a few of those
2021-11-27 10:01:17 -05:00
GitHub build-firmware Action 75246f7238 Auto-generated configs and docs 2021-11-27 14:01:08 +00:00
Matthew Kennedy aed334f9ac better VSS configuration (#3542)
* vss uses real values

* some defaults

* test and correct math

* km, not miles!

* comment

* tooltip

* that macro went away

* 100hz and default settings gives 9kph

* changelog

* order of operations safety

* make the test like the pwm test

* housekeeping

* this is why we need sensor automation

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-27 08:49:07 -05:00
GitHub build-firmware Action ca7c2a874e Auto-generated configs and docs 2021-11-27 06:18:39 +00:00
rusefillc 337dc1a37c automation around outputs section #197 2021-11-27 01:13:01 -05:00
GitHub build-firmware Action efa5e66815 Auto-generated configs and docs 2021-11-27 06:02:00 +00:00
rusefillc 2cd8863492 automation around outputs section #197 2021-11-27 00:36:14 -05:00
GitHub build-firmware Action 5b461e82fb Auto-generated configs and docs 2021-11-27 03:40:13 +00:00
rusefillc b636cc3920 automation around outputs section #197 2021-11-26 21:54:31 -05:00
rusefillc ea3661e7fb automation around outputs section #197 2021-11-26 21:34:05 -05:00
rusefillc 358f04091a automation around outputs section #197 2021-11-26 21:21:46 -05:00
rusefillc e90d6b9ce7 automation around outputs section #197 2021-11-26 21:10:09 -05:00
rusefillc 53fdc40c7d automation around outputs section #197 2021-11-26 21:03:45 -05:00
rusefillc 3b3fb9b93a automation around outputs section #197 2021-11-26 20:53:22 -05:00
rusefillc 3f8c0d605c automation around outputs section #197 2021-11-26 20:46:42 -05:00
GitHub set-date Action ebb2d2aedc Update date 2021-11-27 00:58:56 +00:00
rusefillc 4da5520238 automation around outputs section #197 2021-11-26 19:14:11 -05:00
rusefillc 972c8c496a automation around outputs section #197 2021-11-26 18:49:16 -05:00
Matthew Kennedy dc7fe111bf strtof (#3623)
* strtof

* do fewer divides
2021-11-26 18:39:45 -05:00
rusefillc 9c7766835b automation around outputs section #197 2021-11-26 18:30:59 -05:00
rusefillc 452b7d42ba automation around outputs section #197 2021-11-26 18:16:06 -05:00
rusefillc 6339689385 first edition 2021-11-26 16:02:21 -05:00
rusefillc 95a28e0dda automation around outputs section #197 2021-11-26 15:53:01 -05:00
rusefillc 631d71cea7 random note 2021-11-26 15:48:42 -05:00
rusefillc 0aaf9ccdc2 harley 2021-11-26 14:41:35 -05:00
rusefillc d791ef5581 skipspark script kills ECU fix #3611 2021-11-25 22:40:19 -05:00
GitHub build-firmware Action ca5ba2f8e8 Auto-generated configs and docs 2021-11-26 02:06:11 +00:00
Andrey e3920a3159 reliable 32/2 trigger shape 2021-11-25 20:45:58 -05:00
GitHub build-firmware Action e2d51f074d Auto-generated configs and docs 2021-11-26 01:23:28 +00:00
Andrey 02704421e4 proper vvt name 2021-11-25 20:08:18 -05:00
GitHub set-date Action 112a235ac2 Update date 2021-11-26 00:59:36 +00:00
GitHub build-firmware Action 865d4442fc Auto-generated configs and docs 2021-11-25 23:51:06 +00:00
Matthew Kennedy dad52dd75a wall fuel tweaks (#3617) 2021-11-25 18:45:44 -05:00
rusefillc 913ebd5c1e lua code formatting 2021-11-25 10:19:07 -05:00
Andrey 063be2cc29 Mark made progress 2021-11-25 09:07:28 -05:00
Matthew Kennedy 6e4759389a AC is EngineModule (#3604)
* AC is engine module

* missed a spot with main relay while we're at it

* TS
2021-11-25 07:59:31 -05:00
Matthew Kennedy bc4ee75024 mods (#3610) 2021-11-25 07:58:30 -05:00
Andrey 374b7223cd isCylinderCleanupEnabled would be nice by default 2021-11-24 23:32:55 -05:00
Andrey 7fa2fa5707 MAP phase sensing #3544 2021-11-24 23:06:52 -05:00
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 3b915f8244 harley config 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
Andrey b04efc4b61 MAP phase sensing #3544 2021-11-24 21:28:49 -05:00
Andrey 46f7a3e3dd Mark hit timer watchdog #3608 2021-11-24 20:34:24 -05:00
Andrey f17c951742 dead file 2021-11-24 20:26:40 -05: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 8ed1825696 fixing broken test? 2021-11-24 13:25:29 -05: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
rusefillc d0db3f9733 typo 2021-11-24 09:12:06 -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
Matthew Kennedy e7417ef0c0 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 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
rusefi 6ca471494b harley lua 2021-11-22 17:33:28 -05:00
Matthew Kennedy c45bb2b67d embiggen log buffer (#3596) 2021-11-22 16:46:18 -05:00
rusefillc d0f4969b3b harley 2021-11-22 14:29:48 -05:00
rusefillc 5271d9791a j1850 SAE crc8 Lua 2021-11-22 14:19:19 -05:00
rusefillc 3d8ddbceea j1850 SAE crc8 2021-11-22 14:03:52 -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
rusefi 0820fa178d harley CAN Lua 2021-11-22 13:00:16 -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
rusefillc ee9fef1024 automation around outputs section #197 2021-11-21 09:35:37 -05:00
GitHub build-firmware Action 34c2fcc60d Auto-generated configs and docs 2021-11-21 13:16:25 +00:00
rusefillc 07ce2036b3 https://rusefi.com/forum/viewtopic.php?f=5&t=2217 2021-11-21 08:12:05 -05: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
rusefillc df7ea34864 automation around outputs section #197 2021-11-20 14:38:50 -05:00
rusefillc e10067da93 automation around outputs section #197 2021-11-20 14:27:21 -05:00
rusefillc 1c89d629e5 automation around outputs section #197 2021-11-20 14:08:02 -05:00
rusefillc fe3f8233d6 automation around outputs section #197 2021-11-20 13:30:25 -05:00
rusefillc f0e02f70c4 Epic: Remove FSIO #2928 2021-11-20 13:19:50 -05:00
rusefillc 9685c55d09 No longer used 2021-11-20 13:18:57 -05: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
Scott Smith 8406fafa9e 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 18aacc0ef6 On -fpermissive in Windows in unit tests #3581 2021-11-20 00:16:03 -05:00