Commit Graph

2440 Commits

Author SHA1 Message Date
Josh Stewart 57ebf498a1 Add fuel trim tables 5-8 2021-02-15 16:01:28 +11:00
Josh Stewart f76b9073b6 Correctly calculate required heap size on 32-bit systems 2021-02-15 15:22:07 +11:00
Josh Stewart 407d109836 Fix typo from #529 2021-02-15 11:09:22 +11:00
Josh Stewart 3562e38e7a Merge branch 'master' of https://github.com/noisymime/speeduino 2021-02-15 09:40:51 +11:00
tx_haggis 06d6a26e25
Isolate table3D member access in storage.ino (#529)
* refactor: extract coomon EEPROM load code

* refactor: optimize value indexing

* refactor: use EEPtr instead of raw index

* refactor: use STL style templates

* refactor: extract common EEPROM write code

* fix: EERef & EEPtr don't exist on all platforms

Use raw integer indexes and call EEPROM
methods instead.

* refactor: remove templates
2021-02-15 09:40:17 +11:00
Josh Stewart ab033d98a3 Merge branch 'master' of https://github.com/noisymime/speeduino 2021-02-15 08:59:53 +11:00
Josh Stewart 9e6f8a478c Remove eeprom check for serial comms action 2021-02-15 08:59:49 +11:00
DIY-EFI 809bd3a54c
Add Ford ST170 Decoder (#530)
This adds a decoder for the Ford ST170 engine.
This setup uses a 36-1 primary and a unique 8-3 secondary trigger.
The existing missing tooth deooder with fixed parameters is used as the primary to reduce duplication.
2021-02-14 09:15:53 +11:00
Pasi Kemppainen f67817b4ad
Dwell map addition (#525)
* Add dwell map

* Add information about the dwell settings

* Fix copy/paste error

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
2021-02-12 09:11:42 +11:00
Josh Stewart f7126b94b0 Initial (untested) work on 6cyl support with 36-2-2-2 2021-02-08 17:03:48 +11:00
Daniel Tobias e4909f441d
couple of signed overflow fixes (#519)
* the TS_CMD_VSS_RATIO* id values overflow signed 16 bit int on avr

switch to unsigned 16 bit value

define TS_CMD_VSS_60KMH  39168 //0x99x00
define TS_CMD_VSS_RATIO1 39169
define TS_CMD_VSS_RATIO2 39170
define TS_CMD_VSS_RATIO3 39171
define TS_CMD_VSS_RATIO4 39172
define TS_CMD_VSS_RATIO5 39173
define TS_CMD_VSS_RATIO6 39174

* make sure we don't overflow and accidentally set negative timing

currentStatus.advance can only hold a signed 8 bit value

* make sure we can't have a negative multiplier
2021-02-04 13:10:35 +11:00
Josh Stewart b045233ab5 Merge branch 'master' of https://github.com/noisymime/speeduino 2021-02-04 12:23:12 +11:00
Josh Stewart 68abcd9638 Remove RTC from mega2560 build 2021-02-04 12:22:30 +11:00
Daniel Tobias f59e45f286
programmable outputs being off is not an error, don't make them display red (#518) 2021-02-03 22:24:17 +11:00
Josh Stewart 414d664c03 Fix for excessive EEPROM writes causing disconnect when loading tune onto blank board 2021-02-03 11:51:17 +11:00
Josh Stewart 930f1ed198 Missed file from last commit 2021-02-02 15:45:13 +11:00
Josh Stewart 0e80fdf6d8 Move from using malloc() to a fixed heap size for 3d table. Closes #291 2021-02-02 15:41:04 +11:00
Josh Stewart a810bfbfd1 Remove fullStatus array for comms 2021-02-02 13:14:47 +11:00
Vitor Moreno B. Sales 132cc6200d
Fix pin 54 selection (#511)
Fix pin 54 listing and renamed macros to better understanding

Co-authored-by: Josh Stewart <josh@noisymime.org>
2021-02-02 10:00:04 +11:00
Vitor Moreno B. Sales c59153a9d7
Fix pages 13 and 14 EEPROM allocation (#487)
* Fix pages 13 and 14 EEPROM allocation

* Update must start from the end of EEPROM

* Fix allocation
2021-02-02 09:41:51 +11:00
Josh Stewart c7c0076e3b Prevent SPI pins from being re-moded on Dropbear 2021-02-01 10:27:50 +11:00
Josh Stewart fe910f1fa2 Tweek EEPROM write frequency to try and prevent disconnect when doing temp calibrations 2021-01-29 15:03:36 +11:00
Josh Stewart 54044edaad Separate chunkWrite command from the regular w command 2021-01-29 15:02:02 +11:00
Joe Mann 4ba9d15178
Pin definition for user board (#425)
* Pin definition for the Juice Box board

Ignition-only user board

* Update platformio.ini

Formatting corrections.

* Added JUICEBOX user board

User board and pin mappings

* Updated platformio.ini to reflect noisymime

* Add platformio.ini to gitignore

* Updated pin mappings

Pin mappings updated. Serial 2 now working

* Removed platformio.ini

* Match noisymime version

* Match noisymime version (2nd attempt)

* Update speeduino.ini

Match noisymime version to allow merge.

* JuiceBox pin layout added back in
2021-01-29 11:00:10 +11:00
adbancroft 690529637a
refactor: parameterize the MISRA checking script (#507)
* refactor: parameterize the MISRA checking script

The script contained hardcoded paths, which made it difficult
to use as part of the development workflow.

* ci!: use script relative path to pick source folder

* ci!: default output folder within source tree

* refactor: have cppcheck run the misra script

* refactor: use "rm -f" - remove existence check

* refactor: encapsulate into functions

* ci!: merge git MISRA logic into check_misra.sh

* ci!: count true errors, not style violations

* ci: use common MISRA check script

Co-authored-by: adbancroft <adbancroft@users.noreply.github.com>
2021-01-25 09:56:37 +11:00
Josh Stewart d77b3059bc Fix corrections unit test 2021-01-23 15:28:20 +11:00
Josh Stewart f155e692f2 Merge branch 'master' of https://github.com/noisymime/speeduino 2021-01-23 14:19:50 +11:00
Josh Stewart 1da8672bf7 RTC fixes for Teensy41 and mega2561 2021-01-23 14:19:45 +11:00
ric355 dd7c21ba9b
Restore the 'translate' attribute for iacStepHyster to 1. Fixes #498 by (#504)
preventing the value sent from TS to the firmware from being zero when
a value of 1 is selected in the dropdown.    Note the original change
set the minimum value to 1; this has been retained.

Co-authored-by: Richard Metcalfe <richard@richmet.com>
2021-01-23 09:32:01 +11:00
Josh Stewart 3aa21a160a Change name of rtc.h/.ino files to avoid conflict for stm32 2021-01-23 08:49:44 +11:00
Pasi Kemppainen 3b46db4ca2
STM32 CAN library improvement: addition of TX mailboxes (#508)
* CAN-bus library for STM32

This adds CAN-bus library for STM32. Mainly for STM32F4, but others can be added later.

* CAN2 and F446 support added for STM32 CAN library

Adds support for second can interface and F446 bit timings.

* Fix STM32 CAN pin selection and STM32F1 support

The previous way to select CAN pins wasn't actually working, so this fixes that problem and also the F1 support too.

* Fix building for Mega/Teensy

* Update cancomms.ino

* Update speeduino.ino

* STM32 CAN library fixes

* TX mailbox addition

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
Co-authored-by: Josh Stewart <josh@noisymime.org>
2021-01-23 08:40:39 +11:00
Pasi Kemppainen 941da74154
Fix Advance 1/2 gauges in TS ini. (#509)
Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
2021-01-23 08:25:37 +11:00
Josh Stewart 42ebf460a9 Merge branch 'master' of https://github.com/noisymime/speeduino 2021-01-22 16:31:18 +11:00
Josh Stewart 1175b0ddb6 Add AE check to see whether MAP_DOT or TPS_DOT are increasing 2021-01-22 16:31:14 +11:00
Josh Stewart ca6eef2b31 Initial layout work on RTC and SD 2021-01-22 16:16:30 +11:00
Pasi Kemppainen eebf8ed1f6
STM32 CAN-bus library fixes. (#503)
* CAN-bus library for STM32

This adds CAN-bus library for STM32. Mainly for STM32F4, but others can be added later.

* CAN2 and F446 support added for STM32 CAN library

Adds support for second can interface and F446 bit timings.

* Fix STM32 CAN pin selection and STM32F1 support

The previous way to select CAN pins wasn't actually working, so this fixes that problem and also the F1 support too.

* Fix building for Mega/Teensy

* Update cancomms.ino

* Update speeduino.ino

* STM32 CAN library fixes

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
Co-authored-by: Josh Stewart <josh@noisymime.org>
2021-01-20 17:32:03 +11:00
Antti Muurikainen 375ed6b5fe
Lookup afrTarget value also in case O2 sensor is disabled, but incorporate AFR is turned on (#502)
Co-authored-by: antti.muurikainen <antti.muurikainen@nodeon.com>
2021-01-20 13:01:04 +11:00
Josh Stewart 1af5ce1a91 Merge branch 'master' of https://github.com/noisymime/speeduino 2021-01-17 23:16:14 +11:00
Josh Stewart 5aeb794c2a Add teensy36 build and master uploads for teensy36 and teensy41 2021-01-17 23:16:09 +11:00
Piotr Rogowski 62dbec22c5
Fix Warmup Enrichment dialog responsiveness (#500)
Move description from extra field to context help
2021-01-12 11:24:01 +11:00
Josh Stewart d5e4370343 Small change to the MPX4115/KP234 baro sensor values 2021-01-02 09:33:49 +11:00
Josh Stewart 0ca79b1ecc Minor parts updates to v0.3 BOM 2021-01-02 09:32:34 +11:00
Josh Stewart 2aa86c7ebf Merge branch 'master' of https://github.com/noisymime/speeduino 2020-12-16 07:49:15 +11:00
Josh Stewart a92aa958d8 Minor parts updates for v0.4 BOM 2020-12-16 07:49:10 +11:00
James Portman e22faf56da
refactor calculateIgnitionAngles (#491)
easier to read and to follow the logic, remove code duplication

Co-authored-by: James <james@notarealemailaddress.com>
2020-12-15 13:00:29 +11:00
Josh Stewart 0c5472096f 202101 dev signatures 2020-12-15 10:25:01 +11:00
Josh Stewart 0995eb4ad4 Fix for misaligned spark2 memory 2020-12-13 15:36:01 +11:00
Josh Stewart 23bbee6b82 Add some missed update variables for 202012 2020-12-13 09:40:03 +11:00
Josh Stewart 5de6becbfa Signatures and base tunes for 202012 2020-12-12 08:09:01 +11:00
Josh Stewart b70cdd7421 Fix for 'sticking' VVT output 2020-12-11 12:50:13 +11:00