Commit Graph

3048 Commits

Author SHA1 Message Date
Josh Stewart 4cf7141b0b Add environment builds for mega2560 6/3 and 8/1 channel configurations. Add these builds to unit tests 2023-10-11 08:21:47 +11:00
Josh Stewart f657fc6293 Add option on secondary serial to use previous generic data list 2023-10-10 15:49:36 +11:00
155ac 279fa09788
Update speeduino.ini (#1113)
this fix parse problem in the msdroid debuglogs
2023-10-09 09:05:47 +11:00
tx_haggis b03db96ad7
Save 600+ bytes RAM (step 4 of 9) - deduplicate scheduler ISR functions (#1063) 2023-10-07 08:25:26 +11:00
Josh Stewart 55c98cab22 Allow mega2560 builds with non-standard _CHANNELS values 2023-10-06 20:43:15 +11:00
Josh Stewart fc536d15f0 Rename all ino files to cpp (Excluding speeduino.ino).
Confirmed this compiles OK in Arduino IDE 2.x
Frees up 8 bytes of RAM
2023-10-06 18:10:20 +11:00
tx_haggis 977ffa3119
MISRA: clean up logger header (#1108)
* Move log header definitions inside sd_logger.ino
It's the only place they are used.

* Convert to CPP - fixes build error

* Encapsulate fsIntIndex

* MISRA fixes

* Convert logger.ino -> cpp

* Conditonal compile - reclaim memory
2023-10-06 15:07:12 +11:00
Josh Stewart 650efeb6c4 202311-dev signatures and updates file 2023-10-06 15:01:23 +11:00
Josh Stewart 70d3f61573 Signatures for 202310 release 2023-10-06 12:09:43 +11:00
Josh Stewart 484e3916e3 Further cleanup work on secondary comms. Slight RAM free up. 2023-10-06 11:48:05 +11:00
Jon Billings 60c53b8887
fix-eng-protect-min-tooltip (#1020)
The original tool tip says that engine protections won't be active below min rpm.
the code implementation is actually that they won't be active until above the min rpm.
2023-10-06 11:23:12 +11:00
Teemo Vaas a1176742ea
Add initialisation for function pointers. (#1062)
This is just a safety change.
Provides safe initial functions for decoder related function pointers.
Prevents possibly hard to track board reset issues in case some future decoder accidentally leaves any of the functions uninitialised. Or when those pointers accidentally are used before proper values are assigned.

Flash usage 18bytes for atmega2560
Ram usage unaffected.
2023-10-06 11:13:27 +11:00
tx_haggis c0fe20d173
Add missing braces around expressions (#1103) 2023-10-06 10:39:10 +11:00
Josh Stewart f0b6ba030d Increase DFCO Hyster range to 0-500.
Fixes #1100
2023-10-05 23:02:15 +11:00
Josh Stewart 6c16f552a5 Fix for build failure on mega2561 with last commit 2023-10-05 22:38:57 +11:00
Josh Stewart 5140b31829 Initial work cleaning up Secondary Serial incl msDroid compat option
Fixes #1106
2023-10-05 22:24:13 +11:00
Josh Stewart 441b24bc84 Consolidate Secondary Serial live values command. Fixes Real Dash over Secondary Serial 2023-10-05 12:54:22 +11:00
Josh Stewart 94e90c5f63 Temporary workaround for RealDash communication using legacy interface 2023-09-18 16:07:07 +10:00
Josh Stewart 0c6a89b00d Correct mismatching serial block sizes 2023-09-18 16:02:45 +10:00
tx_haggis 294f537cd2
Fix command line for cppcheck v11 (#1099) 2023-09-18 15:39:20 +10:00
Josh Stewart d2c7a19ac1 Allow SD card formatting through TS Native interface 2023-09-18 10:12:02 +10:00
155ac a92ca8d191
Fix TS default values when no base tune is loaded, Fix Issue ( #1080 ) (#1092)
* Fix tunerstudio idle home loop error when no base tune is loaded
Fixes #1080
2023-09-13 09:15:07 +10:00
dependabot[bot] 1c5588ec97
Bump actions/checkout from 3 to 4 (#1090)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-06 09:56:41 +10:00
155ac d2aacf2933
Add More 3D Maps to the TunerStudio and Fixing some Formatting Errors in Some IDEs (#1087)
* add more 3d maps

* fix air con spacing

* convert tab spacing to normal spacing to fix IDE's text formating errors

* some more formating fixes
2023-09-04 10:43:41 +10:00
Josh Stewart a6201f3b72 Prevent low probability race condition when disabling pending schedules 2023-08-28 11:21:55 +10:00
tx_haggis 70c83077d9
Fix off by 1 error. (#1084) 2023-08-26 09:04:57 +10:00
Josh Stewart 3d33a2cbf5 Delay spark re-engagement by 1 revolution when using Fuel+Spark cut on a 4 stroke engine 2023-08-22 18:20:36 +10:00
Josh Stewart d13c7d0ab5 Ensure already scheduled events are stopped when rolling cut goes active 2023-08-22 14:38:17 +10:00
Josh Stewart ee807bb243 Rolling limiter fixes for launch and flat shift 2023-07-31 13:39:27 +10:00
Josh Stewart a0dd4bc8b5 Add some additional log fields for staging 2023-07-12 13:59:00 +10:00
mike501 e20bb1d2f8
Amend Speeduino ini hint for VR sensors to make it clearer which edge to pick (#1066)
* Amend hint for VR sensors
2023-07-10 14:25:31 +10:00
Josh Stewart 856bcfb242 Fix rolling limiter not working with coolant based RPM limit 2023-07-04 15:26:56 +10:00
Josh Stewart 572d1b274b Remove missing tooth 1 tooth margin for low res (<=12 tooth) wheels on per tooth ign mode 2023-07-03 13:25:04 +10:00
Josh Stewart 4a18cb3ec5 Fixes for missing tooth decoder with 2 stroke sequential 2023-07-03 13:23:49 +10:00
Josh Stewart f331271d5a Add aircon pins to the I/O summary 2023-06-29 15:48:13 +10:00
Josh Stewart adee2bcc7f Prevent lockup if 36-2-1 (4B11) pattern is selected 2023-06-29 12:19:23 +10:00
Josh Stewart a1ae3db072 Fix for incorrect bracket in last commit 2023-06-26 16:17:59 +10:00
Josh Stewart 624d255123 Standardise all the fuel schedule setting channel calls 2023-06-26 15:52:02 +10:00
tx_haggis d9b5554a8c
Save 600+ bytes RAM (step 3 of 9) - remove per-channel schedule calculation functions, use generic equivalents instead (#1018)
* calculateInjector1Timeout proxies calculateInjectorNTimeout
Unit test still pass.

* Remove calculateInjector1Timeout,
Replace with call to calculateInjectorTimeout
All unit tests still pass.

* Remove unecassary unit test

* calculateIgnition1Timeout proxies calculateIgnitionNTimeout
Unit test all pass

* Remove calculateIgnition1Timeout,
Replace with call to calculateIgnitionTimeout
All unit tests still pass.

* Remove unecassary unit test

* calculateIgnitionAngle\d proxies
calculateIgnitionAngle
Unit tests all pass

* Remove calculateIgnitionAngle\d
Just call calculateIgnitionAngle() directly

* Route rotary ignition angle calcs
through generic calculateIgnitionTrailingRotary
function.

* Remove calculateIgnitionAngle\d
Just call calculateIgnitionTrailingRotary() directly

* calculateInjectorStartAngle: inject all parameters
Do not rely on global state
Easier unit testing.

* calculateIgnitionAngle: inject all parameters
Do not rely on global state
Easier unit testing.

* Pull all ignition global vars into schedule_calcs

* Conditional compile for schedule calc vars
Saves memory

* Optimize: break out angleToTimeIntervalRev
from angleToTime. The new function will
always be inlined.

* Optimize - simpler code path
when no channel offset (zero)

Some optimization of arithmetic operations.

* Fix unit tests

* Fix bug on injector angle calculations
Need while loops to correctly bring intermediate
values into range

---------

Co-authored-by: Josh Stewart <josh@noisymime.org>
2023-06-26 12:13:53 +10:00
Josh Stewart 2a6c6bd8ed Add unit tests for staging and update other tests 2023-06-26 11:48:54 +10:00
Josh Stewart e44f4c7b54 Fix issue where staging fuel channels would be active even when not required 2023-06-26 10:46:11 +10:00
vaiski fcb78b2e9f
Small fix so that vvt2PID get updated in a correct frequency. (#1060) 2023-06-19 18:33:26 +10:00
Josh Stewart 46a7c6fda5 Fix for O2 calibration not being written to EEPROM 2023-06-13 16:37:21 +10:00
Josh Stewart 9c3e993b53 Initial commit of new rolling rev limiter 2023-06-09 16:10:43 +10:00
Josh Stewart 6c6cd9488d Add updates section for 202306-dev 2023-06-05 16:41:59 +10:00
Josh Stewart fed32686a5 Dev signatures for 202306-dev 2023-05-28 00:11:29 +10:00
Josh Stewart 97cdc4de8a Update version numbers in README 2023-05-27 00:12:08 +10:00
Josh Stewart dd41ae5f27 Signatures for 202305 release 2023-05-26 17:00:51 +10:00
Teemo Vaas 03f82ae8f0
HalfsyncToFullSync update (#1052)
Fix against possible condition that when fuel closeInjector assignments are changed, some injectors could remain open.
To prevent this, check was added to ensure that no fuel injection is ongoing when switching is done from halfsync to fullsync.
2023-05-26 14:59:04 +10:00
Josh Stewart 263b40dc96 Add warning that WMI and VVT cannot be used together.
See #1053
2023-05-26 14:45:10 +10:00