Commit Graph

71 Commits

Author SHA1 Message Date
Matthew Kennedy baf11a27b9 load lua libs correctly (#3529)
* fix lua lib loading

* test
2021-11-11 13:44:13 -05:00
rusefi 35f6ac4305 open q 2021-11-10 19:24:17 -05:00
rusefi 99a90309ef why is meat allowed to touch machine?! 2021-11-08 20:49:12 -05:00
Andrey 49d4dea65e lua pid class #3411 2021-11-07 09:53:40 -05:00
Andrey c98bfecf11 lua pid class #3411 2021-11-07 09:49:47 -05:00
Andrey 818e0057c9 lua curve progress 2021-11-05 16:08:48 -04:00
rusefillc 57dc9b36f4 lua curve progress 2021-11-05 10:34:12 -04:00
Andrey 52bd7a9cb7 lua interpolate 2021-11-02 23:35:48 -04:00
Andrey 8c11ab341e refatoring: splitting lua hooks into multiple files 2021-11-02 23:27:48 -04:00
rusefi 85dac3e931 Revert "lua can: one step back"
This reverts commit 3731496f
2021-10-29 16:32:41 -04:00
rusefi 3731496fb3 lua can: one step back 2021-10-29 13:14:42 -04:00
rusefillc 6a504e0755 Revert "lua pid class #3411"
This reverts commit 02bbe16170.
2021-10-28 23:41:23 -04:00
rusefillc 02bbe16170 lua pid class #3411 2021-10-28 23:35:53 -04:00
Matthew Kennedy 41b99b0593 make lua CAN happy (#3416)
* lua can tx

* index

* make rx match
2021-10-28 08:18:56 -04:00
Matthew Kennedy 7422de9391 Lua CAN rx data (#3414)
* rx data

* comments

* multi bus
2021-10-26 16:48:57 -04:00
Matthew Kennedy e7d66fd242 Lua CAN RX (#3403)
* wiring

* static

* implementation

* comment

* unit tests happy

* guard

* guard smarter, not harder

* guard smarter not harder

* guard even smarter, not even harder

* don't need that
2021-10-24 08:37:04 -04:00
rusefillc 73bec80f77 generate java enum from C enum? generate both C and java from yaml? #2102 2021-10-24 00:44:09 -04:00
rusefillc 6692ca7157 Lua: CAN receive integration? callback? #3320 2021-10-24 00:18:28 -04:00
Matthew Kennedy 4259c96809 lua can set sensors (#3389)
* add sensor unsubscribe

* sensor hook

* test it!

* virtual destructor makes us sad

* ensure deinit
2021-10-22 16:36:29 -04:00
Andrey 0e6a3e38ed findSensorTypeByName 2021-10-21 14:33:59 -04:00
Matthew Kennedy 0419e3489a per-MCU lua size (#3339)
* per-MCU lua size

* simulator happy
2021-10-09 09:02:30 -04:00
rusefi 67e7a1b6cf looks like a typo 2021-10-08 23:14:11 -04:00
rusefi ca7304131b luamemory does same but better 2021-10-08 14:48:16 -04:00
Matthew Kennedy dab377d15d getOrZero (#3319) 2021-10-05 19:59:07 -04:00
rusefillc 0cc58432c7 "luastats" command 2021-09-29 21:04:50 -04:00
rusefi 6c14bff659 luaaa revert by switching to a less messed up branch 2021-09-24 22:13:06 -04:00
rusefillc 51dce1a7bd fresh luaaa 2021-09-24 20:53:42 -04:00
rusefillc 8b70d957a3 more of LuaAdjustments 2021-09-24 00:34:06 -04:00
Matthew Kennedy bbe564560b lua hook for timing add (#3260)
* load script

* test

* needs more rams

* embiggen stack

* init system lua from lua thread

* de-embiggen stack

* infra

* hook

* system needs a little more

* semicolon

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-09-23 23:50:47 -04:00
Matthew Kennedy 4416b35820 system lua: load a script! (#3231)
* load script

* test

* needs more rams

* embiggen stack

* init system lua from lua thread

* de-embiggen stack

* system needs a little more

* memory

* om nom nom delicious memory

* how much more memory could it want

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-09-23 21:45:14 -04:00
rusefillc 3cacebd22d let's throw gas at the problem! 2021-09-18 17:48:01 -04:00
rusefillc aab05cec65 refactoring 2021-09-18 17:44:55 -04:00
Matthew Kennedy 98c4e71f03 enable address sanitizer (#3217)
* enable asan

* lua

* this is dead and leaky

* leaky nissan

* fix pwm generator use-after-stack

* initializers

* prevent problems in case of invalid trigger shape

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-09-05 05:56:59 -04:00
Matthew Kennedy 36d2c29667 start system lua VM (#3219)
* start system lua vm

* show used

* message

* null if script load fails
2021-09-04 07:57:58 -04:00
rusefillc 0b73150ea4 Lua timer (#3218)
* Lua: Timer class #3159

* Lua: Timer class #3159

* Lua: Timer class #3159

* Lua: Timer class #3159

* lua timer is happy (#3216)

* hooks are happy

* don't need that any more

* format

* update lib

* module

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
Co-authored-by: Matthew Kennedy <matthewkennedy@outlook.com>
2021-09-03 20:21:39 -04:00
Matthew Kennedy eeef1148d8 multiple lua heaps (#3215)
* multi lua heaps

* assert

* put it in a class

* put it in the class

* privacy
2021-09-03 03:45:23 -04:00
rusefillc 2bf4755105 my first Lua 2021-09-02 10:46:15 -04:00
rusefillc 1ac86f50a2 my first Lua 2021-09-01 07:47:50 -04:00
rusefillc cbdd36df92 my first Lua 2021-08-31 12:32:05 -04:00
rusefillc 0acd49da3b my first Lua 2021-08-31 11:37:43 -04:00
Andrey e6ac41f5ba my first Lua 2021-08-22 01:41:54 -04:00
Andrey 94fcb15506 my first Lua 2021-08-22 00:00:20 -04:00
Matthew Kennedy ec242f92de lua pass alloc and script (#3179)
* pass alloc and script

* pass in all the spots
2021-08-19 15:14:02 -04:00
Matthew Kennedy a02c8dc7c3 lua & fsio cleanup (#3175) 2021-08-18 15:25:46 -04:00
Matthew Kennedy 39388c75d8 even more pch (#3112)
* s

* more

* s

* f7
2021-08-04 19:30:52 -04:00
Matthew Kennedy 4e6b61234f yet more pch (#3068)
* big pch energy

* put back ramdisk stub

* tests are happy

* h743 nucleo

* kinetis

* I love deleting code!

* make stepper happy

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-08-03 22:05:01 -04:00
Matthew Kennedy d3ec2b21d1 Use pch in lots of files (#3066)
* most engine.h

* most engine_configuration

* more

* more

* more

* more

* more

* moooooore

* ok I'm done for now

* oops
2021-07-26 01:05:17 -04:00
Matthew Kennedy e3849b95d5 don't require EXTERN_ENGINE in every file (#2969)
* move enginePins

* no more extern engine

* uses

* more

* extern config too

* put this where it belongs

* include correct header

* merge
2021-07-16 18:13:33 -04:00
Matthew Kennedy 45d185b09d lua hooks for CAN tx (#2967)
* CanTxMessage usable from unit test

* testLuaReturnsNil

* CAN hook and tests

* it helps if parameter names exist

* nameless params

* s

* redefinition of default argument

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-07-16 14:06:26 -04:00
Matthew Kennedy b68469822e lua hooks for custom airmass model (#2697)
* lua airmass

* not const any more

* bad merge

* don't change the position of others

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-07-16 00:49:14 -04:00