Commit Graph

55 Commits

Author SHA1 Message Date
rusefi bd0e04669a CORE_CLOCK replacement progress 2025-01-24 22:27:49 -05:00
Andrey Gusakov e846c8339c SENT: move to libfirmware 2024-12-14 09:16:16 -05:00
Andrey Gusakov f267011daf SENT: count HW timer overcapture events
Currently only count.
TODO: handle
2024-12-06 17:12:09 -05:00
Andrey Gusakov 08fba63359 SENT: refactor 2024-12-06 16:18:49 -05:00
Andrey Gusakov eeb6f8e9cd SENT: support pause pulses 2024-12-06 16:18:49 -05:00
Andrey Gusakov 191e53dfaa SENT: less magic numbers 2024-12-06 16:18:49 -05:00
Andrey Gusakov b29a50e135 SENT: always report error, otherwise slow channel is not reset on error 2024-12-06 16:18:49 -05:00
Andrey Gusakov b83285ef73 SENT: avoid small data types 2024-12-06 16:18:49 -05:00
Andrey Gusakov 256ad9d198 SENT: simplify calibration logic 2024-12-06 16:18:49 -05:00
rusefillc a3c572320f
separating two different usages of variable (#7114) 2024-12-06 10:02:30 -05:00
Andrey Gusakov 0a30857f96 SENT: allow +/-20% tolerance on SYNC phase 2024-12-05 20:45:03 -05:00
rusefillc bbabc1335b sent: assert so that unit tests fail nicely 2024-12-05 20:05:57 -05:00
Andrey Gusakov eba393ccd2 SENT: support ICU channel 3 and channel 4 capturing 2024-12-05 19:11:27 -05:00
Andrey Gusakov 6e65eee29c SENT: dead 2024-12-05 19:11:18 -05:00
Andrey G 57f7fb0992
Uaefi sent (#7100)
* SENT: TS settings for high pressure fuel sensor

* SENT: glue GM high pressure fuel sensor

* SENT: unit test guards

* SENT: unit test guards 2
2024-11-26 16:26:00 -05:00
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
rusefillc b179e15e37 uaefi SENT 2024-11-22 16:31:07 -05:00
Andrey 25bf6d1725 only:typo 2024-10-23 00:31:08 -04:00
Andrey eb1ea1f828 only:typos 2024-10-23 00:28:28 -04:00
Matthew Kennedy 27e0a80c82 compile-time enforcement of printf strings
only:uaefi
2024-06-10 19:11:35 -04:00
rusefillc b0888cc8b5 https://github.com/rusefi/rusefi-hardware/issues/146
only: a note
2024-05-13 18:44:03 -04:00
rusefillc 35e57475a4 only:variable shadowing should be avoided #5676 2023-11-01 12:12:50 -04:00
rusefi e8c45a2e7d refactoring: reducing code duplication. Also, do we even care for critical error codes?! 2023-08-20 22:23:44 -04:00
Andrey 51d0f6e347 it's going to be painful 2023-04-29 00:44:00 -04:00
rusefillc b213dddcd6 style unification 2023-04-19 16:46:41 -04:00
rusefillc 73c6d7a349
sent
only:mre_f4
2023-03-06 19:30:29 -05:00
rusefi 696f8d566b Native SENT TPS input #5079 2023-03-01 18:56:06 -05:00
rusefi d7778b258d Native SENT TPS input #5079
only:mre_f4
2023-03-01 15:47:37 -05:00
Andrey 68fee9905f Native SENT TPS input #5079
hasValidFast progress!

only:mre_f4
2023-03-01 15:23:38 -05:00
Andrey 28c3af682d Native SENT TPS input #5079
a bit of progress
2023-02-28 22:11:38 -05:00
Andrey 3f537a66fa docs 2023-02-28 22:11:38 -05:00
rusefillc 8df963882a Native SENT TPS input #5079 2023-02-20 11:52:10 -05:00
rusefillc bb3b43f038 Native SENT TPS input #5079 2023-02-20 11:38:20 -05:00
rusefillc a331cfa2c9 simpler SENT for now 2022-11-19 09:38:39 -05:00
Andrey Gusakov caebd674ea LUA/SENT: hook to get RAW sig0 and sig1 (WIP)
TODO: how to return two (N) values from LUA hook?
2022-11-17 16:17:27 -05:00
rusefillc f697d6c7dd
Update readme.md 2022-11-15 12:34:17 -05:00
rusefillc 51049b8de5
Update readme.md 2022-11-15 09:44:56 -05:00
rusefillc ed712863c2
Update readme.md 2022-11-15 09:41:16 -05:00
rusefi 37194dfe56 Ford SENT ETB bench test in NJ #4745 2022-11-13 11:23:54 -05:00
Andrey G 27166f4b23
SENT updates (#4774)
* SENT: simplify

* SENT: add crc6 routine, check crc for slow channels enhanced messages

* SENT: helper to get Slow Channel values

* SENT: getTickTime() report tick unit time

* unit_tests: SENT: update tests
2022-11-12 16:57:20 -05:00
rusefi 0e71535727 Ford SENT ETB bench test in NJ #4745 2022-11-11 18:07:13 -05:00
Andrey G 64be738874
SENT unit tests (#4769)
* unit_tests: sent: zero-init

* sent: SENT_SLOW_CHANNELS_MAX to header

* unit_tests: sent: clock, falling edges

* SENT: support and autodetect if device sends pause pulse

Also rework tick time calculation

* unit_tests: SENT: verbose debug on request

* unit_tests: SENT: actual checks

* unit_tests: SENT: extract common code for reuse

* unit_test: SENT: add test with fuel pressue captured data

* unit_test: SENT: add test with Ford ETB CLOSED captured data
2022-11-11 17:25:02 -05:00
Andrey 73e69940ba Ford SENT ETB bench test in NJ #4745
we shall unit test SENT
2022-11-07 10:30:30 -05:00
Andrey be8ba29b42 Ford SENT ETB bench test in NJ #4745
we shall unit test SENT
2022-11-07 00:25:47 -05:00
Andrey a25c9ab520 Ford SENT ETB bench test in NJ #4745
we shall unit test SENT
2022-11-07 00:06:42 -05:00
Andrey G 7abe3ba112
SENT improvements (#4702)
* smt32_common.mk: reduce copy-paste

* SENT: sentPins is not used

* hw: stm32: add ICU helper

* hw: stm32: icu helpers: also return timer base clock

* SENT: icu: use helper to get ICU & channel and AF

* SENT: icu: use CPU ticks for pulse measurements

* hw: stm32: icu: cleanup
2022-10-26 15:33:47 -04:00
Andrey G afa0bd92e8
SENT glue to LUA (#4700)
* use tabs

* SENT: Lua glue: getSentValue returns ETB position now

Can be tested with following LUA script:
setTickRate(100)
function onTick()
	pos = getSentValue(1)
	setLuaGauge(1, 10000 * pos)
	print(pos)
end
2022-10-26 06:42:14 -04:00
Andrey G dff2693698
SENT fixes (#4698)
* SENT: use shift register for storing nibbles

* SENT: rxReg shift to the left

* SENT: todo
2022-10-24 08:50:11 -04:00
rusefi 6e24020ab5 GM ETB bench test in NJ #4688
SENT to Lua integration
2022-10-22 22:46:37 -04:00
Andrey G d21d5397ac
SENT fixes (#4692)
* SENT: measure more pulses during Unit time calibration

* SENT: no magic numbers

* SENT: fix typo

* SENT: setninfo output: do not show slow channels if not detected

* SENT: fix GM-style CRC calculation

* SENT: another one CRC algorithm, now for pressure sensor

* SENT: show CRC error percentage
2022-10-22 18:07:22 -04:00