kifir
1aaea76ac9
Extract part of functionality into `FunctionalSensorBase` class #7180
2024-12-24 18:35:53 -04:00
Andrey Gusakov
cbe59c90c9
adc: try to clean naming mess: getVoltage() to adcGetRawVoltage()
2024-12-09 07:43:43 -05:00
Andrey Gusakov
b2dfda3aee
mpu_utils: implement adcMuxedGetParent()
2024-09-04 08:41:46 -04:00
rusefi
e2bc1cbade
only:going fancy enums
2024-07-22 19:49:42 -04:00
Andrey Gusakov
42213ac172
getPinNameByAdcChannel: be more safe
...
Know buffer size
Use snprintf
Expect null from portname()
2024-07-20 17:37:52 -04:00
Andrey Gusakov
4007e0d7f8
adc_subscription: call efiSetPadMode for primary input only
...
Same pin can be used by two analog inputs (externaly muxed)
Call brain_pin_markUsed() only while requesting for primary user
2024-07-20 17:37:52 -04:00
Andrey
97acf15a41
only:AdcSubscription::ResetFilters()
2024-07-07 00:21:21 -04:00
rusefillc
f981d04c44
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:15:56 -04:00
rusefillc
840a968bc8
code guard
2023-05-24 00:39:56 -04:00
rusefillc
228c1ac246
code guard
2023-05-24 00:13:07 -04:00
Matthew Kennedy
61e5b4b1ad
change ObdCode to enum class builds firmware
2023-04-29 00:44:00 -04:00
Andrey G
a6ec708a6b
Support non-uniform dividers on ADC inputs ( #4938 )
...
* adc: support per-channel dividers
* S105: non-uniform analog dividers
* adc: default weak getAnalogInputDividerCoefficient() implementation
* adc: fix emulator compilation
2023-01-08 17:29:29 -05:00
rusefillc
5b159f0ff5
Support non-uniform dividers on ADC inputs #4938
...
maybe helping?
2023-01-08 15:37:51 -05:00
rusefillc
e58d375244
external muxes for internal ADC #3350
2023-01-07 22:09:43 -05:00
rusefillc
558f88ce23
external muxes for internal ADC #3350
2023-01-07 21:56:12 -05:00
Matthew Kennedy
1eb00e5ec9
adc resubscription of the same sensor ( #4947 )
...
* adc resubscription of the same sensor
* overload function name
* fix logic
* thermistors and map
2023-01-06 08:09:17 -05:00
rusefillc
ea8f75a6cb
Adc unregister ( #4684 )
...
* Sensor: unregister on the fly #4683
* Sensor: unregister on the fly #4683
* Adc unregister #4684
* Adc unregister #4684
2022-10-20 09:33:27 -04:00
Matthew Kennedy
9d132676fd
consolidate analog vs. temp info commands ( #4646 )
...
* consolidate analog vs. temp info commands
* cleanup
* guard
2022-10-10 07:44:20 -04:00
rusefillc
48a009fc33
Revert "Revert "memory savings ( #3195 )""
...
This reverts commit 0b3ef5f5
2021-08-27 06:18:05 -04:00
rusefillc
0b3ef5f553
Revert "memory savings ( #3195 )"
...
This reverts commit 52a24ee7
2021-08-27 02:32:31 -04:00
Matthew Kennedy
52a24ee773
memory savings ( #3195 )
...
* d
* dead code
* all your ram are belong to me
* turn off gpiochips we don't need
* save
* save by using the same file handle
* smaller stack ok
* these can be on the stack
* this is closer
* what about ccm?
* probing available
* now probe ccm
* ccm
* put stuff in ccm
* fsio
* memory usage
* memory
2021-08-26 23:05:31 +03: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
Matthew Kennedy
045db15dac
implement adc unsubscription ( #3149 )
...
* allow re-register of the same sensor
* adc unsub
2021-08-14 15:41:27 +03: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
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
Andrey
a926357a01
making code more testable
2021-07-14 22:37:05 -04:00
Matthew Kennedy
3f36d488bf
move ADC pin initialization ( #2660 )
...
* set the pin in adc subscription land
* remove from adc_inputs
* more subscriptions
* use our lib instead
2021-05-09 14:36: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
5fc1b6902c
fix #1740 the right way ( #1741 )
...
* fix
* put that back
2020-08-31 21:05:04 -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
rusefi
8f4aecf7ca
The Big Refactoring of 2019: folder structure #723
2020-08-02 20:46:40 -04:00