Commit Graph

2477 Commits

Author SHA1 Message Date
Josh Stewart 5b6d280773 Add Microsoft temp files to gitignore 2021-07-06 20:32:18 +10:00
Josh Stewart f43d426018 Remove hardware design files 2021-06-05 23:29:07 +10:00
Pasi Kemppainen 1f8b8eb486
Fix 2.0.0 STM32 core and F1 support (#587) 2021-06-03 10:07:11 +10:00
DIY-EFI 74656300ca
Fix CORE4 Spare In 1 (#584)
Pin A13 is "Sparein1", allocating it to the second O2 sensor prevents it from working, an unused pin (A5) has now been allocated to O2_2
2021-05-22 09:58:24 +10:00
tx_haggis 12de8294a8
Add missing commas (#571) 2021-04-28 09:58:46 +10:00
Josh Stewart e187285e63 Small fixes for broken builds from the last few PRs 2021-04-22 10:58:50 +10:00
Pasi Kemppainen 982e52db1b
VVT2 addition and closed loop VVT improvement (#551)
* VVT2 and closed loop VVT improvement

* Fix building for latest changes

* Fix CRC error

Co-authored-by: Josh Stewart <josh@noisymime.org>
2021-04-22 08:56:39 +10:00
tx_haggis 1f47f8dcd6
Additional compiler warning fixes (#561)
* Remove unnecessary and invalid forward declarations

* Flag unused parameter
2021-04-21 22:24:35 +10:00
tx_haggis 1a4188aa31
Fix build warnings (#558)
* Flag unused parameters

* Fix compile warnings: abuse of static inline

Place functions in correct order & only forward
declare when necessary

* Suppress unused parameter warnings

Co-authored-by: Josh Stewart <josh@noisymime.org>
2021-04-21 16:33:19 +10:00
Josh Stewart e136d0ea57 Merge branch 'master' of https://github.com/noisymime/speeduino 2021-04-21 15:12:33 +10:00
Pasi Kemppainen 140042d27a
Build fix (#552) 2021-04-21 15:06:59 +10:00
Josh Stewart fcdc2d2d5f Merge branch 'master' of https://github.com/noisymime/speeduino 2021-04-21 14:53:01 +10:00
Josh Stewart 787405f029 Board compatibility work 2021-04-21 14:52:58 +10:00
tx_haggis 02cb7bebd6
Isolate table3D member access in comms.ino (#545)
* fix!: fix ODR violations

* refactor: move page specific code into a separate CPP file

* refactor: page getter/setter share mapping logic

Extract common page-to-entity mapping logic from
getPageValue() & setPageValue() - place in map_page_offset_to_entity()
and share.

* performance: optimize CRC calc

Calculate page CRC by iterating over entities & tables.

* CRC table calculation - use table iterator

* refactor: use iterators for sendPage()

Re-implement sendPage() using page & table iterators
Future proof & fast

* refactor: sendPageASCII()

Pull put shared code into functions.
Use table iterator

* refactor: use shared axis factor

This puts the axis factor usage in one place

* refactor: encapsulate page size & count

Added getPageCount() & getPageSize()

* Added static_assert for all pages.

* Remove C++ language elements

namesapces, scope resolution, enum struct

* Rename comms.ino to comms.cpp

Provides better encapsulation of non-global
data & functions.

INO files are all mashed together by some
custom process. So everything becomes global and
static functions/variables aren't really private to
 the translation unit. Thus breaking encapsulation :-(
2021-04-21 14:36:27 +10:00
Vitor Moreno B. Sales dd3847bfd3
STM32 fixes and tweaks (#553)
* STM32 fixes and tweaks

Removed generic STM32F103 options from PlatformIO
Added optional serial compilations on PlatforIO
Make sure all timers are stoped at boot
Small speed improve at SPIasEEPROM
Added timers usage table to board_stm32_official.h

* Added base board
2021-04-15 10:26:58 +10:00
Josh Stewart 9a7ab944d4 Fix spark 2 load axis showing incorrect name 2021-04-07 10:55:37 +10:00
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