Commit Graph

2661 Commits

Author SHA1 Message Date
Josh Stewart 2ee28c36ee Merge branch 'master' of https://github.com/noisymime/speeduino 2021-03-23 09:52:44 +11:00
Josh Stewart efb6ab1df2 Add missing break in idle init. Possibly related to #546 2021-03-23 09:51:18 +11:00
Tjeerd 6179d4b5ae
Create better support for STM32F401 and STM32F411 blackpills (#548)
* Create support for STM32F401 and STM32F411 blackpills

* Small bug introduced now fixed.

Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2021-03-23 08:33:03 +11:00
Josh Stewart 324c1523e8 Expand Analog pin range for fuel/oil to A22 and add proper analog translate 2021-03-19 11:59:21 +11:00
Josh Stewart f02d75bfbe Some initial work for same51 board support 2021-03-13 08:43:51 +11:00
Josh Stewart d6fbe824d1 Signatures for 202104-dev 2021-03-13 08:38:48 +11:00
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 b690de934c Fix value limits on secondary fuel and ignition tables in TS 2021-03-02 08:52:14 +11:00
Tjeerd 060ec77010
STM32F401 build fix (#537)
* Remove disable RTC from build, now STM32F401 builds no problem

* bug fix

Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2021-02-24 10:15:52 +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
Josh Stewart 5fc35e21e9 Add back missing mixed-mode idle condition removed in last commit 2021-02-17 09:48:40 +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 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