rusefillc
96d63adf4a
only:making technical debt more obvious
2024-02-12 10:00:08 -05:00
rusefillc
30c903e9ca
only:accelerometer refactoring & docs
2024-02-12 10:00:08 -05:00
Andrey Gusakov
89e17fe083
accelerometers: hide variables under guard
2024-02-12 09:49:05 -05:00
Andrey Gusakov
11c0b96c7d
accelerometer: add support for lis302dl and lis3dsh, autodetection
2024-02-12 09:49:05 -05:00
Andrey Gusakov
da8244a97a
Styling
2024-02-12 09:49:05 -05:00
Andrey Gusakov
94f08047df
EGT: max31855: run driver as a thread instead of slow callback
...
So do not call SPI communication from ISR context.
Also fix minor bus in driver:
- one spi config struct for all chips
- init spi config struct with some valid data (to be tested)
2024-02-02 23:17:56 -05:00
rusefillc
324378f252
LUA code and EGT makes ECU to hang fix #5889
2024-01-30 17:39:50 -05:00
Andrey Gusakov
6b957e33b7
IMU: select CAN vs SPI
2023-12-18 12:00:48 -05:00
rusefi
b141199292
some logging and some setting safety
2023-12-17 08:51:56 -05:00
Andrey Gusakov
54e6e12936
Accelerometer: no annoing printf
2023-12-16 11:50:34 -05:00
Andrey Gusakov
10093dca6e
CodeQL ?
2023-12-16 11:50:34 -05:00
Andrey Gusakov
846e2391d1
Accelerometer: add support for LIS2DH12 (LSM303AGR driver)
2023-12-16 11:50:34 -05:00
Andrey Gusakov
a5c7895528
sensors: accelerometer: use ChibiOS's lis2dw12 driver
2023-12-16 11:50:34 -05:00
Andrey Gusakov
e80c57fa5f
EFI_MEMS -> EFI_ONBOARD_MEMS
2023-12-16 11:50:34 -05:00
Andrey Gusakov
c7fe53e107
Rename LIS302DLCsPin to accelerometerCsPin
2023-12-14 00:31:46 -05:00
Matthew Kennedy
d31f535ca3
sanity in IMU data names/ranges
2023-11-27 14:59:21 -05:00
rusefillc
e384914c95
only:variable shadowing should be avoided #5676
2023-11-01 13:02:20 -04:00
rusefillc
781a236885
only:shall we be just a little less Toyota
2023-11-01 10:32:53 -04:00
rusefi
6b97f23eae
pursuit of truth
2023-10-31 09:36:45 -04:00
rusefillc
93f7077f92
Dup2 ( #5528 )
...
* reducing code duplication around ADC enums
* reducing code duplication around ADC enums
2023-08-21 20:06:54 -04:00
rusefillc
551e7d5b38
p from past
2023-06-05 11:44:56 -04:00
rusefillc
526f245beb
docs
2023-05-21 09:23:34 -04:00
Andrey
51d0f6e347
it's going to be painful
2023-04-29 00:44:00 -04:00
Matthew Kennedy
7396d466c4
cj125
...
(cherry picked from commit fd09ad7b4f2a9c450aedf4a535db4edd24bdcee1)
2023-04-29 00:15:54 -04:00
Matthew Kennedy
bb49b22294
joystick, lcd
...
(cherry picked from commit 61c17791b89fc6b5ae17df96d9498c088afdb09f)
2023-04-28 22:32:37 -04:00
Andrey
b5c27f01a6
we have centralized SPI management? do we?
2023-02-26 20:25:24 -05:00
Andrey
3bff1ea14d
placing board stuff into board folder, reducing hacky code
2023-02-26 20:25:24 -05:00
Andrey G
f25edb646d
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
8ea5969607
fix warnings ( #4840 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-11-27 10:11:14 -05:00
rusefillc
8eaa901595
avoid ctime in GPS UART ( #4824 )
...
Co-authored-by: Nathan Schulte <nmschulte@desmas.net>
2022-11-23 13:20:36 -05:00
Nathan Schulte
fd1115d01a
code style, GPS fixes (test, firmware) ( #4822 )
...
* tidy NMEA
* const in nmea
* correct gps test output
* fix GPS UART print statements
* cleanup feature toggles in settings
* fix comment typos, misc whitespace
2022-11-23 07:01:34 -04:00
Andrey G
e7b06cbfca
compile warnings: signed vs unsigned and unused ( #4713 )
2022-10-30 09:47:53 -04:00
Andrey G
91d4844e38
time routines refactor ( #4563 )
...
* Extract time helpers from engine_controller_misc to efitime.cpp
* Rename currentTimeMillis() to getTimeNowMs()
We have getTimeNowNt(), getTimeNowUs(), currentTimeMillis() and getTimeNowSeconds()
Align a bit.
find . -type f -name '*.c*' -exec sed -i 's/currentTimeMillis/getTimeNowMs/g' {} \;
* Rename getTimeNowSeconds() to getTimeNowS()
To align with Nt, Us, Ms versions.
* Some comments about getTimeNowLowerNt()
2022-09-11 13:06:03 -04:00
rusefillc
f9b50c2523
better method name
2022-08-22 18:07:59 -04:00
rusefillc
db8a965288
unconditional VVT PID logging
2022-08-17 00:47:31 -04:00
Matthew Kennedy
e4a0979dc2
Brain pin is enum class ( #4108 )
...
* change most usages to Gpio::
* board configs
* engine configs etc
* isBrainPinValid, smart gpio
* generator
* generator
* generator
* connector yamls
* kinetis enums
* cypress txt
* kinetis config
* frankenso
* config generator
* actually do it for the others
* disable skips for pr ci
* fix tle8888
* misc
* weird cast from int
* needs this operator too
* this can be an unsigned subtract
* happy tests
* s
* kinetis isConfigurationChanged weirdness
* missed J/K
* cypress efifeatures
* build script mistake (!)
* mistake in smart gpio
* debounce
* eg33
* kinetis, so needy
* it's pretty green, we can skip these again
2022-04-28 17:32:39 -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
Matthew Kennedy
16de438ab8
knock threshold table fix ( #4077 )
...
* fix knock threshold table
* defaults
* knock controller is engine module
* testable
* test builds
* knock tests work
* s
* format
* everyone loves changelogs
2022-04-18 08:03:16 -04:00
Matthew Kennedy
70ac0c378b
support lps22 ( #3900 )
...
* support lps22
* s
* changelog, UI
2022-02-07 17:09:51 -05:00
rusefillc
ca98e270e1
safer file name ( #3861 )
...
* safer file name
* safer file name
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-01-31 21:51:32 -05:00
Andrey
3b6ecb432b
migrating to SensorType::Rpm API
2022-01-20 22:38:08 -05:00
rusefillc
71b2dc762a
https://en.wikipedia.org/wiki/Pi
2022-01-14 21:23:27 -05:00
Andrey
940b04ab24
Let's always have TS structure so that unit tests can check values in outputChannels, kind of making outputChannels a god dump for state but whatever since Live View is coming
2021-12-07 20:18:47 -05: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
Scott Smith
cc95bd6c8e
Programmatically remove EnginePtr/inject, EXPAND_Engine, and WITH_ENGINE_TEST_HELPER* ( #3560 )
...
* Programmatically remove EnginePtr/inject, EXPAND_Engine, and WITH_ENGINE_TEST_HELPER*
for i in ": public EnginePtr " ", public EnginePtr" "EXPAND_Engine;" "EXPAND_Engine"; do
git grep -l "$i" | xargs sed -i "s/$i//g"
done
git grep -l "inject" | xargs sed -i "/inject[(][)]/d"
for i in WITH_ENGINE_TEST_HELPER_SENS WITH_ENGINE_TEST_HELPER_BOARD_CALLBACK WITH_ENGINE_TEST_HELPER; do
git grep -l "$i" | xargs sed -i "s/$i/EngineTestHelper eth/g"
done
git checkout firmware/controllers/core/engine_ptr.h
git checkout unit_tests/global.h
* Review fixups.
2021-11-16 16:52:11 -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
145316c497
less macro, more c++ ( #3549 )
...
* less macro
* s
2021-11-15 12:44:40 +01:00
Matthew Kennedy
75a2b5ef02
Knock retard ( #3396 )
...
* output gauge
* knock controller
* don't need that
* inject engine ref
* test knock
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-01 23:33:59 -04:00
Matthew Kennedy
8cd132b8a8
dead knock code ( #3255 )
...
* more unification
* hip stub
* comment
* guard
* channel idx
* include
* hip
* move in to engine
* hip9011
* dead stuff
* dead
* fsio
* lcd
* more dead
2021-09-21 20:40:20 -04:00