Commit Graph

2595 Commits

Author SHA1 Message Date
Josh Stewart 2368b8890d Merge branch 'master' of https://github.com/noisymime/speeduino 2020-06-05 09:30:42 +10:00
Josh Stewart c3291e8768 Minor corrections on HW test modes 2020-06-05 09:30:06 +10:00
Vitor Moreno B. Sales 7171c12a6a
Fix bu introduced on last commit (#394) 2020-05-31 18:35:25 +10:00
Vitor Moreno B. Sales 27cc6ddf4c
Fix recently added functions (#393)
Changed aseTsnDelay name to aseTaperTime
Added a default aseTaperTime to 0.1S
aseTsnStart isn't needed, removed
Added IAC_STEP_OL taper, big thanks to Ryan
Default dfcoMinCLT is 0C, added calibration offset and increased it to 40C as described on updates.ino
Changed bitRead to BIT_CHECK
Fix dfcoStart wasn't been reseted if conditions was droped before elapsed time causing next DFCO activation right away
Few cosmetical changes on ini

Update commits counter
2020-05-29 12:25:33 +10:00
Josh Stewart 141078639b Merge branch 'master' of https://github.com/noisymime/speeduino 2020-05-29 12:21:33 +10:00
Josh Stewart fc43f3a479 Allocate memory for fuel/oil pressure inputs 2020-05-29 12:21:28 +10:00
Josh Stewart 2c1269eef9 June development signatures 2020-05-25 09:14:48 +10:00
Josh Stewart 7d28b454c3 Final minor cleanup 2020-05-24 21:36:28 +10:00
rei3co 4fb28a9521
Update contributing.md code style guide links from old to new wiki. (#389)
* Update contributing.md code style guide links from old to new wiki.

* Remove /en from new wiki link.
2020-05-23 08:53:37 +10:00
Josh Stewart 64ef8f40ae Signature and base tunes for 202005 2020-05-22 15:38:15 +10:00
Josh Stewart 326405ac55 Flag an error if an invalid MAP reading is calculated 2020-05-22 15:26:20 +10:00
Josh Stewart 24260d1368 Add missing init sections for 36-2-1 2020-05-22 13:49:33 +10:00
Josh Stewart 1a87223472 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-05-22 13:29:45 +10:00
metacomgd bcf9063aaa
Added 36-2-1 basic support (#366)
Co-authored-by: k <k@mj.gd>
2020-05-22 13:27:20 +10:00
Tjeerd 4d5d961486
fix building for ST arduino core 1.9 (#387) 2020-05-22 13:23:05 +10:00
Josh Stewart 61b92dd616 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-05-22 11:43:30 +10:00
Josh Stewart d43767a2a3 Testing PID method for VVT 2020-05-22 10:35:13 +10:00
Josh Stewart f51a43f768 Remove channel checks from the hardware test outputs 2020-05-21 22:20:37 +10:00
Vitor Moreno B. Sales b321e8e17d
[PID] Increase parameters and output resolution (#377)
Parameters are 0.03125% for kP and kI, 0.00981% for kD. Increased output 4 times to give enought room for kP.

PID now ignore compute if input is zero to avoid overshoot, kI and kD part as well.

Added idlePID.Initialize() to crank part to start PID from a working condition.

Show idleLoad when cranking.

Fix TS numbers, increase max value

Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-05-21 19:29:38 +10:00
Josh Stewart 904e1956f4 For Travis to do a platform update to try and resolve board not found error 2020-05-21 16:24:13 +10:00
Josh Stewart fc1663e5d3 Fix compiling for atmega2561 and add profile for it 2020-05-21 15:42:02 +10:00
Tjeerd cbb9c339c7
Bug fix: Pointers to Idle pins/port must always be initialized. (#375)
* pointers to Idle pins must always be initialized. This is good practice. But this also gave problems with internal flash as EEPROM on STM32 otherwise.

* cleanup
2020-05-19 15:28:30 +10:00
Antti Muurikainen 113247f005
Cranking enrichment to ASE (or run) taper (#364)
* Cranking enrichment tapering to ASE (or run)

* Precision fix and better helptext

* Fixed calculation and added comments

* Small fix for the taper final values

* Styling

* runSecsX10 is now uint32_t, so modify accordingly
2020-05-19 15:22:43 +10:00
Tjeerd 5ac4eacbd6
fix sram as eeprom (#382) 2020-05-19 15:15:14 +10:00
Josh Stewart 5a8d460134 Some basic initial timing work on a SAMD21 arch 2020-05-19 14:45:23 +10:00
Josh Stewart 7ccd3795c9 VSS / gear detection tweaks 2020-05-19 14:44:28 +10:00
Josh Stewart 05022a5d22 Add option to disable fan whilst cranking. Fixes #383 2020-05-18 10:30:03 +10:00
Josh Stewart d73af98010 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-05-12 12:14:57 +10:00
Josh Stewart a826b20307 Most of the remaining VSS parts 2020-05-12 12:14:37 +10:00
Pasi Kemppainen b7e91b58df
Added option for soft limit to also be able to retard by x-amount of degrees (#368)
* Changed the soft limit from absolute value to retard by

* Added selection for fixed and relative retard

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
2020-05-09 08:39:13 +10:00
Tjeerd 1530bb892e
EEPROM emulation on internal flash for STM32F407 (#372)
* Added new Flash EEPROM emulation

# Conflicts:
#	platformio.ini
#	speeduino/board_stm32_official.ino
#	speeduino/init.ino
#	speeduino/src/SPIAsEEPROM/SPIAsEEPROM.cpp
#	speeduino/src/SPIAsEEPROM/SPIAsEEPROM.h

* changes to storage to make SPI flash work again

* cleanup
2020-05-06 15:22:48 +10:00
celso acyr 8ac3717507
Idle Steeper motor cracking in closed loop (#371)
* Idle Steeper motor cracking  in closed loop

Adding to run position while starting the engine..

* Update speeduino.ini
2020-05-06 15:17:53 +10:00
Josh Stewart 2d1e645cbd Update Travis to use Python 3.6 2020-05-04 16:08:16 +10:00
Josh Stewart a335820b46 Enable the use of the 50% hardware test modes 2020-05-04 15:08:45 +10:00
Josh Stewart b8356675de Clear accel flag if engine stalls 2020-05-03 19:59:00 +10:00
Josh Stewart ba4ca143ae Merge branch 'master' of https://github.com/noisymime/speeduino 2020-04-26 08:30:53 +10:00
Josh Stewart cb89d44746 Change runSecsX10 to uint32_t to avoid overflow issues. See #364 2020-04-26 08:30:46 +10:00
bera-n b060bccb03
Dont miss egocorr at igncount rollover (#362)
* Check and update ignition count target before checking other conditions to avoid peramently disabling ego correction in case ignition count rolls over while ego correction is disabled.

* Fix previous commit. Ego was reset between update cycles.

Co-authored-by: bera-n <notrevealedbera-n@gmail.com>
2020-04-24 11:17:42 +10:00
Antti Muurikainen 04631d3143
Fix ASE being simultaneously on with crank enrichment (#365) 2020-04-24 10:19:02 +10:00
Josh Stewart ccad3d258f VSS calibration routines (untested) 2020-04-23 20:34:31 +10:00
Josh Stewart 33dc5e58dd Add unit tests for pulse width calculation 2020-04-23 16:20:09 +10:00
Josh Stewart e5f2193abe Introduce command button handler and expand the hardware testing to 8 channels 2020-04-22 11:02:35 +10:00
Josh Stewart 5366695f96 Initial VSS dialog 2020-04-20 23:43:02 +10:00
Josh Stewart fae78b95f7 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-04-20 22:57:39 +10:00
Josh Stewart 4aa86aae67 Initial basic VSS calcs (Incomplete) 2020-04-20 22:57:00 +10:00
Antti Muurikainen fb0750580b
FIx flexfuel ignition correction value displayed in TS (#361) 2020-04-20 19:52:29 +10:00
Josh Stewart c7b3c4d9b2 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-04-19 08:22:58 +10:00
Antti Muurikainen 274f424151
Acceleration enrichment cold temperature adjustment (#359)
* New README format

* Update README.md

* STM32F407 fixes (#338)

* Correct overflow for 32bit timers

* fix pins PA0-PA5 on some f407 boards

* Enable access to SRAM Backup domain at boot

* Add missing callback functions

* Change timer resolutions. Corrects idle/aux timer frequencies

* 32 bit overflow only for STM32F4

* Check and update ignition count target before checking other conditions to avoid peramently disabling ego correction in case ignition count rolls over while ego correction is disabled. (#344)

Co-authored-by: bera-n <notrevealedbera-n@gmail.com>

Fixes #343

* Setup memory for vss

* Update all dialog help links to the new wiki

* [DFCO] Add a minimum coolant (#353)

* [DFCO] Add a minimum coolant

On pure ethanol or E85 the engine need a lot fuel to return from DFCO when cold.

Add a minimum temp

Fixes copy-paste error

Fix sign error

* Add signed cast on the calibration offset

Co-authored-by: Josh Stewart <josh@noisymime.org>

* AE cold temp correction

Added possibility to increase AE amount on cold engine. Max cold modifier is tapered with clt.

* Added help texts and value limitation in speeduino.ini and overflow prevention in corrections.ino

* Terminology patch

* Unsigned long in calculation isn't really needed as AE max setting is 255 (+100). Changed to uint16_t.

* Comment revision for the previous

* Updated function description

* Fixes to make correction equal in MAP and TPS modes

* AE cold temp correction

Added possibility to increase AE amount on cold engine. Max cold modifier is tapered with clt.

* Added help texts and value limitation in speeduino.ini and overflow prevention in corrections.ino

* Terminology patch

* Unsigned long in calculation isn't really needed as AE max setting is 255 (+100). Changed to uint16_t.

* Comment revision for the previous

* Updated function description

* Fixes to make correction equal in MAP and TPS modes

Co-authored-by: Josh Stewart <josh@noisymime.org>
Co-authored-by: iLeeeZi <ilari.vehniainen@hotmail.fi>
Co-authored-by: bera-n <bjorn.nyhlen@gmail.com>
Co-authored-by: Vitor Moreno B. Sales <vitor_boss@yahoo.com.br>
2020-04-19 08:21:52 +10:00
Josh Stewart 5df24e4b85 Set default number of channels back for mega2560 2020-04-19 08:10:53 +10:00
Tjeerd fae9ab5a6b
Configurable CS pin flash chip (#345)
* fix building with spi flash as config storage

* Fixing build with spi flash as EEPROM. Changed some pin numbers to match the board i am designing and testing now.

* Now cs pin for spi eeprom is settable by flag in build enviroment.

* Correct overflow for 32bit timers

* fix pins PA0-PA5 on some f407 boards

* Enable access to SRAM Backup domain at boot

* Add missing callback functions

* Change timer resolutions. Corrects idle/aux timer frequencies

* 32 bit overflow only for STM32F4

* Update platformio.ini

debug tool added as default

* fix building with spi flash as config storage

* Fixing build with spi flash as EEPROM. Changed some pin numbers to match the board i am designing and testing now.

* Now cs pin for spi eeprom is settable by flag in build enviroment.

* Update platformio.ini

debug tool added as default

* Update cancomms.ino

Removed CAN build on black_F407VE for now. It needs fixing the build fails otherwise.

Co-authored-by: hoogendijkta <tjeerdie@users.noreply.github.com>
Co-authored-by: iLeeeZi <ilari.vehniainen@hotmail.fi>
2020-04-18 08:04:03 +10:00