rusefillc
50d8aa37b4
refactoring: inline method
2022-10-21 21:20:44 -04:00
Andrey G
850848d2ee
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
ff9ce3730a
rtc cleanup ( #4596 )
...
* rtc formatting and code style
* more cleanup
* s
* time example
2022-09-20 05:28:42 -04:00
rusefillc
ec0e567989
tear down Engine god object #4511
2022-09-15 21:46:01 -04:00
Andrey
ab4b451195
os_access.h dead?
2022-09-07 15:56:45 -04:00
rusefi
f399e275b2
servo is truly not alive
2022-09-06 16:29:12 -04:00
Matthew Kennedy
bc6a87cadc
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
70e4d118ef
very random progress
2022-04-16 17:04:35 -04:00
rusefillc
2ab8a3df4e
Feature request: odometer for engine break #3857
2022-02-25 00:46:45 -05:00
rusefillc
3cf6a392cb
I2C EEPROM support #3860
...
helping build
2022-02-06 21:26:22 -05:00
rusefillc
8892cd26ff
I2C EEPROM support #3860
2022-02-06 19:48:20 -05:00
rusefi
ad57fd1628
I2C EEPROM support fix #3860
...
bare bones support works
2022-02-06 19:39:21 -05:00
Andreika
2beca221a3
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
a3f2dc84ae
https://github.com/rusefi/alphax-2chan/issues/17
2022-01-16 10:48:31 -05:00
rusefillc
6ca6c53786
refactoring?
2022-01-14 22:45:49 -05:00
rusefillc
0d8e4d5222
AlphaX few bytes of progress
2022-01-10 01:47:06 -05:00
Matthew Kennedy
a342bee57e
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
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
cb032fb1ea
(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
abb6513744
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
31ffb0add4
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
b4884498cb
OBD error renames
2021-10-03 01:30:42 -04:00
Matthew Kennedy
730b26d034
remove old vss implementation ( #3208 )
...
* dead vss
* remove
2021-08-28 01:39:55 -04: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
alxrMironov
f926d2ccba
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
bd410d0c1b
No pins should be restarted for no reason during config change #3151
2021-08-14 04:35:43 -04:00
rusefillc
5e663200fd
Hellen Nissan defaults are no longer valid #3143
2021-08-12 17:46:10 -04:00
rusefillc
c1275af29c
reduce chance of invalid CAM setting fix #3105
2021-08-03 22:15:40 -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
Andrey
511b5c22dd
unit test for vehicle_speed.cpp #3081
2021-08-01 12:09:53 -04:00
Andrey
17ee26293c
todo
2021-07-25 12:45:28 -04:00
Andrey
37247db383
Clutch switch inverted options do not invert detected pedal position
...
#3044
2021-07-24 18:44:13 -04:00
rusefillc
ca34562d5d
Clutch switch inverted options do not invert detected pedal position #3044
2021-07-24 15:54:51 -04:00
Matthew Kennedy
09192cfc4d
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
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
c513e976ed
trigger signal debug pins - logic level output #2959
2021-07-15 01:46:30 -04:00
Andrey
23be588af6
trigger signal debug pins - logic level output #2959
2021-07-15 01:28:44 -04:00
rusefillc
b65c4b5612
trigger signal debug pins - logic level output #2959
2021-07-15 00:03:31 -04:00
Andrey
6c8e80285e
trigger signal debug pins - logic level output #2959
2021-07-14 23:20:18 -04:00
Andrey
85b9bbaa68
trigger signal debug pins - logic level output #2959
2021-07-14 23:05:51 -04:00
Andrey
e721c1768f
trigger signal debug pins - logic level output #2959
2021-07-14 22:51:08 -04:00
Andrey
a926357a01
making code more testable
2021-07-14 22:37:05 -04:00
Matthew Kennedy
7a21f7fbc0
inject ( #2938 )
2021-07-09 17:02:25 -04:00
Andrey G
710a512fe7
Hw layer rearrangement ( #2703 )
...
* max31855: move to sensors
* uart GPS driver: move to sensors and rename
* i2c_bb: move to drivers
* LCD HD44780: move to drivers
* ping?
2021-05-16 06:01:00 -04:00
Matthew Kennedy
c26987b96b
Destroy all shared logger ( #2574 )
...
* most of shared logger
* a few more
* one more
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-21 14:28:48 -04:00
Matthew Kennedy
ad71016862
rip the bandaid: find-replace most of scheduleMsg ( #2572 )
...
* biiiig find replace
* more trivial find replace
* pwm
* almost all of them
* few more
* gpio
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-21 12:53:13 -04:00
Matthew Kennedy
bd1c84fa62
Logging remove 3 ( #2568 )
...
* ts logger
* sensors
* wideband too
* missed one
* init
* motors, pid, etc
* vvt
* more
* idle
* missed one
* dynoview
* launch
* can
* console IO
* s
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-20 14:09:41 -04:00
Matthew Kennedy
4e3e95db2d
replace print/printMsg with scheduleMsg ( #2497 )
...
* start cleaning
* disabled feature means don't print that it's disabled
* cli
* usages
* printMsg -> scheduleMsg
* this is alllll dead now
* no crlf please
* all hope is lost if you manage to hit this line
* tests
* tests
* ok we did actually need that part
* sim
* d
* kinetis
* it did ifdef, not if
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-26 17:23:26 -04:00
Matthew Kennedy
6491c83f73
read configuration from flash exactly once ( #2481 )
...
* early hw init
* s
* read configuration exactly once
* cleanup
* housekeeping
* test friendly
* ugh bad merge
* that is a noop
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-25 18:16:26 -04:00