Commit Graph

190 Commits

Author SHA1 Message Date
rusefi d9a4ef2490 Startpwm is broken fix #5502 2023-08-08 21:10:13 -04:00
rusefillc 9febfc7070 startPwm should not FATAL fix #5497 2023-08-07 23:32:52 -04:00
Andreika 8b9955dc67
lua getAuxDigital() #4861 (#5400)
* lua getAuxDigital() #4861

* fix

* fix simulator
2023-07-09 14:41:57 -04:00
rusefillc 9395f6c794
no output lookup in unit tests (#5381)
* no output lookup in unit tests

* only get outputs in non-test land

---------

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
Co-authored-by: Matthew Kennedy <matthewkennedy@outlook.com>
2023-07-03 10:27:36 -04:00
Andrey 8ca776d3e0 only:proteus_f7
setConfigValueByName into text console
2023-06-27 15:05:15 -04:00
Andrey f20b22fa81 only:small-can-board 2023-06-22 14:45:32 -05:00
rusefillc 04c954bbb8 better error handling 2023-05-30 20:09:48 -04:00
Andrey 902c61f9d8 setSparkSkipRatio limitation #5231 2023-05-25 13:26:17 -04:00
Matthew Kennedy 4b43aa5142 missed a spot
(cherry picked from commit a03d9ad3c92d4d85b57910d514e531fdea0e8fb5)
2023-05-16 13:02:49 -04:00
Matthew Kennedy 4e7e25585e gear detection in to the sensor model
(cherry picked from commit 82794403f86023d36a211e349ca2ff530eb2eb3c)
2023-04-30 10:54:38 -04:00
rusefi f3279c108e proteus F7 QC build is broken #5242 2023-04-19 22:09:57 -04:00
Matthew Kennedy 12c899ddca
wideband on second can (#5108) 2023-02-20 11:29:25 -05:00
rusefillc a19a7120df https://rusefi.com/forum/viewtopic.php?f=2&t=2484 luaIgnCut 2023-01-02 18:06:38 -05:00
rusefillc 904a4ee823 getGlobalConfigurationVersion 2022-12-20 21:13:34 -05:00
rusefillc 74e8291327 Add setBoostDutyAdd function to control only boost duty #4900 2022-12-19 12:05:06 -05:00
Andrey 748f97afeb kinetis asking for guard, also I've must have messed up something 2022-12-17 18:04:54 -05:00
rusefillc 18165e4b02 guards 2022-12-17 14:36:27 -05:00
Matthew Kennedy 8ea5969607
fix warnings (#4840)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-11-27 10:11:14 -05:00
rusefi 596fe6b64a minor clean-up 2022-11-26 21:53:31 -05:00
Andrey Gusakov caebd674ea LUA/SENT: hook to get RAW sig0 and sig1 (WIP)
TODO: how to return two (N) values from LUA hook?
2022-11-17 16:17:27 -05:00
rusefi 2c2429854b copy-paste bad 2022-11-15 12:28:31 -05:00
rusefillc 9f88281566 would need to stop the buzzing at PRI. 2022-11-15 11:01:56 -05:00
rusefi 9ccb0ccb0c https://rusefi.com/forum/viewtopic.php?p=46603#p46603
calling 'setTimeout' on bad self (cpp class not export)
2022-11-06 20:09:01 -05:00
rusefillc 074c6840dd Lua to enable self stimulation #4712 2022-10-29 21:26:42 -04:00
rusefillc 92e6ffbc8d Lua to enable self stimulation #4712 2022-10-28 19:52:16 -04:00
rusefillc 9efd9aaa15 minor move of code around 2022-10-28 19:31:17 -04:00
rusefi f5abf3059a GM SENT ETB bench test in NJ #4688 2022-10-26 17:33:10 -04:00
rusefillc 8209e4da69 GM SENT ETB bench test in NJ #4688 2022-10-26 12:46:50 -04:00
rusefi ae7191eeff GM SENT ETB bench test in NJ #4688 2022-10-26 12:17:14 -04:00
rusefi 28558eaf7a GM SENT ETB bench test in NJ #4688 2022-10-26 09:29:04 -04:00
Andrey G afa0bd92e8
SENT glue to LUA (#4700)
* use tabs

* SENT: Lua glue: getSentValue returns ETB position now

Can be tested with following LUA script:
setTickRate(100)
function onTick()
	pos = getSentValue(1)
	setLuaGauge(1, 10000 * pos)
	print(pos)
end
2022-10-26 06:42:14 -04:00
rusefi 6e24020ab5 GM ETB bench test in NJ #4688
SENT to Lua integration
2022-10-22 22:46:37 -04:00
rusefillc 2eba65505b Lua aux gauge #4672 2022-10-17 20:01:46 -04:00
rusefillc 9f8aa66a9a Mark is asking for VIN number field fix #3967 2022-10-05 18:26:12 -04:00
Andrey 83afa58baf Mark is asking for VIN number field #3967 2022-10-04 21:12:51 -04:00
rusefillc a9b149c262 moving confusing around 2022-09-19 12:32:45 -04:00
Matthew Kennedy b662e59707
remove some uses of EFI_ERROR_CODE (#4496)
* lua hooks

* findAngleMatch

* s

* s
2022-08-28 09:43:21 -04:00
rusefillc 67055c69bf progress or maybe even a fix of logging? 2022-08-25 22:24:35 -04:00
rusefi eb976de07d lua outputs bench test 2022-08-24 13:20:14 -04:00
rusefi 755f9926ea canRxAdd bus does not convert from Lua/human value into zero-indexed implementation value fix #4467 2022-08-21 23:48:10 -04:00
rusefi 7f84657aac refactoring: magic constant 2022-08-21 22:46:49 -04:00
Andrey 35a71f8960 test coverage and some magic constant refactoring 2022-08-21 15:22:22 -04:00
rusefillc 6d634e3c6a Idle air add via Lua fix #4465 2022-08-21 00:32:34 -04:00
Matthew Kennedy ada1ba6b56
Lua rx callback (#4387)
* s

* mask, callback

* support 8 different signatures

* make the compiler happy about unrechable code

* s

* make the compiler happy about unreachable code

* guard

* changelog
2022-07-28 09:27:18 +03:00
Matthew Kennedy 41318e0f9d
detect bad Lua sensor name when registering (#4391)
* format

* lua error on bad sensor

* comment

* name validation

* soft check before the hard check causes a fatal error

* s
2022-07-27 12:41:21 +03:00
Matthew Kennedy a0d8ae3f4f
use libfirmware for a few things (#4351)
* use libfirmware

* unit tests

* crc

* missed one

* bootloader
2022-07-16 02:22:51 -04:00
rusefillc b7cfa4e702 launch control for autocross on micro rusefi #4341 2022-07-14 16:41:50 -04:00
rusefillc 975329fcc7 Detail on how to set up iDrive or equivalent CAN button control #226
boost lua
2022-07-14 14:04:21 -04:00
rusefillc 39df02fe35 Detail on how to set up iDrive or equivalent CAN button control #226
boost lua
2022-07-14 13:03:08 -04:00
rusefillc 55ffb45934 FSIO is dead 2022-07-14 07:52:58 -04:00
rusefillc 094db00bfb refactoring - lambda for readbility 2022-07-14 07:27:58 -04:00
Matthew Kennedy 8bc01472b7
Add a timeout for Lua ETB adjustment (#4331)
* lua etb timeout

* mocks

* test
2022-07-10 05:46:28 +03:00
rusefillc d55e07e397 docs 2022-07-09 03:00:14 -04:00
rusefillc 67ec949eb6 Lua A/C Input #4333 2022-07-08 00:51:53 -04:00
Matthew Kennedy 3c062e02bc
Lua hooks for gear detection (#4328)
* implement

* sim has vss

* write a test

* guard
2022-07-07 23:16:56 -04:00
rusefillc 82131e5572 Uniform reset pattern for all Lua adjustments #4308
no progress only preparation
2022-06-30 20:07:27 -04:00
rusefillc 483395fa2e
https://github.com/rusefi/rusefi_documentation/issues/226 (#4306)
* https://github.com/rusefi/rusefi_documentation/issues/226

* https://github.com/rusefi/rusefi_documentation/issues/226

* https://github.com/rusefi/rusefi_documentation/issues/226

* https://github.com/rusefi/rusefi_documentation/issues/226

* https://github.com/rusefi/rusefi_documentation/issues/226

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-06-29 23:34:00 -04:00
rusefillc f7ecebaa64 logging of live data structs was: data points #3614 2022-06-29 02:37:24 -04:00
rusefillc 683a723d2f
CAN category (#4148)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-05-09 16:49:23 -04:00
rusefillc 2132cec3fc Remove value copy from controller into outputChannels #4095 2022-05-09 06:12:17 -04:00
Matthew Kennedy e4a0979dc2
Brain pin is enum class (#4108)
* change most usages to Gpio::

* board configs

* engine configs etc

* isBrainPinValid, smart gpio

* generator

* generator

* generator

* connector yamls

* kinetis enums

* cypress txt

* kinetis config

* frankenso

* config generator

* actually do it for the others

* disable skips for pr ci

* fix tle8888

* misc

* weird cast from int

* needs this operator too

* this can be an unsigned subtract

* happy tests

* s

* kinetis isConfigurationChanged weirdness

* missed J/K

* cypress efifeatures

* build script mistake (!)

* mistake in smart gpio

* debounce

* eg33

* kinetis, so needy

* it's pretty green, we can skip these again
2022-04-28 17:32:39 -04:00
rusefillc 82f608d558 one step sideways to fix build 2022-04-16 21:24:02 -04:00
rusefillc 08c50cc1dd logging of live data structs was: data points #3614
progress
2022-04-16 21:04:02 -04:00
rusefillc 0b21ddce9c random progress 2022-04-16 16:39:52 -04:00
rusefillc b5ff552946 Air Conditioning Improvements #4054 2022-04-09 01:23:00 -04:00
rusefillc ed6ed0d93e Air Conditioning Improvements #4054 2022-04-08 21:28:50 -04:00
rusefi 998cba5521 EFI_LAUNCH_CONTROL clean-up 2022-02-06 18:46:09 -05:00
Matthew Kennedy c6f45c5022
warnings fixes (#3851)
* unused things

* !!! actual bug !!!

* dead

* unused

* unused

* multi-bus lua RX was just broken

* make the compiler angry about it

* dead config

* alphax 2

* just call, no store

* compiler too angry
2022-01-31 18:37:42 -05:00
rusefillc e9742b8c24 Better handling of RPM during stop of cranking #3803
one step back
2022-01-17 21:43:30 -05:00
Andrey 9f5188bf30 Better handling of RPM during stop of cranking #3803 2022-01-17 21:27:10 -05:00
rusefillc cc115d651f LUA read ECU state: Cranking, Idling, Cruising #3742 2022-01-04 23:17:26 -05:00
rusefillc c66dcaf454 LUA read ECU state: Cranking, Idling, Cruising #3742 2022-01-04 23:15:03 -05:00
rusefillc 4ad1f887fd Second CAN #3687 2021-12-21 01:10:37 -05:00
rusefillc 99d19f2d78 clutch input via CAN fix #3605 2021-12-15 20:35:49 -05:00
rusefillc 86506a15a9 clutch input via CAN #3605 2021-12-15 20:11:23 -05:00
rusefillc 0937499708 Lua to read tsOutputs #3376 2021-12-15 13:25:09 -05:00
rusefillc 5bdf25c3f8 Lua to read tsOutputs #3376 2021-12-14 23:16:05 -05:00
rusefillc 265239ab4d Lua to read tsOutputs #3376 2021-12-13 19:46:41 -05:00
rusefillc aa3d1db05e rusEFI console ISO-TP via PCAN #3667
fixing build
2021-12-08 15:42:00 -05:00
Andrey 940b04ab24 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 b778aa7173 Pause CAN broadcast on engine stop #3665 2021-12-07 10:35:52 -05:00
rusefillc f4ab23eb2b Requesting LUA Torque intervention #3638 2021-12-02 01:02:56 -05:00
rusefillc 56d52f01be refactoring 2021-12-01 23:33:26 -05:00
rusefillc 42da5746f4 j1850 SAE crc8 Lua 2021-11-22 14:19:19 -05:00
Scott Smith 823d9a07e0
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
Andrey a61043e570 proportional spark cut #3427 2021-11-16 13:23:08 -05:00
Matthew Kennedy 8cdac4cac0
remove engine pointer passing (#3556)
* some

* more

* more

* the last?!
2021-11-16 04:15:29 -05:00
Scott Smith 344c9073e2
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
rusefi c8d666c5a1 Lua: changing "table" API 2021-11-14 16:29:46 -05:00
rusefi 377c9e2fda Something something Automatic Compression Release #3442 2021-11-14 16:04:44 -05:00
rusefi e8aebc313a Something something Automatic Compression Release #3442 2021-11-14 15:04:10 -05:00
rusefillc 14c0711011 script settings need names! 2021-11-14 13:18:11 -05:00
rusefillc 22c872d8d8 Epic: Remove FSIO #2928 2021-11-14 10:57:19 -05:00
rusefillc c22215cea7 Epic: Remove FSIO #2928 2021-11-14 10:39:47 -05:00
rusefi 676f2dfb93 findTableIndex 2021-11-13 10:02:01 -05:00
rusefillc 6be84c0de9 lua can 2021-11-13 08:23:44 -05:00
rusefillc 8fdf2521e5 lua can 2021-11-13 08:20:30 -05:00
rusefillc e662544919 lua can 2021-11-13 04:44:17 -05:00
Matthew Kennedy 73b05d2e20
lua pid class (#3411)
* lua pid

* no luaaa stl

* update luaaa

* finality

* luaaa

* luaaa

* = default

* bad merge

* gitmodules

* lua

* proteus demo script

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-13 03:18:16 -05:00
Matthew Kennedy a831bec797
update luaaa (#3540)
* lua update

* no stdlib mode

* turn off system luaaa for now since it makes luaaa sad

* let user heap do a little

* gitmodules

* memory shuffling

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-12 22:10:05 -05:00