Commit Graph

55 Commits

Author SHA1 Message Date
Andrey G 1987f497e2
Uaefi sent (#7099)
* SENT: typo

* SENT: separate menu for input configuration

* SENT: pass SENT input number to decoder function

* SENT: is optional

* SENT: move gauges to "Sensors - SENT" category

* SENT: gauges show first channels statsistic only

* SENT: channels abstraction

First we define gpios used for SENT channels
Then we glue sensors to SENT channels

* SENT: fix gauges

* SENT: guards
2024-11-26 10:01:07 -05:00
rusefi 66730530f2 ETB is hard
only:uaefi
2024-10-26 12:00:41 -04:00
Matthew Kennedy 1bbc84aba8 only:std::abs 2024-09-25 23:48:34 -04:00
rusEFI LLC 78694f7adc only: better variable name 2024-04-22 23:49:42 -04:00
rusEFI LLC 6dd7591fdf only: looks like no problems here 2024-04-22 23:31:15 -04:00
Andrey 5a0761f533 hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
only:saving sensorVolts
2024-04-21 20:56:36 -04:00
rusefillc 5163d0fb5a hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
only:magicNumberAvailableForDevTricks
2024-04-21 19:46:42 -04:00
Andrey a07f82404a looks like a minor bug? 2023-11-02 10:39:35 -04:00
rusefillc 0b1b7a86d9 Make TPS/PPS split configurable #5620 2023-10-30 22:25:29 -04:00
rusefi f9f09bf15a currentIdlePosition
only:proteus_f4
2023-10-02 20:46:21 -04:00
Andrey ba66fdcf82 reducing code duplication around assert 2023-09-05 21:28:39 -04:00
rusefi a736bde6e9 semi-secret brz/frs pedal mode 2023-06-11 20:30:44 -04:00
Matthew Kennedy 61e5b4b1ad change ObdCode to enum class builds firmware 2023-04-29 00:44:00 -04:00
rusefi 7c6dd18f94 only:mre_f4 2023-03-01 16:53:48 -05:00
Andrey 1a8af17307 Native SENT TPS input #5079
only:mre_f4
2023-03-01 09:19:30 -05:00
Andrey 28c3af682d Native SENT TPS input #5079
a bit of progress
2023-02-28 22:11:38 -05:00
Andrey 3247c15838 Native SENT TPS input #5079
only:alphax-4chan
2023-02-23 05:26:42 -05:00
Andrey 5597c46e14 Native SENT TPS input #5079
only:alphax-4chan
2023-02-23 04:37:38 -05:00
Matthew Kennedy 15d41c31c7
support Toyota ETCS-i tps/pps (#4898)
* cfg

* cfg

* configurable "ford tps" mode for TPS + PPS

* comments

* comment

* fix deinit RedundantFordTps

unregister sensor in case useFordRedundant* changes, avoiding ECU config error

* better validation

* use activeConfiguration on deinit path

* use define

* use smaller unused hole

* s

Co-authored-by: Nathan Schulte <nmschulte@desmas.net>
2023-01-10 14:10:30 -05:00
Andrey afea024ffe ETB JNI test progress 2022-11-29 02:10:55 -05:00
Andrey cc7ff2f92c ETB JNI test progress 2022-11-29 02:03:46 -05:00
Andrey c2c6669f47 ETB JNI test progress 2022-11-29 01:54:09 -05:00
rusefillc 0ad1f96068 Nissan: probably hardware issue but maybe we need firmware progress as well #4821 2022-11-25 10:13:57 -05: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
rusefillc b848a819b4 HOW to configure CAN-based accelerator pedal #4369 2022-07-28 09:46:19 -04:00
Matthew Kennedy dc2fb765a9
rewrite tps init, check if your primary/secondary sensors are too similar (#4231)
* rewrite tps init

* staticstaticstaticstaticstaticstaticstatic
2022-06-04 12:07:28 -04:00
Scott Smith 823d9a07e0
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
Matthew Kennedy 8cdac4cac0
remove engine pointer passing (#3556)
* some

* more

* more

* the last?!
2021-11-16 04:15:29 -05:00
Matthew Kennedy a18b86a09b
start allowing ADC change while running (#3100)
* allow re-register of the same sensor

* add api to unsubscribe

* do it for tps

* clear the pin

* happy test

* maybe make afr happy for now

* tests build

* happy simulator

* active configuration

* check valid

* we need vbatt now

* manage all pin init in init_sensors.cpp

* don't need that

* cleanup

* thermistors

* do two phase reinit in the right place

* config vs engine

* finally the tests are happy
2021-08-24 16:41:16 -04:00
rusefillc c80cf4b632 more detailed message 2021-08-19 15:51:33 -04:00
Matthew Kennedy 25414ebdad
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 b52d50bbf2
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 2ce7777865
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 46e38447e5
Ford redundant ETB tps (#2519)
* ford tps

* configurable maximum

* initialization

* check consistency when in the low range

* print info

* default

* config field

* config parameter

* test

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-05 15:57:03 -04:00
Matthew Kennedy b56a31143e
fix error/warning buffer overflow (#2456)
* fix error printing overflow

* make the worst offender shorter

* error as warning

* these don't need that flag set
2021-03-14 09:31:11 -04:00
Andrey G b92e3086d0
Adc isAdcChannelValid helper (#2188)
* Guard define argument

* ADC: isAdcChannelValid

Check for both <= EFI_ADC_NONE and >= EFI_ADC_LAST_CHANNEL
Also check for value out of enum range (corrupted settings)

* Fix unit tests
2021-01-05 16:02:20 -05:00
Matthew Kennedy 67269aa637
maybe fix sensor init checks (#2034)
* enums

* don't collide

* auto_generated_enums

* check based on new enum val

* maybe this will make generate tool happy

* add a test

* fix test

* fix and add another test

* make clang happier

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-06 23:19:57 -05:00
Matthew Kennedy c5e3657d45
don't duplicate sensor error logic (#2032)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-06 15:00:30 -05:00
rusefillc f6691eb4aa one step back #2017 2020-12-06 08:34:10 -05:00
rusefillc bcf404cdae code formatting & more info into message 2020-12-06 08:30:31 -05:00
Matthew Kennedy 2d9be1077b
require TPS values to be different (#2017)
* require values to be different

* fix not

* oops

* missed another spot

* test negative cases too

* resets

* test no sensor case

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-06 00:41:49 -05:00
rusefillc 07e25ccf3c https://rusefi.com/forum/viewtopic.php?p=38367#p38367
idle position/waste gate position sensor usability
2020-11-14 18:05:27 -05:00
Matthew Kennedy 3d6a6398ac
Dedicated sensors for wastegate + idle position (#1805)
* config

* add sensor

* listen to new adc channels

* fix

* add gauges to TS

* add gauge values

* TS UI
2020-09-18 10:04:07 +03:00
rusefi 39d09bc976 microRusEFI used as Body Control Module BCM BCU 2020-09-06 20:21:01 -04:00
rusefi 5f125f3db0 this does not go as planned :( 2020-08-31 07:45:52 -04:00
Matthew Kennedy 733008b9d0
Analog input filtering (#1680)
* improve biquad

* cleanup

* add filtering to subscriptions

* config sensors

* comment

* doesn't need to be that fast

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-08-21 19:47:12 -04:00
Matthew Kennedy 0290a268ab
Redundant accelerator pedal (#1470)
* add second boudns

* init logic

* test changes

* reconfigure correctly

* rams
2020-05-23 19:48:32 -04:00
Matthew Kennedy 9dda1a21bc
Redundant tps (#1427)
* add redundant sensor

* add tests

* add configure, info printing

* tests

* tests

* partial hookup

* fix

* fix

* bad makefile merge

* use second TPS config

* update test

* update test

* sensor names

* set second pin by default

* fix auto cal

* auto cal both sensors

* add reconfigure of secondary sensors

* gobblin' up your ram

* slow down write a little bit

* put split in debug gauge

* s

Co-authored-by: Matthew Kennedy <matthew@mck-mbp-15.local>
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-18 14:32:00 -04:00
Matthew Kennedy 3186741ddc
TPS Initialization Testing (#1264)
* test support

* stub for tests

* plumbing so we can test this

* add test

* comments
2020-04-05 09:10:08 -04:00
Matthew Kennedy 8151793ec7
Improve tps error message (#1244)
* improve error messages

* fix

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-02 08:02:44 -04:00