Commit Graph

765 Commits

Author SHA1 Message Date
rusefillc 6f9f6f8702 front to rear axle speed slip rate gauge #5842 2023-12-30 23:25:47 -05:00
Matthew Kennedy d31f535ca3 sanity in IMU data names/ranges 2023-11-27 14:59:21 -05:00
rusefillc 1f990e8fef only:better method name 2023-11-22 23:58:30 -05:00
rusefillc fdfae2724e F407-Discovery status LED conflicts for GPIO fix #5705 2023-11-10 17:15:16 -05:00
rusefillc 4cb45a354b
Better efi engine control guard (#5695)
* better EFI_ENGINE_CONTROL

* better EFI_ENGINE_CONTROL

* better EFI_ENGINE_CONTROL

* better EFI_ENGINE_CONTROL

* better EFI_ENGINE_CONTROL

* better EFI_ENGINE_CONTROL

* better EFI_ENGINE_CONTROL
2023-11-05 13:54:06 -05:00
Andrey 021609f468 only:unused methods 2023-11-04 22:34:28 -04:00
rusefillc 946fec3ea0 better guards 2023-11-03 20:54:02 -04:00
Andrey G ed8af771ac
at_start_f435: enable MFS for internal flash (#5687)
* Rename EFI_INTERNAL_FLASH to EFI_STORAGE_INT_FLASH

This define enables use of RE custom flash driver for storing
settings to internal flash.

* at_start_f435: enable MFS for settings storing in internal flash

* MRE: fix special build

* kinetis: fix flash_int.cpp vs flash_int.c mess

* at32: allow allowFlashWhileRunning()

* flash_main: supress warning
2023-11-03 13:08:35 -04:00
rusefillc 3b6c9feea5
require LEDs (#5643)
* require all boards to define LED functions (#272)

* require all boards to define LED functions

* f429 nucleo

* small can

* small can

* add to header

* LEDs

---------

Co-authored-by: Matthew Kennedy <matthewkennedy@outlook.com>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-11-03 12:56:59 -04:00
Andrey 5ab0d75709 only:unused-variable is a nice error message to have #5683 2023-11-02 21:51:31 -04:00
Matthew Kennedy 93e3e75a36 avoid vexing parse 2023-11-01 19:25:13 -04:00
rusefillc e384914c95 only:variable shadowing should be avoided #5676 2023-11-01 13:02:20 -04:00
rusefi 8d1bdacafb fuelTempGauge
only:small-can-board
2023-10-31 22:47:57 -04:00
rusefillc add3326ef0
dead warningEnabled global variable (#5636) 2023-10-24 18:55:29 -04:00
rusefillc 66759b1cff Lua does not set RPM #5627 2023-10-21 18:14:13 -04:00
Matthew Kennedy 5a1f53ce39 fix injection SOI log channel 2023-10-19 22:31:17 -04:00
rusefi 105dc1b588 making 'isUsbConnected' visible outside of EFI_SHAFT_POSITION_INPUT guard
only:small-can-board
2023-10-17 16:04:42 -04:00
rusefi 12f4cea668 only:minor encapsulation 2023-10-13 00:23:29 -04:00
Matthew Kennedy c1315a4ecc Fix autotune in AFR mode: add "gas scale AFR" output channels & gauges 2023-10-06 19:56:32 -04:00
Matthew Kennedy 463b3ea70e odometry output channels 2023-10-04 23:01:03 -04:00
Matthew Kennedy c8ddbba529 trip odometer 2023-09-26 17:03:06 -04:00
Matthew Kennedy 1552b26fa6 new temp sensor output channels 2023-09-18 08:55:21 -04:00
Andrey f435552730 only: debug channel cleanups 2023-09-14 10:17:46 -04:00
rusefillc aa00a9eccb Injector DutyCycle jumps to 0 when duty goes beyond 127.5% fix #5559 2023-09-10 13:45:40 -04:00
rusefi 720ba01d04 proteus fails to start while powered by stim board #5545
only:proteus_f7
2023-08-29 00:46:21 -04:00
rusefi 291dcc6c1e dead 2023-08-29 00:46:21 -04:00
Andrey 20962b2a47 live data injector model 2023-07-03 12:30:30 -04:00
Matthew Kennedy bd97357e5b remove config lookup entirely 2023-06-05 14:52:34 -04:00
Matthew Kennedy d9930116f7 add weak linked functions for LED pin fetching 2023-06-05 13:14:40 -04:00
Matthew Kennedy b174ef488a shared define for all LED pin mode 2023-06-05 11:49:09 -04:00
Matthew Kennedy f7e6ccd9e2 de-pointerize outputMode #49 2023-06-05 10:25:00 -04:00
Matthew Kennedy 350d9060fb Add gego channel to make VE analyze happy #82
(cherry picked from commit d0c645bad5ddd6a54be149adeb963bae6fa5fa6b)
2023-05-05 17:40:52 -04:00
Matthew Kennedy 8fa5b514e3 TPS AE log cleanup
(cherry picked from commit 18493f90830edba0e2d1c356873e5a432aa1facc)
2023-05-05 17:05:31 -04:00
Matthew Kennedy fea92524e4 more log fields cleanup, lots of duplicates around fuel logic #98
(cherry picked from commit a8fef3634202c721f4dac12e7612444b7936cdc0)
2023-05-05 13:53:16 -04:00
Matthew Kennedy 85251fd675 cool, logging duplicate stuff! #98
(cherry picked from commit c3092cb1ab42847a190bed5bf4956a7a3e140602)
2023-05-04 21:40:58 -04:00
Matthew Kennedy effdbce4ca apparently we duplicated idle position, field renaming #98
(cherry picked from commit 304458961315f3f2dbf4cb93c15e6e73d0017d0e)
2023-05-04 21:26:40 -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
Matthew Kennedy 93fc5b2ceb use shared txt instead of parsing full rusefi_config (#59)
(cherry picked from commit fbb90f2c040442bc10787b9d722e477a7572d75c)
2023-04-29 16:52:43 -04:00
Matthew Kennedy d897a96c05 is this just dead?
(cherry picked from commit cd6b770945aa56ae52e188476034a862cba47bb0)
2023-04-29 01:08:14 -04:00
Matthew Kennedy 61e5b4b1ad change ObdCode to enum class builds firmware 2023-04-29 00:44:00 -04:00
Matthew Kennedy 7396d466c4 cj125
(cherry picked from commit fd09ad7b4f2a9c450aedf4a535db4edd24bdcee1)
2023-04-29 00:15:54 -04:00
Andrey 3221c4c075 it's going to be painful 2023-04-28 23:43:11 -04:00
Matthew Kennedy bb49b22294 joystick, lcd
(cherry picked from commit 61c17791b89fc6b5ae17df96d9498c088afdb09f)
2023-04-28 22:32:37 -04:00
Matthew Kennedy 2857e9527d remove specs_s struct, flatten config
(cherry picked from commit f090a97b0b7771dfe02e4b4bb9919d50a6a11ef5)
2023-04-28 20:59:11 -04:00
Andrey b35902ce35 logging of live data structs was: data points, we are moving away from debug mode #3614 2023-04-12 17:25:13 -04:00
rusefillc 7360840ece logging of live data structs was: data points, we are moving away from debug mode #3614 2023-04-12 10:24:07 -04:00
rusefillc 2ca470119e logging of live data structs was: data points, we are moving away from debug mode #3614 2023-04-12 10:17:08 -04:00
rusefi 5ec6f523f3 Poor man categories for logs #5153
only:hellen-honda-k
2023-03-28 20:12:30 -04:00
Andrey deb40b59c2 reducing weird?
only:hellen-honda-k
2023-03-05 01:00:37 -05:00
Andrey 6d88c2e34a Nick wonders if DC wastegate is still FUBAR #5075 2023-02-13 18:27:58 -05:00
Andrey d31344a019 Nick wonders if DC wastegate is still FUBAR #5075 2023-02-13 18:26:22 -05:00
Andrey 4e4dd536a2 logging of live data structs was: data points, we are moving away from debug mode #3614 2023-01-14 22:38:38 -05:00
Andrey 0c1859b77e totalFuel and totalIgnition correction gauges in Tunerstudio #4955 2023-01-14 15:33:17 -05:00
rusefillc 85976ed63d guards 2022-12-17 15:23:32 -05:00
rusefillc fff800a574 reducing aux/lua mess 2022-12-04 12:38:58 -05:00
rusefillc c3563ec577 ETB overheats due to constant isTpsError true/false/true/false jitter #4832
refactoring: extract method
2022-11-27 18:44:44 -05:00
rusefillc 55062b1ef6
refactoring: constexpr fuel computer (#4830)
* refactoring: constexpr fuel computer

* refactoring: constexpr fuel computer

* refactoring: constexpr fuel computer

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-11-26 12:25:04 -05:00
Andrey 77a3f5d795 trigger refactoring: instance RPM #4740 2022-11-06 11:56:18 -05:00
Matthew Kennedy f4f5f69ee6
duplicate log field names (#4730)
* remove duplicate target lambda/afr

* names on fuel computer

* remove more copies

* sensor.java

* everybody loves hard dependencies on generated fields

* target afr gauge fix

* test

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-11-05 20:23:09 -04:00
rusefillc ec05edd55a target lambda & afr log fields broken #4727 2022-11-02 22:37:52 -04:00
rusefillc 399a9c4a51 target lambda & afr log fields broken #4727 2022-11-02 22:35:40 -04:00
rusefillc 95d360f7b1 target lambda & afr log fields broken #4727 2022-11-02 22:17:00 -04:00
Matthew Kennedy f8a4d35d25
dual MAF sensors (#4697)
* add second MAF

* output channesl

* move them around

* ok let's try at the very end

* is the logic wrong, or something else?

* ooh it's the sensor order
2022-10-24 12:41:05 -04:00
rusefillc 50270af024 Lua aux gauge #4672 2022-10-18 15:52:32 -04:00
rusefillc 2dc1ee05f1 Lua aux gauge #4672 2022-10-18 15:25:47 -04:00
rusefillc e16c8f9120 Lua aux gauge #4672 2022-10-17 21:21:23 -04:00
rusefillc 2eba65505b Lua aux gauge #4672 2022-10-17 20:01:46 -04:00
rusefillc f08076ee96 startStopStateToggleCounter to live data 2022-10-06 18:55:29 -04:00
Andrey e3758dc7ce livedata has replaced that legacy command-line approach 2022-09-28 19:46:47 -04:00
Matthew Kennedy b76a7cbcd8
simulator reads/writes configuration (#4605)
* simulator reads/writes configuration

* c_str

* include order
2022-09-23 08:47:50 -04:00
rusefillc 05b84d21e6 auxSpeed1 2022-09-20 23:00:42 -04:00
Matthew Kennedy 3a57c41c1b
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
rusefillc 888247eccd mapFast into logs 2022-09-15 14:55:49 -04:00
Matthew Kennedy 86562332c4
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 9c83cfd696 moving SD logic to better source 2022-09-12 20:39:43 -04:00
Andrey G 91d4844e38
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
Andrey 71e5fbcb55 refactoring: reducing outputChannels copy 2022-09-04 22:38:05 -04:00
Andrey 632bf967bb refactoring: reducing outputChannels copy 2022-09-03 17:12:47 -04:00
Andrey d329f8ae10 tear down Engine god object #4511
just trying different things
2022-09-03 07:44:24 -04:00
rusefillc 25f4ebbc01
moving state into specific class (#4520)
* moving state into specific class

* moving state into specific class
2022-09-02 14:38:03 -04:00
Andrey 7e340cceb3 refactoring: reducing outputChannels copy 2022-09-01 10:58:16 -04:00
Andrey e240ac84d3 refactoring: reducing outputChannels copy 2022-09-01 01:06:49 -04:00
Andrey 4cbaddcc60 less code is better 2022-08-31 23:14:20 -04:00
Andrey G 9997bf95e0
output channels: isFuelPumpOn vs isPumpOn, remove second one (#4490) 2022-08-27 14:28:33 -04:00
rusefillc 2baae2adc0 docs 2022-08-23 22:25:08 -04:00
Matthew Kennedy 9738ba84ae
log missed exti events (#4473)
* log missed exti events

* units

* s

* guard

* stub for non stm32
2022-08-23 19:45:28 -04:00
rusefillc f9b50c2523 better method name 2022-08-22 18:07:59 -04:00
Matthew Kennedy 423f69a842
allow logging multiple warnings at once (#4414)
* allow logging multiple warnings at once

* comment

* .Code

* Revert ".Code"

This reverts commit 2b986bd50035aeec051d11aafd83fdbc1694351c.

* add a better comparison operator instead of conversion

* dot code

* Revert "dot code"

This reverts commit 35f6ae1007c41e3b30ea129a324f33ab4205036d.

* force gcc-10 maybe?

* Revert "force gcc-10 maybe?"

This reverts commit 4ddf8bcefddd354ccdc1da682c5fff1e68d44273.

* vq

* dot code

* dead

* dot code

* return may be null

* static_vector; maybe cyclic_buffer is broken or wrong tool for the job?

* move static vector

* put cyclic buffer back how it was since we don't use it now
2022-08-17 01:12:25 -04:00
rusefillc 34bef1b3d2 https://github.com/rusefi/alphax-4chan/issues/57 2022-08-11 10:54:54 -04:00
Matthew Kennedy ed5f1b3d57
more CAN verbose (#4402)
* add stuff

* don't read invalid value
2022-08-01 15:27:06 -04:00
Matthew Kennedy b6f1779781
implement sensor checker (#4395)
* implement sensor checker

* use default

* s

* fix

* properly report non-timeout errors

* it's not safe to read Value when invalid

* it's not safe to read Value when invalid
2022-07-30 17:08:48 -04:00
Matthew Kennedy d4b8a036af
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 b99d90b006
Start -> start (#4366) 2022-07-21 15:17:32 -04:00
rusefillc 90e98bacbf scaling of microRusEFI ADC gauges fix #4356 2022-07-18 08:26:17 -04:00
rusefillc 8a8a214927 raw aux inputs gauges fix #4346 2022-07-15 06:37:30 -04:00
Matthew Kennedy e9d092f975
big delete ICU (#4270)
* big delete

* icu vestiges

* changelog
2022-07-07 15:27:59 -04:00
rusefillc f7ecebaa64 logging of live data structs was: data points #3614 2022-06-29 02:37:24 -04:00
Matthew Kennedy 4ada633206
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 fc81ef9ce5 hard requirement for console version match #4187 2022-06-01 11:07:28 -04:00
rusefillc cbc4a42954 Maintenability: frequency sensors need a simple event counter in the logs #4173 2022-05-14 08:39:08 -04:00