Commit Graph

1052 Commits

Author SHA1 Message Date
Josh Stewart 62e889eaa9 Signatures and base tunes for 202103 2021-03-02 21:32:14 +11:00
Josh Stewart 3ab898f5dd Missed file from last commit 2021-03-02 13:53:15 +11:00
Josh Stewart fd52de49d6 Potential fix for injector priming running multiple times 2021-03-02 13:52:11 +11:00
Josh Stewart 613e2685bf Correctly scale n2o_maxMAP variable. Fixes #533 2021-02-22 14:30:08 +11:00
celso acyr 8b57f37e5c
Condition vss idle adv (#454)
* Vss condition in Idle Advance.

VSS value condition to activate Idle Advance.

* Update 1

Adequacy of verification

Co-authored-by: Josh Stewart <josh@noisymime.org>
2021-02-22 11:32:47 +11:00
Dave Smith a9b1cba37b
TBI Staging (#496)
* Allow staged injection if we have throttle body injection regardless of the number of cylinders.

* Allow staged injection if we have throttle body injection regardless of the number of cylinders.

Co-authored-by: David Smith <dave@smithfamily.org.uk>
Co-authored-by: Josh Stewart <josh@noisymime.org>
2021-02-22 11:24:11 +11:00
Pasi Kemppainen 7d3df68dd3
Added poll level cam trigger type for missing tooth decoder. (#450)
* poll-level setting for speeduino.ini

* Update globals.h

* Simple poll level decoder

* Changed the poll level check to happen at tooth #1. Not at missing tooth.

* Set trigger edge automatically correct to work with closed loop VVT.

* Fix typo

* Changed to READ_SEC_TRIGGER() -macro

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
2021-02-22 11:14:46 +11:00
Josh Stewart f866114b22 Add degreesOver argument for cranking rpm function (Matches regular rpm function) 2021-02-22 10:44:12 +11:00
Josh Stewart b36cf51fe0 Fix load source lookup on the secondary spark table. Fixes #532 2021-02-20 19:21:32 +11:00
Josh Stewart 116c05b611 Subaru 36-2-2-2 H6 decoder for testing 2021-02-17 12:34:42 +11:00
Pasi Kemppainen a3373878c0
Add option to run PWM idle valve before engine is cranked over (#458)
* Add option to run PWM idle valve before engine is running

* Update updates.ino

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
2021-02-17 08:56:31 +11:00
Josh Stewart f552ad1fe8 Complete control files for MC33810 2021-02-16 09:31:44 +11:00
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 68abcd9638 Remove RTC from mega2560 build 2021-02-04 12:22:30 +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
Josh Stewart d77b3059bc Fix corrections unit test 2021-01-23 15:28:20 +11:00
Josh Stewart 1da8672bf7 RTC fixes for Teensy41 and mega2561 2021-01-23 14:19:45 +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
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
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
Josh Stewart 4c9321f6b0 Add command handler for stm32 reboot button 2020-12-08 09:24:34 +11:00