Andrey G
e086176fc1
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
Andrey G
a274b1f777
Feed mapAveragingAdcCallback() with volts not adc raw values ( #4940 )
2023-01-05 12:14:48 -05:00
Andrey G
8718ca076e
ADC and HIP: feed callback with voltage, not raw adc values ( #4939 )
...
* hip9011: use adcToVoltsDivided() helper
* hip9011: feed callback with volts, not raw adc value
2023-01-05 12:00:23 -05:00
Matthew Kennedy
b74ba44cff
Basic trigger scope implementation ( #4885 )
...
* 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
* tooth logger uses big buffer
* dead config
* config
* implement basic trigger scope
* good behavior
* enable on other alphax
* flag to enable second channel
* use 8 bit mode on the ADC for less memory use
* changelog
2022-12-10 23:00:12 -05:00
Nathan Schulte
57a8c29cc6
RTC toggle in hardware.cpp
2022-11-21 09:36:28 -05:00
Nathan Schulte
877fa21bd8
fix simulator build (via MinGW) ( #4799 )
...
* firmware: kill -9 dead hipLastExecutionCount
* firmware: pin_repository C includes efi_gpio.h
* firmware: controllers: tidy #endif comments
* firmware: primary_pins logic depends EFI_GPIO_HARDWARE
* firmware: only print ADC info if HAL_USE_ADC
* firmware: digital_input: tidy #endif comments
* firmware: digital_input logic depends on e.g. HAL_USE_ADC
* firmware: digital_input logic depends !EFI_SIMULATOR
* firmware: digital_input logic depends e.g. HAL_USE_ADC
* simulator: Makefile includes RUSEFI_LIB_C as CSRC
* Revert "GHA/build-firmware: pin agents to Ubuntu 20.04 (#4793 )"
This reverts commit 51e368245b
.
2022-11-18 23:43:43 -05:00
rusefi
0f21808d21
GM ETB bench test in NJ #4688
...
SENT to Lua integration
2022-10-22 22:46:37 -04:00
rusefillc
38164e2a0d
refactoring: inline method
2022-10-21 21:20:44 -04:00
Andrey G
27e00702f5
SENT core decoder and ICU driver ( #4648 )
...
* SENT: copy-paste SENT decoder from rusefi-hardware
* SENT: decoder: refactor, cleanup
* SENT: add ICU implementation
* SENT: decoder: use pch.h
* SENT: EFI_PROD_CODE guard
* SENT: ICU driver: fixes
* SENT: don't forget to SysLock
* SENT: call Start on Init (agrrrr)
* SENT: ICU: some limitations
ICU can capture on two firsts TIM inputs only. So move from PA2 to PA1
* SENT: mmmm... c++... i like it (no)
* SENT: autocalibrate tick time
* SENT: debug
* SENT: clean-up
* SENT: optimize slow channel mailboxes
* SENT: GetSignals() helper
2022-10-09 06:38:28 -04:00
Matthew Kennedy
9916ff9935
rtc cleanup ( #4596 )
...
* rtc formatting and code style
* more cleanup
* s
* time example
2022-09-20 05:28:42 -04:00
rusefillc
1c28ca0582
tear down Engine god object #4511
2022-09-15 21:46:01 -04:00
Andrey
25b6d39802
os_access.h dead?
2022-09-07 15:56:45 -04:00
rusefi
06552b6bee
servo is truly not alive
2022-09-06 16:29:12 -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
rusefillc
e16117f6ce
very random progress
2022-04-16 17:04:35 -04:00
rusefillc
f37943e56c
Feature request: odometer for engine break #3857
2022-02-25 00:46:45 -05:00
rusefillc
994221442b
I2C EEPROM support #3860
...
helping build
2022-02-06 21:26:22 -05:00
rusefillc
88e72a8116
I2C EEPROM support #3860
2022-02-06 19:48:20 -05:00
rusefi
9264b36ef9
I2C EEPROM support fix #3860
...
bare bones support works
2022-02-06 19:39:21 -05:00
Andreika
e6c705ece1
hellen_board_id + hellen-common.mk ( #3885 )
...
* Hellen_board_id
* move EXTI init before config load
* add NT2USF()
* Hellen_board_id unit-tests
* hellen-common.mk
* fix for older macos compiler
2022-02-03 11:24:31 -05:00
rusefillc
d90eb5259b
https://github.com/rusefi/alphax-2chan/issues/17
2022-01-16 10:48:31 -05:00
rusefillc
afdca12d86
refactoring?
2022-01-14 22:45:49 -05:00
rusefillc
4537561214
AlphaX few bytes of progress
2022-01-10 01:47:06 -05:00
Matthew Kennedy
e2a4504728
rpm calculator refactoring, gm 24x test ( #3585 )
...
* data
* stub test
* use getTimeSinceSyncPoint
* s
* s
* no
* test
* stray ;
* those were 1/10 what they were supposed to be
* actually check something
* dead log line?
2021-11-20 14:59:02 +03: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
Matthew Kennedy
7296593448
remove engine pointer passing ( #3556 )
...
* some
* more
* more
* the last?!
2021-11-16 04:15:29 -05:00
Matthew Kennedy
c1941f3a49
(void) -> () ( #3550 )
...
* static functions with (void)
* more
* Revert "more"
This reverts commit 246e53441f935451437df186ac92d7df26b62fb6.
* s
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-15 13:02:34 +01:00
Matthew Kennedy
95ef3f30ae
faster uniform adc cleanup ( #3334 )
...
* dead fast tps
* oooooh map avg on hh7
* adc v4 fast support
* new fast API
* hardware.cpp
* adc v2
* warning
* guard
* no check required
* stub cypress/kinetis
* kinetis and cypress stubs
* cleanup
* h7 adc speed
* adc skip
* configurable oversample
2021-10-10 22:59:25 -04:00
Matthew Kennedy
a4998ab7a8
Fast adc API ( #3327 )
...
* dead fast tps
* oooooh map avg on hh7
* adc v4 fast support
* new fast API
* hardware.cpp
* adc v2
* warning
* guard
* no check required
* stub cypress/kinetis
* kinetis and cypress stubs
2021-10-07 08:29:01 -04:00
rusefillc
613ef6fe21
OBD error renames
2021-10-03 01:30:42 -04:00
Matthew Kennedy
f6e269a3ab
remove old vss implementation ( #3208 )
...
* dead vss
* remove
2021-08-28 01:39:55 -04:00
Matthew Kennedy
df48806ec0
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
alxrMironov
dd1b7ffa24
Vehicle speed switching to frequency sensor #3106 ( #3148 )
...
* Add vehicle_speed_converter.h with realization.
* Add test_vehicle_speed_converter.cpp with realization.
* Add test_vehicle_speed_converter.cpp to Makefile
* Edit "VehicleSpeedSensor" from function pointer sensor to frequency sensor
* Fix "VehicleSpeedSensor" init function args
* Remove "VehicleSpeedConverter" empty constructor
* Edit vehicle_speed_converter.h code style
* Fix args and engine injection in "VehicleSpeedSensor" initialization procedure
* Remove old "Vehicle Speed" module initialization
* Revert "Remove old "Vehicle Speed" module initialization"
This reverts commit 100b7caa8c615c20eed3d0c23a49824b4e556148.
* Remove old "Vehicle Speed" module initialization pieces
* Revert "Revert "Remove old "Vehicle Speed" module initialization""
This reverts commit f559a726f1f7f5a7acacd1b6517e571743e84327.
* Debug changes
* Revert "Debug changes"
This reverts commit f7e2be1a8a46c6f3f93f14f002b2f2db539da8e2.
* Another debug changes
* More debug changes
* And more debug changes.
* Revert "Another debug changes"
This reverts commit 914fbb1df42c37e4b5ecbb119bb45e7cffdf4064.
* Revert "More debug changes"
This reverts commit 0b2d96d461c3cd9b0f1ae97ed110b8effe6b0cc6.
* Revert "And more debug changes."
This reverts commit 06ae8daded0e6e1c025e4e5058b47283f4adfe92.
* Add "Vehicle Speed" sensor reconfiguration
* Revert "Add "Vehicle Speed" sensor reconfiguration"
This reverts commit a089a6d563dd710004ce1a7da1744b0b4b90c3b1.
* Revert "Revert "Add "Vehicle Speed" sensor reconfiguration""
This reverts commit 7b2bb8af4b3caa547236ca59e4c4bdb3ac1200cc.
* Debug changes
* Another debug changes
* Fix another debug changes
* Another debug changes 2
* Revert "Another debug changes 2"
This reverts commit cfad55141eec125b2f1d35fb95d9f46b54f666b6.
* Revert "Fix another debug changes"
This reverts commit 9bc2c74a3be6fd896827ff48cf4580e7657529c0.
* Revert "Another debug changes"
This reverts commit 4337ed8cad8dff508d093944eb3f75e9a69e4a77.
* Edit class FrequencySensor, make it more RAII
* Debug changes
* Debug changes 2
* Debug changes 3
* Revert "Debug changes 3"
This reverts commit 52a7054c122b5157540fe45a055a84b57478d722.
* Revert "Debug changes 2"
This reverts commit dec79fb913344ccb4b8614910ad62e6c129a243e.
* Revert "Debug changes"
This reverts commit eb08d7a529b55ba397a7dd2c154b76eab42f212b.
* Revert "Edit class FrequencySensor, make it more RAII"
This reverts commit 3a0bb1d3f1dd23c1b04e4cc1c526cfdc67ae86a3.
* Remove VSS pin definition in "Citroen Berlingo" engine config.
This reverts commit 3a0bb1d3f1dd23c1b04e4cc1c526cfdc67ae86a3.
* Remove VSS pin definition in "Dodge Neon" engine config
Co-authored-by: alxrMironov <330OMcorporative>
2021-08-24 00:55:41 -04:00
rusefillc
22c0021751
No pins should be restarted for no reason during config change #3151
2021-08-14 04:35:43 -04:00
rusefillc
bc991eb816
Hellen Nissan defaults are no longer valid #3143
2021-08-12 17:46:10 -04:00
rusefillc
46e6e621da
reduce chance of invalid CAM setting fix #3105
2021-08-03 22:15:40 -04:00
Matthew Kennedy
4e6b61234f
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
Andrey
84e1f216d6
unit test for vehicle_speed.cpp #3081
2021-08-01 12:09:53 -04:00
Andrey
379996bf81
todo
2021-07-25 12:45:28 -04:00
Andrey
230a5d46e7
Clutch switch inverted options do not invert detected pedal position
...
#3044
2021-07-24 18:44:13 -04:00
rusefillc
809ece6c91
Clutch switch inverted options do not invert detected pedal position #3044
2021-07-24 15:54:51 -04:00
Matthew Kennedy
1a73dcc46e
fast adc callback ( #3031 )
...
* fast adc callback
* guard
* missed one
* now cypress will be happy
2021-07-23 14:19:59 -04:00
Matthew Kennedy
e3849b95d5
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
050a009b3d
trigger signal debug pins - logic level output #2959
2021-07-15 01:46:30 -04:00
Andrey
0f30fec7c2
trigger signal debug pins - logic level output #2959
2021-07-15 01:28:44 -04:00
rusefillc
8e8737d6ce
trigger signal debug pins - logic level output #2959
2021-07-15 00:03:31 -04:00
Andrey
d1b3eb065d
trigger signal debug pins - logic level output #2959
2021-07-14 23:20:18 -04:00
Andrey
bb38cc60eb
trigger signal debug pins - logic level output #2959
2021-07-14 23:05:51 -04:00
Andrey
b53b23b140
trigger signal debug pins - logic level output #2959
2021-07-14 22:51:08 -04:00
Andrey
122ef9f637
making code more testable
2021-07-14 22:37:05 -04:00