Commit Graph

7683 Commits

Author SHA1 Message Date
GitHub build-firmware Action 35cea5bb44 Auto-generated configs and docs 2021-12-07 01:25:03 +00:00
GitHub set-date Action 76b1cf9d9d Update date 2021-12-07 01:04:53 +00:00
GitHub build-firmware Action 9c3af19c3a Auto-generated configs and docs 2021-12-07 00:05:13 +00:00
GitHub build-firmware Action 51fdc7b9b5 Auto-generated configs and docs 2021-12-06 22:39:16 +00:00
rusefillc ddbe875d98 MAP phase sensing #3544
trigger sync better gauges/logging
2021-12-06 17:04:05 -05:00
GitHub build-firmware Action 326220f25c Auto-generated configs and docs 2021-12-06 18:35:35 +00:00
rusefillc e0d5a5afac trigger sync better gauges/logging 2021-12-06 13:08:41 -05:00
GitHub build-firmware Action 397564ad83 Auto-generated configs and docs 2021-12-06 05:48:26 +00:00
GitHub build-firmware Action c273d90754 Auto-generated configs and docs 2021-12-06 02:28:13 +00:00
rusefillc 7c5940fcc2 tune via CAN #3361
pauseCANdueToSerial
2021-12-05 21:21:36 -05:00
GitHub set-date Action d19e2f2a9f Update date 2021-12-06 01:04:03 +00:00
GitHub build-firmware Action 86ab1471b1 Auto-generated configs and docs 2021-12-05 23:56:34 +00:00
Matthew Kennedy ba6eec22c8 Alternator controller is engine module (#3663)
* alternator is engine module

* user can't set pid period
2021-12-05 18:33:50 -05:00
GitHub build-firmware Action fd4b9e2fa3 Auto-generated configs and docs 2021-12-05 23:25:09 +00:00
GitHub build-firmware Action 6ee061e56d Auto-generated configs and docs 2021-12-05 19:42:45 +00:00
rusefillc 2b465be253 MAP phase sensing #3544
option to look for high and low peaks
2021-12-05 14:25:26 -05:00
rusefillc 89ca3581f7 lua is like a virus but not really 2021-12-05 14:25:26 -05:00
Matthew Kennedy b2af3637a2 simplify cylinder phasing (#3650) 2021-12-05 10:46:35 -05:00
GitHub build-firmware Action e3907019b4 Auto-generated configs and docs 2021-12-05 03:35:58 +00:00
GitHub build-firmware Action 6dc708a1ea Auto-generated configs and docs 2021-12-05 03:19:16 +00:00
GitHub build-firmware Action c718387567 Auto-generated configs and docs 2021-12-05 00:28:26 +00:00
rusefillc 52d770c2bf MAP phase sensing #3544 2021-12-04 18:47:14 -05:00
rusefillc e0559a8548 MAP phase sensing #3544
taking a step back to happy place
2021-12-04 18:21:10 -05:00
GitHub build-firmware Action c4d8c1b72e Auto-generated configs and docs 2021-12-04 23:06:32 +00:00
GitHub build-firmware Action c1d72950ef Auto-generated configs and docs 2021-12-04 22:39:55 +00:00
rusefillc af70aacde2 MAP phase sensing #3544 2021-12-04 17:19:35 -05:00
rusefillc f3a3d96fa9 MAP phase sensing #3544
trying longer average
2021-12-04 17:06:59 -05:00
rusefi 652c73cd90 helping master - undoing limp_manager change 2021-12-04 12:49:43 -05:00
rusefillc 0d3853878f bringing code up-to-date 2021-12-04 12:18:52 -05:00
Andrei 9357e171ce fix engine stop for MAIN_RELAY_CONTROL 2021-12-04 11:55:03 -05:00
Andrei 22785078ef better ignition_voltage_detected message 2021-12-04 01:41:25 -05:00
rusefillc 216b5d9e7a tune via CAN #3361
CAN testability
2021-12-04 01:01:48 -05:00
rusefillc 6a489ed476 tune via CAN #3361 2021-12-04 00:33:54 -05:00
Andrei d1f30f10b1 CAN update 2021-12-03 21:44:15 -05:00
GitHub build-firmware Action 2fcd4e028f Auto-generated configs and docs 2021-12-04 02:14:41 +00:00
GitHub set-date Action 42c85ff9a7 Update date 2021-12-04 01:01:22 +00:00
rusefillc 8f1e7d5b98 MAP phase sensing #3544 2021-12-02 22:32:07 -05:00
GitHub set-date Action f2d9c64c57 Update date 2021-12-03 01:11:52 +00:00
GitHub build-firmware Action 409b9edb9b Auto-generated configs and docs 2021-12-03 00:39:13 +00:00
Matthew Kennedy 99367c8348 log actual tooth angle (#3646) 2021-12-02 19:22:33 -05:00
rusefillc 9ce37314c0 Engine phase wrap around in log #3645
refactoring & docs
2021-12-02 17:06:20 -05:00
rusefillc 2476fae92a Engine phase wrap around in log #3645
refactoring & docs
2021-12-02 17:06:20 -05:00
GitHub build-firmware Action 68a23f56f1 Auto-generated configs and docs 2021-12-02 06:56:04 +00:00
rusefillc 37ed110750 how many more spelling mistakes?! 2021-12-02 01:06:40 -05:00
rusefillc 01153934f9 Requesting LUA Torque intervention #3638 2021-12-02 01:02:56 -05:00
GitHub build-firmware Action a9de68a552 Auto-generated configs and docs 2021-12-02 05:04:17 +00:00
rusefillc 186cbcc297 refactoring 2021-12-01 23:33:26 -05:00
rusefillc 6a41737dce CAN progress 2021-12-01 22:57:21 -05:00
GitHub build-firmware Action 11c49b8360 Auto-generated configs and docs 2021-12-02 02:59:01 +00:00
GitHub set-date Action 5d69310c4c Update date 2021-12-02 01:01:54 +00:00
rusefillc f6c5ac8ebb fix vBatt false-detection 2021-12-01 11:22:13 -05:00
GitHub build-firmware Action 47f45ad284 Auto-generated configs and docs 2021-12-01 14:21:38 +00:00
rusefillc 2d9b159838 proteus to have enlarged Lua 2021-12-01 09:06:16 -05:00
rusefillc 22962809f8 proteus to have enlarged Lua 2021-12-01 00:07:04 -05:00
GitHub build-firmware Action f767500ef1 Auto-generated configs and docs 2021-12-01 04:23:33 +00:00
rusefillc c01192acf6 proteus to have enlarged Lua
one step back
2021-11-30 22:35:29 -05:00
rusefillc 1ebd7daf4f proteus to have enlarged Lua 2021-11-30 21:57:15 -05:00
GitHub build-firmware Action 0744ffe601 Auto-generated configs and docs 2021-12-01 02:00:42 +00:00
GitHub set-date Action b228ec0b79 Update date 2021-12-01 01:08:34 +00:00
GitHub build-firmware Action f6d6fab004 Auto-generated configs and docs 2021-12-01 00:36:32 +00:00
Matthew Kennedy faf4801175 remove define_constructor (#3640)
* no define_constructor

* jar

* sim needs live doc
2021-11-30 19:31:54 -05:00
GitHub build-firmware Action 4bac38b8d8 Auto-generated configs and docs 2021-11-30 22:57:09 +00:00
GitHub build-firmware Action d08be922ea Auto-generated configs and docs 2021-11-30 21:40:56 +00:00
GitHub set-date Action f59a983e82 Update date 2021-11-30 01:01:31 +00:00
Matthew Kennedy 565a94ea34 Remove the EFI_NO_CONFIG_WORKING_COPY option (#3630)
* no working copy

* oops
2021-11-29 16:44:45 -05:00
rusefillc 3cf4be3aa9 why so many channels are hidden in debug ? #3614 2021-11-29 14:11:19 -05:00
rusefillc 9cfd30a2b4 why so many channels are hidden in debug ? #3614 2021-11-29 11:54:55 -05:00
GitHub build-firmware Action 053aeb8569 Auto-generated configs and docs 2021-11-29 16:10:44 +00:00
rusefillc 194cd8ea11 why so many channels are hidden in debug ? #3614 2021-11-29 10:44:41 -05:00
rusefillc ffb35aeff7 why so many channels are hidden in debug ? #3614 2021-11-29 10:16:45 -05:00
rusefillc c198e2c649 why so many channels are hidden in debug ? #3614 2021-11-29 10:15:28 -05:00
rusefillc dc7303b8f1 why so many channels are hidden in debug ? #3614 2021-11-29 01:13:04 -05:00
rusefillc c64fb3f595 why so many channels are hidden in debug ? #3614 2021-11-29 01:02:40 -05:00
GitHub build-firmware Action 07c12b29e6 Auto-generated configs and docs 2021-11-29 05:41:48 +00:00
GitHub build-firmware Action aed5a3927c Auto-generated configs and docs 2021-11-29 04:25:09 +00:00
GitHub build-firmware Action aa10fdd333 Auto-generated configs and docs 2021-11-29 02:00:43 +00:00
GitHub set-date Action 194aa50c1c Update date 2021-11-29 01:03:05 +00:00
GitHub build-firmware Action 016cdeca73 Auto-generated configs and docs 2021-11-28 23:53:55 +00: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
GitHub build-firmware Action 12711fff71 Auto-generated configs and docs 2021-11-28 21:41:29 +00:00
GitHub build-firmware Action 4ced603941 Auto-generated configs and docs 2021-11-28 21:26:05 +00:00
GitHub build-firmware Action 4593c7d8cc Auto-generated configs and docs 2021-11-28 20:53:00 +00: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
GitHub build-firmware Action 78daf458da Auto-generated configs and docs 2021-11-28 19:18:32 +00:00
GitHub build-firmware Action a685daad60 Auto-generated configs and docs 2021-11-28 18:22:48 +00: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
GitHub build-firmware Action bdd77f971b Auto-generated configs and docs 2021-11-27 23:40:21 +00:00
GitHub build-firmware Action 1e3bc0464c Auto-generated configs and docs 2021-11-27 19:21:04 +00: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
GitHub build-firmware Action dc820c0b4a Auto-generated configs and docs 2021-11-27 17:44:20 +00:00
GitHub build-firmware Action 1edbb8d29e Auto-generated configs and docs 2021-11-27 16:00:49 +00: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
GitHub build-firmware Action efa5e66815 Auto-generated configs and docs 2021-11-27 06:02:00 +00:00
GitHub build-firmware Action 5b461e82fb Auto-generated configs and docs 2021-11-27 03:40:13 +00: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
Matthew Kennedy dc7fe111bf strtof (#3623)
* strtof

* do fewer divides
2021-11-26 18:39:45 -05:00
rusefillc 6339689385 first edition 2021-11-26 16:02:21 -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
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
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
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 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
GitHub build-firmware Action 10affa60db Auto-generated configs and docs 2021-11-20 04:16:43 +00:00
Scott Smith 07d30285fc Basic framework for high pressure fuel pump control (#3476)
* Basic framework for high pressure fuel pump control

* Many changes

Move calculations to fast callback
Move main object into Engine
Respond to pin changes without requiring a reboot

* Use EngineModule for HpfpController
Schedule pin off after executing pin on so we are sure it ends, even if the motor stops.
Test scheduling.
Less RAM use by only having one event and reordering fields.

* Make scheduling test actually useful - need non-0 activation angle.

Co-authored-by: rusefillc <48498823+rusefillc@users.noreply.github.com>
2021-11-19 23:06:51 -05:00
GitHub build-firmware Action f6730e32fe Auto-generated configs and docs 2021-11-20 03:34:23 +00:00
Matthew Kennedy e7956a53f6 fuel pump doesn't use fsio (#3576)
* 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
2021-11-19 22:23:12 -05:00
GitHub set-date Action d0f92574a9 Update date 2021-11-20 00:59:29 +00:00
GitHub build-firmware Action a3b9af0951 Auto-generated configs and docs 2021-11-19 12:08:29 +00:00
rusefillc c441d7dd89 debug mode for skipped count for 4 cylinders #3570 2021-11-19 07:02:21 -05:00
Matthew Kennedy 739be57ac8 fast exti interrupt handoff (#3497)
* fast exti

* test code snuck in

* full interrupt disable :(

* do it the old fashioned way

* enable interrupt

* consume stored timestamp

* dead

* h7 maybe

* guard maybe

* non-stm32

* exti 16 wrong on f4/f7

* CORTEX_MAXIMUM_PRIORITY

* safer but uglier

* s

* chibios

* no const

* initializers

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-19 06:37:52 -05:00
GitHub build-firmware Action 6dc1e4dfcc Auto-generated configs and docs 2021-11-19 09:16:06 +00:00
Matthew Kennedy a0a1b5e6a0 delimeter is not comma (#3533)
* delimeter is not comma

* do it in config txt

* use txt

* s

* string

* compat

* also, spelling is hard

* use new name

* use new name

* generate enough for happy console

* use an even less common character

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-19 12:01:45 +03:00
Matthew Kennedy 7dee1e42eb adjust miata sync conditions (#3577) 2021-11-19 02:30:05 -05:00
GitHub set-date Action 3f54533821 Update date 2021-11-19 01:01:05 +00:00
Scott Smith aba4e5167e Separate out scheduleOrQueue into it's own standalone scheduler. (#3573)
It's a large enough entity that it shouldn't be buried in ignition logic.
2021-11-18 14:27:21 -05:00
rusefillc 82ffcad01f proportional spark cut #3427 2021-11-17 23:35:26 -05:00
GitHub build-firmware Action dc73fe3404 Auto-generated configs and docs 2021-11-18 04:30:54 +00:00
Scott Smith b3e0b28c75 Make the module API more concise. (#3571)
engineModules.get<FOO>(). becomes modules<FOO>()->

I believe the new API is more conducive to supporting arrays, by doing std::array<T, N> or
std::array<Mockable<T>, N>, with the support of a helper class.
2021-11-17 21:50:00 -05:00
Scott Smith a5b0604880 Add a lock for scheduleOrQueue events. (#3572)
Ignition callers are all tooth based, but aux valves calls it from both the microsecond timer and
the main initialization thread.  HPFP will also soon call it from both those places too.
2021-11-18 05:08:32 +03:00
GitHub set-date Action 2dae11b443 Update date 2021-11-18 01:00:51 +00:00
Scott Smith 659cc68be1 Final cleanup of ENGINE macros (#3567)
Fix some uses of ENGINE() not detected by regex due to parenthesis.
Remove now empty engine_ptr.h
Don't worry about EFI_* not being defined, the compiler defaults to 0 if they aren't.
2021-11-17 13:45:10 -05:00
Scott Smith f9f13f0bad Create a base class EngineModule for that contains various useful callbacks. (#3548)
* Create a base class EngineModule for that contains various useful callbacks.

This cleans up the API by not requiring the notifiers to know about who wants callbacks.  The only
place you need to update to add a module is in one place.

* Add mockability.

* Convert InjectorModel to a Mockable EngineModule
2021-11-17 20:13:19 +03:00
rusefillc dfac1897e1 Startup Pin State Error - maybe hardware damage of STM32 pin connected to a 12v-powered TC4427? #3558 2021-11-17 04:45:55 -05:00
rusefillc 46d2b21ecc proportional spark cut #3427 2021-11-17 04:06:22 -05:00
Scott Smith 80091498a6 Programmatically replace ENGINE() and CONFIG() with engine-> etc (#3565)
git grep -l -w ENGINE | xargs sed -i -r "s/ENGINE\(([]a-zA-Z_0-9.[]+)\)/engine->\1/g"

git grep -l -w CONFIG | xargs sed -i -r "s/([^a-zA-Z_])CONFIG\(([]a-zA-Z_0-9.[]+)\)/\1engineConfiguration->\2/g"
2021-11-17 03:54:21 -05:00
Scott Smith 19f7fa8f89 Make engine* and friends be const pointers in production. (#3564)
This allows the compiler to see through the pointer and make accesses faster.
It saves 1336 bytes of text.
2021-11-17 03:53:17 -05:00
Scott Smith 14578ddae7 Remove a bunch of macros from engine_ptr.h (#3562) 2021-11-17 10:01:39 +03:00
GitHub set-date Action 05bef81735 Update date 2021-11-17 01:00:29 +00:00
Scott Smith dac2ae9b1d Programmatically remove EnginePtr/inject, EXPAND_Engine, and WITH_ENGINE_TEST_HELPER* (#3560)
* Programmatically remove EnginePtr/inject, EXPAND_Engine, and WITH_ENGINE_TEST_HELPER*

for i in ": public EnginePtr " ", public EnginePtr" "EXPAND_Engine;" "EXPAND_Engine"; do
    git grep -l "$i" | xargs sed -i "s/$i//g"
done

git grep -l "inject" | xargs sed -i "/inject[(][)]/d"

for i in WITH_ENGINE_TEST_HELPER_SENS WITH_ENGINE_TEST_HELPER_BOARD_CALLBACK WITH_ENGINE_TEST_HELPER; do
    git grep -l "$i" | xargs sed -i "s/$i/EngineTestHelper eth/g"
done

git checkout firmware/controllers/core/engine_ptr.h
git checkout unit_tests/global.h

* Review fixups.
2021-11-16 16:52:11 -05:00
rusefillc 774d96493e spelling 2021-11-16 16:46:54 -05:00
rusefillc 6fdb98e84f helping launch enter simulator 2021-11-16 16:45:14 -05:00
rusefillc ed1d24dbbe helping launch enter simulator 2021-11-16 16:31:35 -05:00
Andrey 1be12392c0 proportional spark cut #3427 2021-11-16 13:23:08 -05:00
Andrey c201b5b0ec proportional spark cut #3427 2021-11-16 05:56:15 -05:00
Matthew Kennedy 7296593448 remove engine pointer passing (#3556)
* some

* more

* more

* the last?!
2021-11-16 04:15:29 -05:00
Scott Smith 2cfc4af998 Start the process of using a global engine ptr for unit tests. (#3551)
* Start the process of using a global engine ptr for unit tests.

Passing around the engine, config, and persistent state wasn't buying anything.  Instead, use
EngineTestHelper(Base) to correctly set and clear the global variables.  Add a dummy check in
case some test tries to set them manually.

* Fix OSX build

* Adapt PR to recently added code.
2021-11-16 00:23:14 -05:00
Scott Smith c354d30a71 Use Valgrind to detect unitialized variable references. (#3555)
* Use Valgrind to detect unitialized variable references.

Fix the edge cases that pop up

* Comment and disable Mac run
2021-11-15 23:42:23 -05:00
GitHub build-firmware Action b477365e7c Auto-generated configs and docs 2021-11-16 02:53:15 +00:00
Andrey b545743f7d Not all launch control options are used #3554 2021-11-15 21:13:01 -05:00
Andrey 349d224b5f technical debt: enableOverdwellProtection #3553
only documentation
2021-11-15 20:32:25 -05:00
Andrey 7b790d36f6 random refactoring: trigger central encapsulation 2021-11-15 20:22:05 -05:00
Andrey 4bc9343d0b refactoring launch 2021-11-15 20:09:03 -05:00
Andrey 837cdf2cfb refactoring launch 2021-11-15 19:55:04 -05:00
Andrey 0a956d96b4 refactoring launch 2021-11-15 19:55:04 -05:00
Andrey c8b733ea6e refactoring launch 2021-11-15 19:34:42 -05:00
Andrey c41dccb5ff refactoring launch 2021-11-15 19:24:00 -05:00
Andrey bc3befd0ac refactoring launch 2021-11-15 18:57:12 -05:00
Andrey bafd5e0e17 refactoring launch 2021-11-15 14:40:35 -05:00
Matthew Kennedy c1941f3a49 (void) -> () (#3550)
* static functions with (void)

* more

* Revert "more"

This reverts commit 246e53441f935451437df186ac92d7df26b62fb6.

* s

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-15 13:02:34 +01:00
Matthew Kennedy bd04dc8352 less macro, more c++ (#3549)
* less macro

* s
2021-11-15 12:44:40 +01:00
GitHub build-firmware Action a29aa50cb0 Auto-generated configs and docs 2021-11-15 03:03:29 +00:00
rusefillc 8448b04078 MAP phase sensing #3544 2021-11-14 21:58:01 -05:00
GitHub build-firmware Action a7a89b74d5 Auto-generated configs and docs 2021-11-15 02:31:36 +00:00
rusefillc 9420c6d831 MAP phase sensing #3544 2021-11-14 21:24:59 -05:00
GitHub set-date Action b814015179 Update date 2021-11-15 01:00:10 +00:00
GitHub build-firmware Action ecf4a31095 Auto-generated configs and docs 2021-11-14 23:09:53 +00:00
rusefi 1f486a1e15 Lua: changing "table" API 2021-11-14 16:29:46 -05:00
rusefi 301bdf08a2 Something something Automatic Compression Release #3442 2021-11-14 16:04:44 -05:00
rusefillc 8cb1f2545c trigger refactoring & docs 2021-11-14 15:35:11 -05:00
Matthew Kennedy af78ab76cb math is fun (#3545)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-14 15:32:35 -05:00
rusefi 291f815b2d Something something Automatic Compression Release #3442 2021-11-14 15:04:10 -05:00
rusefi 924ae4b4a1 Epic: Remove FSIO #2928 2021-11-14 14:44:52 -05:00
GitHub build-firmware Action 98e2649f70 Auto-generated configs and docs 2021-11-14 19:42:17 +00:00
rusefi df4f122c0b Epic: Remove FSIO #2928 2021-11-14 14:14:43 -05:00
rusefillc 899a10c829 script settings need names! 2021-11-14 13:18:11 -05:00
GitHub build-firmware Action fde7fa93a1 Auto-generated configs and docs 2021-11-14 17:42:11 +00:00
GitHub build-firmware Action 33c12129a2 Auto-generated configs and docs 2021-11-14 16:51:07 +00:00
rusefillc a52a0a80c7 Epic: Remove FSIO #2928 2021-11-14 11:40:19 -05:00
rusefillc 1a3fb4a0db Epic: Remove FSIO #2928 2021-11-14 11:04:51 -05:00
rusefillc 3327b0d4e7 Epic: Remove FSIO #2928 2021-11-14 10:57:19 -05:00
GitHub build-firmware Action 41b9a37897 Auto-generated configs and docs 2021-11-14 15:53:06 +00:00
rusefillc 5f1aadf638 Epic: Remove FSIO #2928 2021-11-14 10:39:47 -05:00
GitHub build-firmware Action b223139c3b Auto-generated configs and docs 2021-11-14 15:07:50 +00:00
rusefi bdb6327ff9 Epic: Remove FSIO #2928 2021-11-14 09:49:02 -05:00
GitHub build-firmware Action 42c1db2109 Auto-generated configs and docs 2021-11-14 14:40:23 +00:00
GitHub build-firmware Action 756b9e2b3d Auto-generated configs and docs 2021-11-14 14:27:16 +00:00
rusefillc 8fd82af0cb Epic: Remove FSIO #2928 2021-11-14 08:37:50 -05:00
rusefillc 0fc4096213 Epic: Remove FSIO #2928 2021-11-14 08:33:19 -05:00
GitHub build-firmware Action 87202db62b Auto-generated configs and docs 2021-11-14 13:13:06 +00:00
rusefillc 94320910e9 Epic: Remove FSIO #2928 2021-11-14 07:30:26 -05:00