Commit Graph

228 Commits

Author SHA1 Message Date
rusefillc 8a5ba90692 cleaner guards 2024-03-15 14:15:53 -06:00
rusefillc 826bf8e308 only:cleaner guards 2024-03-15 11:46:56 -06:00
Andrey Gusakov f9e0dddc4c max3185x: compare not assign 2024-03-12 19:45:18 -04:00
Andrey Gusakov 8972fedb41 max3185x: show device type 2024-03-12 19:45:18 -04:00
Andrey Gusakov c13897a2d1 max3185x: human indexing 2024-03-11 16:54:58 -04:00
Andrey Gusakov 33adccc038 max3185x: typo fix 2024-03-11 16:54:58 -04:00
Andrey Gusakov 247bf24a20 max3185x: restart driver thread on settings change 2024-03-11 16:54:58 -04:00
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 fd09ad7b4f)
2023-04-29 00:15:54 -04:00
Matthew Kennedy bb49b22294 joystick, lcd
(cherry picked from commit 61c17791b8)
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