Commit Graph

387 Commits

Author SHA1 Message Date
Andrey G 1ca5988877 time routines refactor (#4563)
* Extract time helpers from engine_controller_misc to efitime.cpp

* Rename currentTimeMillis() to getTimeNowMs()

We have getTimeNowNt(), getTimeNowUs(), currentTimeMillis() and getTimeNowSeconds()
Align a bit.

find . -type f -name '*.c*' -exec sed -i 's/currentTimeMillis/getTimeNowMs/g' {} \;

* Rename getTimeNowSeconds() to getTimeNowS()

To align with Nt, Us, Ms versions.

* Some comments about getTimeNowLowerNt()
2022-09-11 13:06:03 -04:00
GitHub gen-configs Action a81b18fa56 Auto-generated configs and docs 2022-09-09 22:00:10 +00:00
rusefillc b2ad515b0f vvtBooleanForVerySpecialCases, tempBooleanForVerySpecialLogic 2022-09-09 17:52:54 -04:00
GitHub gen-configs Action d71d8b127e Auto-generated configs and docs 2022-09-08 20:30:30 +00:00
GitHub gen-configs Action 218e8b4d95 Auto-generated configs and docs 2022-09-08 02:51:42 +00:00
Andrey 504d290275 B6 2022-09-07 15:36:50 -04:00
Andrey f243f1608c B6 2022-09-06 15:12:43 -04:00
Andrey 07c08947ba wow Leiderman-Khlystov 2022-09-05 20:02:33 -04:00
GitHub gen-configs Action 2135888d19 Auto-generated configs and docs 2022-09-05 05:33:14 +00:00
GitHub gen-configs Action aa87ad717f Auto-generated configs and docs 2022-09-05 02:56:42 +00:00
GitHub gen-configs Action 0a37c6d963 Auto-generated configs and docs 2022-09-05 02:44:56 +00:00
GitHub gen-configs Action abc5b91ae9 Auto-generated configs and docs 2022-09-03 21:43:03 +00:00
GitHub gen-configs Action 4857561a0d Auto-generated configs and docs 2022-09-03 21:35:26 +00:00
GitHub gen-configs Action f19c219587 Auto-generated configs and docs 2022-09-01 15:03:34 +00:00
Andrey 436c294770 refactoring: reducing outputChannels copy 2022-09-01 10:58:16 -04:00
GitHub gen-configs Action bac4f9800f Auto-generated configs and docs 2022-09-01 14:39:52 +00:00
GitHub gen-configs Action 8abba1b2fd Auto-generated configs and docs 2022-09-01 14:11:17 +00:00
GitHub gen-configs Action 9744fa0920 Auto-generated configs and docs 2022-09-01 04:53:05 +00:00
Andrey 54ac7279b1 refactoring: reducing outputChannels copy 2022-09-01 00:13:55 -04:00
GitHub gen-configs Action 29fede7a65 Auto-generated configs and docs 2022-08-31 23:10:02 +00:00
rusefillc 31214662dd XCP 2022-08-30 22:21:49 -04:00
GitHub gen-configs Action e37d53e271 Auto-generated configs and docs 2022-08-30 06:02:26 +00:00
GitHub gen-configs Action 69358f8eb0 Auto-generated configs and docs 2022-08-30 02:29:24 +00:00
rusefillc f1ed84f67a DBW 2022-08-29 10:59:39 -04:00
rusefillc c36167a3e1 DBW 2022-08-29 10:58:30 -04:00
rusefillc 7402b09201 DBW 2022-08-29 10:51:32 -04:00
rusefillc 4c8e28dfab docs 2022-08-29 10:51:32 -04:00
Matthew Kennedy 234909a91f remove some uses of EFI_ERROR_CODE (#4496)
* lua hooks

* findAngleMatch

* s

* s
2022-08-28 09:43:21 -04:00
GitHub gen-configs Action 470c44ba12 Auto-generated configs and docs 2022-08-27 18:44:44 +00:00
Andrey 756eae8f54 B6 progress 2022-08-26 12:07:13 -04:00
Andrey 077bdec25b refactoring 2022-08-26 00:16:36 -04:00
Andrey c17cc38470 refactoring 2022-08-26 00:14:52 -04:00
Andrey 45d8716fcc B6 progress 2022-08-26 00:04:47 -04:00
Andrey 777d0363f4 lua unit tests can print now 2022-08-26 00:04:17 -04:00
rusefillc 1ea6535b83 two bugs love to cancel each other 2022-08-25 23:55:42 -04:00
rusefillc 72c4637512 progress or maybe even a fix of logging? 2022-08-25 22:24:35 -04:00
GitHub gen-configs Action d0a734d4ae Auto-generated configs and docs 2022-08-26 01:48:46 +00:00
GitHub gen-configs Action d5811a698a Auto-generated configs and docs 2022-08-26 00:41:14 +00:00
Andrey 0b3478697a Lua code reuse 2022-08-25 10:45:26 -04:00
rusefillc aa9aa3fe64 readme 2022-08-24 18:52:23 -04:00
rusefi 8ebe5a9262 lua outputs bench test 2022-08-24 13:20:14 -04:00
GitHub gen-configs Action 991cd40f74 Auto-generated configs and docs 2022-08-23 23:50:32 +00:00
rusefi 27c1165560 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 b94195255c less violent error handling 2022-08-21 22:46:59 -04:00
rusefi 329edcddfc refactoring: magic constant 2022-08-21 22:46:49 -04:00
rusefi 3eeff9e388 Lua CAN bus index: let's fail if invalid value specified 2022-08-21 22:31:52 -04:00
rusefillc a3d2c1b997 refactoring 2022-08-21 21:53:01 -04:00
rusefillc 891a63bf2a https://en.wikipedia.org/wiki/Man-in-the-middle_attack 2022-08-21 16:28:09 -04:00
Andrey 2d4b944547 test coverage and some magic constant refactoring 2022-08-21 15:22:22 -04:00
rusefillc 083211c233 https://en.wikipedia.org/wiki/Man-in-the-middle_attack 2022-08-21 14:42:42 -04:00
rusefillc 38e3a84ec9 Idle air add via Lua fix #4465 2022-08-21 00:32:34 -04:00
GitHub gen-configs Action 74d93f9d11 Auto-generated configs and docs 2022-08-19 03:08:33 +00:00
rusefillc 5365ae5c2d ECU to Mainline DynoLog Data Protocol #4319 2022-08-14 11:28:17 -04:00
rusefillc 69d582a674 ECU to Mainline DynoLog Data Protocol #4319 2022-08-12 23:53:48 -04:00
rusefi 4290c66769 https://rusefi.com/forum/viewtopic.php?f=4&t=2325 2022-08-12 16:19:45 -04:00
rusefi 7055f32fd3 https://rusefi.com/forum/viewtopic.php?f=4&t=2325 2022-08-12 16:15:54 -04:00
GitHub build-firmware Action 471dedde04 Auto-generated configs and docs 2022-08-11 14:25:31 +00:00
GitHub build-firmware Action e838c2b5ff Auto-generated configs and docs 2022-08-09 20:28:25 +00:00
GitHub build-firmware Action 1215618e1b Auto-generated configs and docs 2022-08-09 17:31:12 +00:00
GitHub build-firmware Action 6e8c0f24d5 Auto-generated configs and docs 2022-08-09 16:53:48 +00:00
GitHub build-firmware Action 1b67195746 Auto-generated configs and docs 2022-08-07 22:13:09 +00:00
GitHub build-firmware Action 16926e0f95 Auto-generated configs and docs 2022-07-30 16:12:13 +00:00
GitHub build-firmware Action 7dafba1e70 Auto-generated configs and docs 2022-07-30 15:34:12 +00:00
GitHub build-firmware Action 578cb6936c Auto-generated configs and docs 2022-07-30 13:47:13 +00:00
rusefillc 88303319e1 it's impossible to receive AcceleratorPedal sensor via CAN/Lua #4369 2022-07-28 12:30:04 -04:00
rusefillc 35f9830cca it's impossible to receive AcceleratorPedal sensor via CAN/Lua #4369 2022-07-28 12:08:35 -04:00
GitHub build-firmware Action 17b306c375 Auto-generated configs and docs 2022-07-28 06:53:58 +00:00
Matthew Kennedy 8ec103a7f2 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 9f6ee5f359 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
rusefillc dc36538e57 thank you Mark we have humans asking for it 2022-07-22 16:04:43 -04:00
rusefillc a04251bfd9 thank you Mark we have humans asking for it 2022-07-22 15:57:18 -04:00
Matthew Kennedy efdae2322d Start -> start (#4366) 2022-07-21 15:17:32 -04:00
GitHub build-firmware Action 1cc1d56bcc Auto-generated configs and docs 2022-07-20 23:09:02 +00:00
GitHub build-firmware Action 2341028714 Auto-generated configs and docs 2022-07-20 22:52:33 +00:00
rusefillc 2d08d8ea28 Nissan Lua 2022-07-18 17:01:44 -04:00
GitHub build-firmware Action 267f356ef3 Auto-generated configs and docs 2022-07-16 06:38:35 +00:00
Matthew Kennedy cd98ad35c2 use libfirmware for a few things (#4351)
* use libfirmware

* unit tests

* crc

* missed one

* bootloader
2022-07-16 02:22:51 -04:00
rusefillc ae92cb1c70 launch control for autocross on micro rusefi #4341 2022-07-14 17:23:54 -04:00
rusefillc 0f303553c1 launch control for autocross on micro rusefi #4341 2022-07-14 17:19:30 -04:00
rusefillc e91d72bba5 launch control for autocross on micro rusefi #4341 2022-07-14 16:41:50 -04:00
rusefillc 604a3f4ba2 launch controll for autocross on micro rusefi #4341 2022-07-14 16:20:03 -04:00
rusefillc 3079ab9bae https://rusefi.com/forum/viewtopic.php?p=43183#p43183 2022-07-14 15:45:33 -04:00
rusefillc 4ba73d1679 Detail on how to set up iDrive or equivalent CAN button control #226
boost lua
2022-07-14 14:04:21 -04:00
rusefillc 456d52e1fe Detail on how to set up iDrive or equivalent CAN button control #226
boost lua
2022-07-14 13:03:08 -04:00
rusefillc 9e8bfe92d8 #4308 progress 2022-07-14 12:36:55 -04:00
GitHub build-firmware Action ccd01302fe Auto-generated configs and docs 2022-07-14 12:08:23 +00:00
rusefillc 133ab5618b FSIO is dead 2022-07-14 07:52:58 -04:00
rusefillc 52af5fa05a refactoring - lambda for readbility 2022-07-14 07:27:58 -04:00
Matthew Kennedy 3c88dda538 Add a timeout for Lua ETB adjustment (#4331)
* lua etb timeout

* mocks

* test
2022-07-10 05:46:28 +03:00
rusefillc 71a30d5f75 docs 2022-07-09 03:00:14 -04:00
GitHub build-firmware Action 575a0b3d5d Auto-generated configs and docs 2022-07-08 14:11:38 +00:00
rusefillc db3f92edf4 Lua A/C Input #4333 2022-07-08 00:51:53 -04:00
Matthew Kennedy 16a39badff Error handling cleanup (#4332)
* dead code in stm32

* rusefi.cpp can have some noreturn

* handle lua panic

* unused error codes

* simplifications of error_handling.cpp

* comment

* put that back

* guard
2022-07-07 23:49:02 -04:00
Matthew Kennedy 68fb838641 Lua hooks for gear detection (#4328)
* implement

* sim has vss

* write a test

* guard
2022-07-07 23:16:56 -04:00
rusefillc b84a0bdf98 fix lua CAN RX of 11b frames #4321 2022-07-05 13:40:02 -04:00
Matthew Kennedy e50eaee90f fix lua CAN RX of 11b frames (#4321)
* s

* loggy the change
2022-07-05 13:37:31 -04:00
rusefillc 7a521df1f0 https://rusefi.com/forum/viewtopic.php?f=4&t=2329 2022-07-03 09:51:49 -04:00
rusefillc 129e4df5bf Uniform reset pattern for all Lua adjustments #4308
no progress only preparation
2022-06-30 20:07:27 -04:00
rusefillc f24c42c605 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
GitHub build-firmware Action 3379a8f7d8 Auto-generated configs and docs 2022-06-29 22:52:53 +00:00