* Add config error indicator
* Fixes and naming change
* Fixes
* Change to fix conflicting error bit flag in init
* Updating IO flag setting
Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
Co-authored-by: Josh Stewart <josh@noisymime.org>
* Programmable outputs
* Prevent array overflow
* Show fullStatus variables names on dialog
* Further fixes
* Update with master
Co-authored-by: Josh Stewart <josh@noisymime.org>
* Iac automatic resolution
Fix idle stepper, work direct with values < 255 and keep existing mode
* Fixed Hysteresis for stepper
0 value bug the counter.
* Fix value
Changed value to 255.
* Ensure no overflow on iacMaxSteps
Co-authored-by: Josh Stewart <josh@noisymime.org>
* Half sync indicator for 3 different trigger patterns.
Added half sync indicator which shows that there is only primary trigger present for missing tooth, dual wheel and miata 9905 trigger patterns
* missing tooth required some adjusting
* forgot to remove stm32 pin mapping. I have it in other PR
* Leave only for missing tooth
Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
Co-authored-by: Josh Stewart <josh@noisymime.org>
* fix to serial0 and serial3 when offset is 0 uses wrong command
* fix to serial0 and serial3 when offset is 0 uses wrong command
* fix hex num
* add teensy canbus library
teensy can read and write functions enabled
* update to teensyduino 1.49
* part 1 prepare structure for obd can port works
rename old can_command() to secondarySerial_command() for secondary serial and create new can_command for real CAN instruction decode.
fix masking for teensy 3x and 4
* set mega as default build
* last part of main obd2 canbus for teensy MCU
* tested obd2 for teensy3.5
* Only init CAN on Teensy with 3.5. Otherwise this will lockup on 4.1
Co-authored-by: Josh Stewart <josh@noisymime.org>
* [VVT] PID work
Tested on a half moon CAM pattern as working, it should work on others too.
Added option to reverse the PWM output
Co-Authored-By: pazi88 <48950874+pazi88@users.noreply.github.com>
* Fix typo
Co-Authored-By: diy-efi <diy-efi@users.noreply.github.com>
* Add second VVT pwm on same timer
All precious VVT variables was renamed to VVT1 and added VVT2 stuff.
Tested with logic analyzer.
* Define VVT2 for other boards
Added vvt2Pin
* Just update on first tooth
Co-authored-by: pazi88 <48950874+pazi88@users.noreply.github.com>
Co-authored-by: diy-efi <diy-efi@users.noreply.github.com>
* [FP] Add injector delay for priming
* Fix build
* Add the startup TPS read back in to ensure proper flood clear check
Co-authored-by: Josh Stewart <josh@noisymime.org>
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
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>
* 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
* 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>
* 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>
* [DFCO] Include a delay
* [DFCO] Fix - delay isn't working if conditions aren't met immidiatly
Co-Authored-By: muuris <55035659+muuris@users.noreply.github.com>
Co-authored-by: Josh Stewart <josh@noisymime.org>
Co-authored-by: muuris <55035659+muuris@users.noreply.github.com>
It's already with this higher resolution in TS, and tuning idle and low load area with big injectors really require more than just one decimal precision.
* [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>
* 6 cyl sequential related cleanup
* disable 6cyl seq fuel trim tables for now
* add the over 2 squirts fix
* Add 5 and 6 cylinder semi and full sequential
* 5 cylinder changes
* fix priming pulse when using paired or semi-sequential injection
* add 5 cyl special case back
* Add missing 8 cyl stuff
* add missing PW8
* allow to change inj4Ang with non sequential 5 cylinder
* add missing helptext
* First commit
Increases cranking enrichment range from 0..255% to 0..1275%, accuracy is reduced to 5% steps but this should be enough.
Max allowable gammae increased from 511% to 1500%, overflow in PW-function prevented.
* Last one missed the second overflow prevention (less bitshift)
* Version needs to be increased in order to avoid performing value update routine on every startup
* Less bitshift is required only on iCorrections
* Add idle advance and idle switch settings
Add idle RPM target based ignition timing correction
* Change few names to avoid confusion
changed idle switch to closed throttle position sensor (CTPS) and moved CTPS settings under idle advance settings dialog for now
* Provide support for changing the idle stepper direction through the use
of an "inverted Y/N" setting. This is to avoid the need to change wiring
if it turns out the stepper is working in the opposite direction to what
is expected.
* Add a new setting maximum number of stepper motor steps, so that homing can be done more reliably.