Commit Graph

2645 Commits

Author SHA1 Message Date
Josh Stewart 318677fbc7 SD options use the MCU project setting now. Allows Teensy adapter to access SD dialogs 2022-01-11 14:42:38 +11:00
Josh Stewart 0a7d27370e Merge branch 'master' of https://github.com/noisymime/speeduino 2022-01-11 11:20:59 +11:00
Josh Stewart 25bc7dfc0d Working O2 calibration on stm32 2022-01-11 11:20:54 +11:00
Tjeerd 189ca7e8c2
fixing sram eeprom emulation (#761)
Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2022-01-10 22:15:15 +11:00
Tjeerd 1944dd22e9
Bug fix for the eeprom reset by key if emulated EEPROM on SPI flash is used. (#769)
Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2022-01-10 22:13:59 +11:00
Josh Stewart 2096c1c91d Attempted fix for stm32 comms issue 2022-01-10 21:34:32 +11:00
Josh Stewart e2dd7a388e Fix for O2 calibration not working on mega2560 2022-01-09 17:05:05 +11:00
Josh Stewart 9121b45995 Signatures for interim release 202202 2022-01-09 16:26:30 +11:00
Josh Stewart 9eb61271cf Signatures for 202201 release 2022-01-07 20:55:37 +11:00
Josh Stewart 300c8699cc New Comms change to prevent lockup during large table writes 2022-01-07 16:49:04 +11:00
Josh Stewart 76f6a7f1d5 Use common (and faster) is2ByteEntry() function for programmable IO. This fixes #569 (Though it was likely resolved earlier anyway) 2022-01-05 16:41:12 +11:00
Josh Stewart 14e26069af Disable filter temporarily after seeing cam signal on dual wheel to prevent tooth #1 from being filtered out. Fixes #713 2022-01-05 15:01:23 +11:00
Josh Stewart a05057c194 Merge branch 'master' of https://github.com/noisymime/speeduino 2022-01-05 13:14:23 +11:00
Josh Stewart b74355535c Allow up to 32-bit values for signed div 100 and unsigned div 10 2022-01-05 13:14:17 +11:00
Josh Stewart 65bcf5b1a7 Add unit tests for maths functions 2022-01-05 13:13:41 +11:00
Pasi Kemppainen e66f5ba7cd
WMI fixes (#759) 2022-01-05 10:33:33 +11:00
Josh Stewart 464933b38f Similar 100% DC fix for PWM idle 2022-01-04 23:23:15 +11:00
Josh Stewart 4e00f12415 Fix for boost PWM output not working correctly at 100% DC 2022-01-04 22:58:44 +11:00
Josh Stewart 5e7eebf301 Fix halfPercentage() function issue 2022-01-04 22:12:19 +11:00
Josh Stewart b3843bb293 Fix broken unit tests 2022-01-04 12:49:03 +11:00
Josh Stewart bd9d59a145 Fixes to 202201 update routine 2022-01-04 12:19:58 +11:00
Pasi Kemppainen 23163bc341
VVT fixes (#758) 2022-01-04 09:30:43 +11:00
Josh Stewart fa9633b17e Fix unit tests from last commit 2022-01-01 19:45:23 +11:00
Vitor Moreno B. Sales 04d21e6dcc
Increase TPS resolution to 0.5% (#608)
* Increase TPS resolution to 0.5%

Fix TPS scale across the code

Fix TPS range for boost table

Update sensors.h

* Update all tables to use TPS resolution

* All tables use new TPS resolution

Fixed wrong MAP scale, added fuel switch % for TPS

Fix rotary

* Fix merge conflicts
2022-01-01 19:30:21 +11:00
Josh Stewart 770158a5fe Show all log files on SD card, not just the first page 2021-12-24 15:30:37 +11:00
Josh Stewart 9d883b9b72 Make sure SD logging will continue in next file once size limit is reached 2021-12-24 14:58:53 +11:00
Josh Stewart 13c2f953c0 Add button to format SD card 2021-12-24 13:30:14 +11:00
tx_haggis be0f2c69c7
Add table2d tests (#748)
* Improve native debug experience

* Add unit tests for table2d
2021-12-23 15:07:38 +11:00
DeionSi 2cd7ed327b
Chrysler NGC 6 and 8 cylinder decoder (#707)
* Chrysler NGC 6 and 8 cylinder decoder

* Extra comments

* Only recalculate new ignition mode for valid teeth
2021-12-23 14:56:08 +11:00
DeionSi 0605b7f822
Added loops per revolution gauge and adjustments to loops per second gauge (#741) 2021-12-23 14:45:48 +11:00
Pasi Kemppainen 34116ad223
New CAN-bus library for STM32 (#725)
* Use new CAN-library

* Fix CAN3 pin number

* Fix building on other platforms
2021-12-23 13:46:13 +11:00
Josh Stewart d0bbb24563 Fix typo bracket in last commit 2021-12-22 16:10:06 +11:00
Josh Stewart 2892ac04fc Complete triggering options for SD logging 2021-12-22 15:20:39 +11:00
Tjeerd 0322d31ccc
Added function: Reset eeprom with key (#657)
* Add eeprom reset with key

* small improvements

* increased robustness against accidental erase of EEPROM.

Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2021-12-22 14:53:36 +11:00
Vitor Moreno B. Sales d9bde09f5e
Enabled softRevLimit time limit (#602)
Co-authored-by: Josh Stewart <josh@noisymime.org>
2021-12-22 13:29:13 +11:00
Daniel Tobias 241917cc7f
don't manually set values for FILTER defaults, use defines (#698)
fixes a few inconsistencies where defaults are set to different values, defaults for generic pressure sensors
2021-12-22 07:56:55 +11:00
Josh Stewart 744621db34 Slight tweaks to composite logger 2021-12-21 14:34:54 +11:00
Josh Stewart 30e566068c Remove extra tooth log buffer definition. Slight RAM free up 2021-12-21 12:54:38 +11:00
Josh Stewart 06c9ae46c5 Add timeout check on new serial 2021-12-21 12:53:53 +11:00
Josh Stewart 809fd9d55b New Comms Tooth and Composite loggers 2021-12-20 16:22:23 +11:00
Josh Stewart 5051c55e84 Attempt to select correct Time library for avr2560 on PIO/Arduino IDE 2021-12-19 22:58:14 +11:00
Josh Stewart c172141da3 Compile warnings cleanup 2021-12-19 22:38:53 +11:00
DylanRooijakkers 0a71d0972b
Boost by gear (Open loop) (#729)
* Boost by Gear

* Minor changes to PR

- Changed *2 into bitwise operator
- Reserved 1 extra bit for boostByGearEnabled for 2 additional boost by gear modes in the future

* Added mode to set percentage of boost target table

* Boost by Gear (Open loop)

Added Boost by Gear to open loop boost control
2021-12-19 09:43:14 +11:00
DeionSi db8722e3d0
Add MPX4100A pressure sensor;Fix Bosch 3 Bar TMAP baro setting (#693)
* Add MPX4100A pressure sensor;Fix Bosch 3 Bar TMAP baro setting.

* Correct MPX4100A pressure sensor values

* Rename sensors according to datasheets
2021-12-13 08:10:56 +11:00
Josh Stewart 8430d50ec4 Fix broken unit tests 2021-12-10 14:44:27 +11:00
Josh Stewart 18f173f11b Add command to delete log file from SD 2021-12-10 14:29:01 +11:00
Josh Stewart 93aa6f5fd5 Fix Teensy RTC setting bug 2021-12-10 14:26:13 +11:00
Josh Stewart f21a19595f Fix missing header string for Fan duty. Add static assert to try and ID this in future 2021-12-10 13:29:25 +11:00
Josh Stewart 49966d1976 Merge branch 'master' of https://github.com/noisymime/speeduino 2021-12-09 20:41:05 +11:00
tx_haggis 9ad500189b
Performance: 15%+ loop/sec speedup by optimising 3d table bilinear interpolation (#735)
* Bi-linear interpolation - round towards nearest integer

Add the equivalent of 0.5 to the final calculation pre-rounding.
This will have the effect of rounding to the nearest integer, rather
than truncating. I.e. rounding down

* Unit tests: isolate table tests and check interpolation x/y bins

* Unit tests: add native table3d tests

* Unit tests: derive min/max from axis test values

* Unit tests: more detailed messages

* Unit tests: fix rounding & unit tests

* Performance

* Performance: use uint16_t instead of unsigned long
for the fixed point math: we only need the fractional
part. I.e. 1.16 not 16.16

* Use narrowest possible type

* Optimise bin position logic for performance

* Only promote to uint32_t when really required.

* Simplify bin checks - no zero width bins

* Save memory: use a single byte for the last bin caches

* Performance: increment pointers instead of
repeatedly dereferncing array by index.

* Comments

* Incorrect array underrun logic

* Rename type, comments

* Fix unit tests
2021-12-09 20:40:31 +11:00