Commit Graph

974 Commits

Author SHA1 Message Date
rusefillc bbb6350f52 /*isEndOfPacket*/ 2022-10-16 01:21:44 -04:00
GitHub gen-configs Action 3396704f74 Auto-generated configs and docs 2022-10-13 00:07:37 +00:00
rusefillc 6746c5454d allow SD logging of int #4658
workaround?
2022-10-12 20:02:23 -04:00
rusefillc 3aa3144e95 allow SD logging of int #4658
wordaround?
2022-10-12 19:49:07 -04:00
rusefillc 6827da1bd5 SD card log fields list should be auto-generated #3985 2022-10-11 21:28:01 -04:00
GitHub gen-configs Action 937c2920da Auto-generated configs and docs 2022-10-12 01:03:24 +00:00
Matthew Kennedy d74ae44b30 allow SD logging non-scaled_channel (#4657)
* allow SD logging non-scaled_channel

* comments and kick ci
2022-10-11 20:58:43 -04:00
GitHub gen-configs Action 1efad41754 Auto-generated configs and docs 2022-10-11 03:03:43 +00:00
rusefillc e2e07a2141 SD card log fields list should be auto-generated #3985 2022-10-10 22:58:17 -04:00
rusefillc 009d9dbe49 SD card log fields list should be auto-generated #3985 2022-10-10 22:58:17 -04:00
rusefillc 9a8f8d3110 SD card log fields list should be auto-generated #3985 2022-10-10 22:40:43 -04:00
GitHub gen-configs Action dad970ae62 Auto-generated configs and docs 2022-10-11 01:56:08 +00:00
rusefillc eb3c3c19d6 SD card log fields list should be auto-generated #3985 2022-10-10 21:50:49 -04:00
rusefillc e00d4a819a SD card log fields list should be auto-generated #3985 2022-10-10 21:25:35 -04:00
GitHub gen-configs Action 1662653d6e Auto-generated configs and docs 2022-10-09 21:44:59 +00:00
rusefillc a57cc9ff60 one odd name 2022-10-09 16:16:30 -04:00
GitHub gen-configs Action 0be046c221 Auto-generated configs and docs 2022-10-06 23:00:58 +00:00
rusefillc fa0b07bf20 startStopStateToggleCounter to live data 2022-10-06 18:55:29 -04:00
Andrey G 06638a5993 Bluetooth hang (#4632)
* tunerstudio: send BT disconnect notifications only for BT channel

* bluetooth: btProcessIsRunning duplicates btProcessIsStarted

* bluetooth: some comments

* bluetooth: no need to call chThdExit(), just exit thread function

* bluetooth: avoid possible race conditions: set flag first

* bluetooth: make "bluetooth_cancel" do something
2022-10-03 08:51:19 -04:00
rusefillc 35bf947f06 insist on setBoardConfigOverrides fix #4614 (#4615)
* insist on setBoardConfigOverrides fix #4614

* insist on setBoardConfigOverrides fix #4614

* insist on setBoardConfigOverrides fix #4614

* insist on setBoardConfigOverrides fix #4614

* insist on setBoardConfigOverrides fix #4614
2022-09-24 07:35:19 -04:00
GitHub gen-configs Action d5dd3f5df4 Auto-generated configs and docs 2022-09-20 02:05:56 +00:00
Matthew Kennedy e737141a6f add fuel/spark cut codes to TS indicators (#4592)
* add fuel/spark cut codes to TS indicators

* fix list

* only set clearReason if not cleared
2022-09-19 22:01:03 -04:00
Andrey G b285269f74 console: bluetooth: check if BT port exist before configuring (#4588) 2022-09-18 16:15:50 -04:00
GitHub gen-configs Action 7aba987cdd Auto-generated configs and docs 2022-09-17 00:16:59 +00:00
Matthew Kennedy 4106704385 add ignition adder tables (#4586)
* ign blend tables

* tweaks

* iterate

* tweaks

* axis values

* changelog
2022-09-16 20:07:04 -04:00
GitHub gen-configs Action 2dbc98588e Auto-generated configs and docs 2022-09-15 19:00:51 +00:00
rusefillc 672f0b8acc mapFast into logs 2022-09-15 14:55:49 -04:00
rusefillc 6e3bbd2ca2 dead idea 2022-09-15 14:55:32 -04:00
Andrey 1d0f13fc41 deep rabbit holes are the best ones!
refactoring: encapsulation
2022-09-14 02:17:04 -04:00
GitHub gen-configs Action c88a18b13e Auto-generated configs and docs 2022-09-14 04:39:50 +00:00
rusefillc f97c5ed8fd i suspect that no one cares about these 2022-09-14 00:34:04 -04:00
GitHub gen-configs Action 273314bdf2 Auto-generated configs and docs 2022-09-13 18:12:48 +00:00
Matthew Kennedy 3358cdab11 resurrect EFI_CLOCK_LOCKS (#4572)
* resurrect EFI_CLOCK_LOCKS

* missing extern

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-09-13 14:07:25 -04:00
rusefillc 474b705c5e outputRequestPeriod into logs 2022-09-12 21:41:23 -04:00
rusefillc 228437f574 outputRequestPeriod into logs 2022-09-12 20:56:57 -04:00
GitHub gen-configs Action 04db1fbb36 Auto-generated configs and docs 2022-09-13 00:18:15 +00:00
rusefillc 0618824061 outputRequestPeriod into logs 2022-09-12 20:13:17 -04:00
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
rusefillc efcd8ea084 refactoring - reducing API between FW and Java 2022-09-11 01:59:44 -04:00
GitHub gen-configs Action 218e8b4d95 Auto-generated configs and docs 2022-09-08 02:51:42 +00:00
Andrey a35f20af78 remove alternator on/off mode fix #4548 2022-09-07 22:46:42 -04:00
Andrey a7c8ce61f4 brutal encapsulation 2022-09-07 19:37:11 -04:00
Andrey 25b6d39802 os_access.h dead? 2022-09-07 15:56:45 -04:00
Matthew Kennedy 3112fc25de safer/clearer index management (#4543) 2022-09-06 19:19:16 -04:00
GitHub gen-configs Action 2135888d19 Auto-generated configs and docs 2022-09-05 05:33:14 +00:00
Andrey 79139e30fc Engine Sniffer into TS data logs #4535 2022-09-05 01:25:12 -04:00
Andrey e9e040895b different file names for different entities 2022-09-04 23:11:19 -04:00
GitHub gen-configs Action aa87ad717f Auto-generated configs and docs 2022-09-05 02:56:42 +00:00
Andrey 6b6ca6c987 refactoring: reducing outputChannels copy 2022-09-04 22:51:11 -04:00
GitHub gen-configs Action 0a37c6d963 Auto-generated configs and docs 2022-09-05 02:44:56 +00:00
Andrey 8fd5e46472 refactoring: reducing outputChannels copy 2022-09-04 22:38:05 -04:00
GitHub gen-configs Action abc5b91ae9 Auto-generated configs and docs 2022-09-03 21:43:03 +00:00
rusefi 6b0f1c579a refactoring: reducing outputChannels copy 2022-09-03 17:38:06 -04:00
GitHub gen-configs Action 4857561a0d Auto-generated configs and docs 2022-09-03 21:35:26 +00:00
Andrey f008a98b94 refactoring: reducing outputChannels copy 2022-09-03 17:12:47 -04:00
Andrey 05e851c138 tear down Engine god object #4511
just trying different things
2022-09-01 19:24:19 -04: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
Andrey 09f0a540b6 refactoring: reducing outputChannels copy 2022-09-01 10:30:07 -04:00
GitHub gen-configs Action 8abba1b2fd Auto-generated configs and docs 2022-09-01 14:11:17 +00:00
Andrey 5cb41535d5 smaller step forward 2022-09-01 10:06:00 -04:00
GitHub gen-configs Action 9744fa0920 Auto-generated configs and docs 2022-09-01 04:53:05 +00:00
Andrey bc407d7749 54ac7279b1 partial rollback 2022-09-01 00:46:54 -04:00
GitHub gen-configs Action 9c2bb7e7e6 Auto-generated configs and docs 2022-09-01 04:18:59 +00:00
Andrey 54ac7279b1 refactoring: reducing outputChannels copy 2022-09-01 00:13:55 -04:00
Andrey 6a5e3bc078 currentEngineDecodedPhase as trigger central field 2022-08-31 23:31:35 -04:00
GitHub gen-configs Action 470c44ba12 Auto-generated configs and docs 2022-08-27 18:44:44 +00:00
Andrey G aefea6d3ff output channels: isFuelPumpOn vs isPumpOn, remove second one (#4490) 2022-08-27 14:28:33 -04:00
GitHub gen-configs Action d5811a698a Auto-generated configs and docs 2022-08-26 00:41:14 +00:00
Matthew Kennedy f3a5c28f07 fix typo, move bit to idle state (#4484) 2022-08-25 20:26:12 -04:00
Matthew Kennedy dfd340e8c3 log the state of hasSynchronizedPhase() (#4478)
* s

* log whether we've synced phase

* trigger_state_primary

* need that file

* engine state is not the right spot
2022-08-24 18:11:05 -04:00
rusefillc ec9a705cf6 docs 2022-08-23 22:25:08 -04:00
GitHub gen-configs Action 991cd40f74 Auto-generated configs and docs 2022-08-23 23:50:32 +00:00
Matthew Kennedy 58e27505db log missed exti events (#4473)
* log missed exti events

* units

* s

* guard

* stub for non stm32
2022-08-23 19:45:28 -04:00
GitHub gen-configs Action 26e81a4647 Auto-generated configs and docs 2022-08-23 04:19:39 +00:00
GitHub gen-configs Action 3897340735 Auto-generated configs and docs 2022-08-23 03:11:55 +00:00
GitHub gen-configs Action 437f10bcbd Auto-generated configs and docs 2022-08-23 02:57:26 +00:00
GitHub gen-configs Action 4b6abf9557 Auto-generated configs and docs 2022-08-22 22:23:05 +00:00
GitHub gen-configs Action 911a6c5f0c Auto-generated configs and docs 2022-08-17 04:30:35 +00:00
rusefillc 2aabef68c9 Struct array for outputs #4442 (#4453)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-08-17 00:25:55 -04:00
rusefillc bb21977556 invalid ini fix #4451 2022-08-16 22:24:02 -04:00
GitHub build-firmware Action 72ead5be96 Auto-generated configs and docs 2022-08-15 21:22:59 +00:00
Andrey 6f47772e6b Revert "A safe place where stuff is consistent (#4444)"
This reverts commit b4eb56c7b4.
2022-08-15 17:05:40 -04:00
GitHub build-firmware Action 006190aa15 Auto-generated configs and docs 2022-08-15 19:03:46 +00:00
GitHub build-firmware Action 9a5808c53e Auto-generated configs and docs 2022-08-15 18:43:52 +00:00
rusefillc b4eb56c7b4 A safe place where stuff is consistent (#4444)
* We have to move either forward or backwards with newparse #4441

only spot where newparse was used for real?

* We have to move either forward or backwards with newparse #4441

.jar

* Struct array for outputs #4442

* Struct array for outputs #4442

* Struct array for outputs #4442

making kinetis happy :(

* VVT target to allow negative values #4424

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-08-15 14:26:51 -04:00
GitHub build-firmware Action ec8639d188 Auto-generated configs and docs 2022-08-15 17:10:30 +00:00
rusefillc 18f1197d58 Struct array for outputs #4442
rear padding too small for current addition, we shall expand for future additions
2022-08-15 13:05:21 -04:00
GitHub build-firmware Action 471dedde04 Auto-generated configs and docs 2022-08-11 14:25:31 +00:00
rusefillc 5f896cf00f https://github.com/rusefi/alphax-4chan/issues/57 2022-08-11 10:08:51 -04:00
rusefi bfa13ddce7 ISO-TP does not work on real car #4427
verboseIsoTp
2022-08-11 01:23:44 -04:00
rusefi 39200f55eb ISO-TP does not work on real car #4427
oh shit :(
2022-08-11 00:37:48 -04:00
rusefillc bf15c5bc8a ISO-TP does not work on real car #4427 2022-08-09 13:12:51 -04:00
Matthew Kennedy eb442998dc misc fixes (#4411)
* fix warnings

* break to debugger in case of panic

* move the check

* s
2022-08-02 12:19:50 -04:00
rusefillc e19b61aa5b [SECURITY] Cheap password protection against tune modification fix #4243 2022-07-30 12:23:53 -04:00
rusefillc db26a35209 refactoring 2022-07-30 12:07:36 -04:00
rusefillc 39aebf27d0 dead code? 2022-07-30 11:53:20 -04:00
rusefillc a47e3e2314 docs 2022-07-30 11:21:42 -04:00
GitHub build-firmware Action dcc43ee4b4 Auto-generated configs and docs 2022-07-27 09:38:56 +00:00
Matthew Kennedy 4865213537 Log gppwm output values (#4385)
* remove debug option

* purpose built output channels

* name

* embiggen sd log buffer

* Revert "embiggen sd log buffer"

This reverts commit 37432a56535b24c221ae92e9aaded23de4d4a579.

* embiggen SD log buffer
2022-07-27 12:10:00 +03:00
Matthew Kennedy efdae2322d Start -> start (#4366) 2022-07-21 15:17:32 -04:00
rusefillc a8e86b9b81 typos 2022-07-20 18:45:35 -04:00
Andrey G 2eeb1ad84e TunerStudio reconnect speedup (#4358)
* TunerStudio: do not emit tons of errors if we are not in sync

Track state of sync with ither side. Emit only ONE error when sync
is lost.
Also no need to wait 1sec for second byte in binary mode. 10mS is
enought.

* TunerStudio: remove duplicated debug print

* TunerStudio: comment about in_sync

* TunerStudio: clear comments
2022-07-20 17:54:10 -04:00
rusefillc ca25530445 picking atomic piece of #4358 2022-07-20 17:06:34 -04:00
rusefillc 5fafaa571d refactoring: reducing warnings 2022-07-20 17:03:15 -04:00
Matthew Kennedy 2bf6c94663 fragments (#4357) 2022-07-19 11:02:41 +03: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
GitHub build-firmware Action 7123361f2e Auto-generated configs and docs 2022-07-15 10:29:23 +00:00
rusefillc 807bb26555 raw aux inputs gauges #4346 2022-07-15 06:23:24 -04:00
rusefillc 4c4f494904 PID logging: p term #4337 2022-07-08 10:31:34 -04:00
rusefillc c3d99528e1 PID logging: p term #4337 2022-07-08 09:43:05 -04:00
rusefillc 372f5e6790 dead code? (#4325)
* dead code?

* dead code?

* dead code?

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-07-07 00:35:11 -04:00
Matthew Kennedy ab24c5eb35 Rewrite tooth logger buffer management (#4317)
* s

* make it work

* put back enough maybe

* fix console composite log

* unit tests can just use a vector, why not

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-07-04 16:57:17 -04:00
Matthew Kennedy 2c80b8cf19 implement CAN driver for simulator (#4312)
* stub simulator CAN driver

* comments

* CAN sensor

* maybe implement?

* s

* fix

* tx and rx actually work!?!?!

* check_can_isr

* modify chibios

* Sim has no CAN on Windows (for now?)

* safer init/deinit, enable assertions

* smarter handling of missing CAN device

* better guards

* guards for windows
2022-07-03 08:25:24 -04:00
Andrey ef2278aeb1 logging of live data structs was: data points #3614 2022-06-29 03:21:53 -04:00
rusefillc c50009ee59 logging of live data structs was: data points #3614 2022-06-29 03:13:35 -04:00
rusefillc fb84241a48 logging of live data structs was: data points #3614 2022-06-29 03:01:13 -04:00
GitHub build-firmware Action 718b4fd3e9 Auto-generated configs and docs 2022-06-29 05:34:35 +00:00
rusefillc 2ab71f88e5 logging of live data structs was: data points #3614 2022-06-29 01:27:42 -04:00
GitHub build-firmware Action e2c241bd38 Auto-generated configs and docs 2022-06-27 02:39:05 +00:00
Matthew Kennedy da5446ed2e get rid of extra quotes (#4288) 2022-06-26 22:32:47 -04:00
GitHub build-firmware Action 81f1df25e4 Auto-generated configs and docs 2022-06-27 00:12:14 +00:00
rusefillc ce1d80ec33 stealing from David 2022-06-26 19:42:08 -04:00
rusefillc f4454a47ba visiting "live data" tab causes fatal error on ECU fix #4271 2022-06-25 22:09:54 -04:00
rusefillc e8777995be visiting "live data" tab causes fatal error on ECU fix #4271 2022-06-25 19:48:48 -04:00
GitHub build-firmware Action fbdebdc20e Auto-generated configs and docs 2022-06-24 00:20:41 +00:00
Matthew Kennedy 840bf6fb27 wideband live data (#4276)
* wideband live data magic

* test build happy

* test even happier
2022-06-23 20:04:26 -04:00
Matthew Kennedy 478549ccdf get rid of setSerialConfigurationOverrides (#4274)
* get rid of setSerialConfigurationOverrides

* missed a few

* kinetis
2022-06-23 19:42:09 -04:00
Matthew Kennedy 40106224f0 Write output channels with new parser (#4219)
* let the new parser run

* s

* support for output channels

* usages reader uses new parser for output channels

* better debugging configuration

* bad merge

* test it a bit too

* more tests

* copy/paste the same content from other file

* s

* fix bugs where even the existing logic tries to write as an enum (?)

* jar

* print stream always unix

* print stream always unix

* use typedefs correctly

* jar

* stub support for multiple of each type

* s

* s

* name some more datas
2022-06-19 09:52:23 -04:00
rusefi 9128873c3b verbose trigger sync should reuse engineSnifferRpmThreshold #4259
this should work faster?
2022-06-18 14:44:10 -04:00
Matthew Kennedy 2e56c9dd6f More fragment refactoring: encode by type, not enum index (#4075)
* fragment refactoring

* jar

* jar?

* look up fragment by type, not index

* don't even include that

* jar again

* jar again

* unit tests are happy

* guards

* jar

* hpfp guarding

* handle knock controller

* jar

* s

* stub multiple for each

* jar

* Update live_data.cpp

* s

* s
2022-06-18 09:23:44 -04:00
Matthew Kennedy c2f61dc95f Remove third trigger channel (#4226)
* remove third trigger

* clean up the honda mess

* there was nothing novel about this engine config

* include

* missed a few

* s

* x

* changelog

* don't set the third trigger input

* don't redefine the same thing 3 times

* only two inputs!

* test
2022-06-01 21:24:20 -04:00
rusefillc 1d802f4c22 hard requirement for console version match #4187 2022-05-29 14:42:08 -04:00
GitHub build-firmware Action 0eade966b9 Auto-generated configs and docs 2022-05-14 12:21:15 +00:00
rusefillc 9aebed59fe Maintenability: frequency sensors need a simple event counter in the logs #4173 2022-05-14 08:13:47 -04:00
rusefillc 4517c2cfe9 CAN category (#4148)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-05-09 16:49:23 -04:00
GitHub build-firmware Action cd3cce1da5 Auto-generated configs and docs 2022-05-09 09:42:49 +00:00
rusefillc 39df91b183 Remove value copy from controller into outputChannels #4095 2022-05-09 05:30:04 -04:00
GitHub build-firmware Action 5bbb401f85 Auto-generated configs and docs 2022-05-08 13:06:44 +00:00
rusefillc b2771f9b44 Remove value copy from controller into outputChannels #4095 2022-05-08 08:50:27 -04:00
GitHub build-firmware Action a4b7845279 Auto-generated configs and docs 2022-05-08 12:05:34 +00:00
rusefillc ad4591945e Remove value copy from controller into outputChannels #4095 2022-05-08 07:58:19 -04:00
GitHub build-firmware Action df404bfd04 Auto-generated configs and docs 2022-05-05 04:59:48 +00:00
Matthew Kennedy 597c9b0256 binary log knock count and retard (#4139) 2022-05-05 07:41:41 +03:00
rusefillc 64e0f342b1 knock reaction #202 2022-04-29 12:25:33 -04:00
rusefillc 19abcab3d1 docs 2022-04-25 00:36:12 -04:00
GitHub build-firmware Action 8145bd6bc0 Auto-generated configs and docs 2022-04-25 04:01:07 +00:00
GitHub build-firmware Action ba35602702 Auto-generated configs and docs 2022-04-25 03:46:16 +00:00
rusefillc d1173219b6 Remove value copy from controller into outputChannels #4095 2022-04-23 19:53:05 -04:00
GitHub build-firmware Action 80031c385a Auto-generated configs and docs 2022-04-23 11:41:19 +00:00