Commit Graph

284 Commits

Author SHA1 Message Date
Matthew Kennedy 442c75cc4c
Remove sensor chart (#568)
* delete sensor chart from firmware

* delete sensor sniffer UI
2025-03-07 03:28:29 -08:00
Matthew Kennedy 9dcf76d99c
Remove stack checks (#558)
* remove stack checks

* put one back
2025-02-18 17:33:24 -08:00
Matthew Kennedy af434e633e printf format for changed types 2024-12-28 13:32:49 -08:00
Matthew Kennedy 28e9f8a015 enum class-ify TriggerEvent 2024-12-12 15:37:14 -08:00
Matthew Kennedy 8952633854 int rpm -> float rpm 2024-09-25 00:16:53 -07:00
Matthew Kennedy 01a397094d
execute critical tasks on one big thread (#462)
* wire up main loop

* remove PeriodicTimerController

* patch up defines, comments

* happy simulator

* format

* simulator

* ETB runs via main loop

* happy tests

* protection against invalid LoopPeriod

* stack size

* ccm

* fix |= operator

* move perf trace

* ordering

* ordering
2024-09-17 15:27:38 -07:00
Matthew Kennedy 1913853adb more dead efifeatures 2024-08-07 12:03:10 -07:00
Matthew Kennedy cf87e64119 compile-time enforcement of printf strings 2024-06-10 00:51:14 -07:00
Matthew Kennedy 8e4994627d default init is ok for these 2024-04-25 15:49:27 -07:00
Matthew Kennedy 96834b2b99 duration vs timestamp 2024-04-25 15:22:54 -07:00
Matthew Kennedy 935d9962d8 logic analyzer type correctness 2024-04-25 12:43:31 -07:00
Matthew Kennedy 17c6a46e84 optimize for hot thread stacks and data in CCM 2024-01-06 19:37:35 -08:00
Matthew Kennedy 9474781a46 small can board 2023-11-03 15:50:39 -07:00
Matthew Kennedy 7b955cb1b3 fixAngle -> wrapAngle 2023-10-19 14:34:29 -07:00
Matthew Kennedy 7ff224da12 Revert "debug channels cleanup"
This reverts commit 3b0d033dcd.
2023-09-13 15:40:21 -07:00
Matthew Kennedy 3b0d033dcd debug channels cleanup 2023-09-13 15:34:17 -07:00
Matthew Kennedy 32882c6eff get rid of FrontDirection too #55 2023-05-31 10:24:36 -07:00
Matthew Kennedy d5f9479f28
ObdCode is enum class (#77)
* change ObdCode to enum class builds firmware

* test builds

* don't need this line at all

* can we go down to uint16_t?
2023-04-12 23:44:33 -07:00
Matthew Kennedy fa41247fde ancient history dead histogram 2023-04-11 17:02:56 -07:00
Matthew Kennedy aa48077d58 dead stuff 2023-03-02 02:21:53 -08:00
Matthew Kennedy 666a41e496 hip9011 2023-02-20 22:29:48 -08:00
Matthew Kennedy 553c35a154 EFI_POTENTIOMETER 2023-02-20 22:03:33 -08:00
Matthew Kennedy 61c17791b8 joystick, lcd 2023-02-20 21:54:10 -08:00
rusefillc b7409470f9 guards 2022-12-17 15:23:32 -05:00
rusefillc 6628541024 guards 2022-12-17 14:58:10 -05:00
Matthew Kennedy c617b00180 Use a shared buffer for "high memory" operations (#4878)
* big buffer

* mostly hooked up big buffer

* bad merge

* s

* sneak preview of trigger scope

* s

* constness

* channel limits

* s

* unnecessary

* efilib

* TcpServerSandbox

* includes fix

* binary format
2022-12-10 07:35:39 -05:00
Andrey G cc9b1517ac compile warnings: signed vs unsigned and unused (#4713) 2022-10-30 09:47:53 -04:00
rusefillc 85140ac80b send more of Engine Sniffer data #4560 2022-10-29 22:33:50 -04:00
rusefillc ec184423f2 send more of Engine Sniffer data #4560 2022-10-29 21:55:35 -04:00
rusefillc cc51ca3c85 send more of Engine Sniffer data #4560 2022-10-29 21:27:49 -04: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
Andrey 1d0f13fc41 deep rabbit holes are the best ones!
refactoring: encapsulation
2022-09-14 02:17:04 -04:00
Andrey G 2b4012b279 dead code, reduce typedefs (#4566)
* Do lightweight checks first

* Dead getTimeIgnitionSeconds()

Dead since 5274cffff3

* Get rid of efitime_t.

Purpose are not clear. Use efitick_t where ticks are used,
use efitimeus_t for uS, use efitimems_t or efitimems64_t for mS.

* Fix unit tests

* Fix misc: stm32f1_test_project
2022-09-11 16:08:11 -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 4836c78644 send more of Engine Sniffer data #4560
hello Kinetis it has been a while!
2022-09-11 00:18:08 -04:00
rusefillc 202c6ba366 send more of Engine Sniffer data #4560
new API & first usage
2022-09-10 23:42:59 -04:00
rusefillc ce32d0e3d8 send more of Engine Sniffer data #4560 2022-09-10 20:25:29 -04:00
Andrey 25b6d39802 os_access.h dead? 2022-09-07 15:56:45 -04:00
Matthew Kennedy 3c9910485d logic analyzer uses exti (#4269)
* rename functions

* s

* logic analyzer implemented using EXTI

* s

* don't turn it off on hellen either

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-06-22 20:13:17 -04:00
rusefillc 414e9b6dfc verbose trigger sync should reuse engineSnifferRpmThreshold #4259 2022-06-18 16:14:25 -04:00
rusefi e4ed067106 verbose trigger sync should reuse engineSnifferRpmThreshold #4259
docs
2022-06-18 14:44:32 -04:00
rusefi 514531bc5c verbose trigger sync should reuse engineSnifferRpmThreshold #4259
reducing complexity
2022-06-18 14:17:36 -04:00
rusefillc 3ce8bfd500 docs 2022-06-17 22:10:34 -04:00
Matthew Kennedy a2e1a079b8 allow enum_class in rusefi_hw_enums.h (#4104)
* make things c++ friendly

* install various canaries in coal mines

* using is much clearer than typedef

* fixing builds

* lps25

* trigger includes were a mess

* c -> c++ cleanup

* os util

* why did so many include os_util.h?

* fwd declare

* cypress/kinetis

* s

* eg33 happy

* happy sim

* cypress usb

* pch

* cypress

* doesn't need to include all that

* h7
2022-04-25 20:38:16 -04:00
Andrey 3e3bdab488 migrating to SensorType::Rpm API 2022-01-20 22:38:08 -05:00
rusefillc cfcd42d197 docs 2021-12-29 15:38:35 -05:00
Andrey d2c46b3310 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
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
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 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