Andrey Gusakov
cfdb571515
max3185x: improve debug output
2024-03-11 16:54:58 -04:00
rusefillc
b089ddae5a
only: minor EGT
2024-03-10 18:40:11 -04:00
rusefillc
0da2644ea8
minor EGT
2024-03-10 15:20:49 -04:00
Andrey Gusakov
9f187ef455
max3185x: fix negative values for max31856
2024-03-10 12:56:03 -04:00
Andrey Gusakov
38d7430362
max3185x: lower SPI clock, fix divider
2024-03-10 12:56:03 -04:00
Andrey Gusakov
56d46e5fbe
max31855: also support max31856
2024-03-10 12:56:03 -04:00
Andrey Gusakov
8b63ff269e
max31855: temperatures can be negative
2024-03-10 12:56:03 -04:00
Andrey Gusakov
9fc1806ed6
max31855/egt: migrate to SensorType framework
2024-03-09 08:55:29 -05:00
Andrey Gusakov
b7d0dbd327
max31855: cleanups
2024-03-09 08:55:24 -05:00
Andrey Gusakov
452c600b18
max31855: typo fix
2024-03-09 08:02:43 -05:00
Andrey Gusakov
82784a3b8b
max31855: report EGT with 0.25C resolution
2024-03-09 06:24:26 -05:00
Andrey Gusakov
fd417db528
max31855: incapsulate
2024-03-09 06:24:26 -05:00
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