Commit Graph

2488 Commits

Author SHA1 Message Date
Josh Stewart 14972b3848 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-07-30 09:15:48 +10:00
Josh Stewart 899831bdad MISRA cleanup 2020-07-30 09:15:24 +10:00
celso acyr 1d45f0d733
Fixed step value. (#390)
* 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>
2020-07-30 09:14:10 +10:00
Josh Stewart a0fceef008 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-07-29 13:09:56 +10:00
Josh Stewart a086ab5dfb Minor VVT2 fix 2020-07-29 13:09:52 +10:00
Pasi Kemppainen cc2b95da8d
Add "Half sync" indicator (#370)
* 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>
2020-07-29 11:07:43 +10:00
Josh Stewart 72531f9c9c Fix incorrect memory alignment in Pg 10 2020-07-27 23:47:52 +10:00
Autohome2 58200f8707
07072020 obdp3 (#411)
* 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>
2020-07-27 12:34:05 +10:00
Josh Stewart 2dd28278a2 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-07-27 10:12:03 +10:00
Josh Stewart 605363ff98 PIn mappings for T4.1 on Dropbear 2020-07-27 10:10:28 +10:00
Josh Stewart ac915536a3 Pull Teensy interrupts into board file 2020-07-27 10:09:50 +10:00
Vitor Moreno B. Sales 31541cca2d
[VVT] PID work (#412)
* [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>
2020-07-27 09:05:02 +10:00
Josh Stewart 0b9452981a Merge branch 'master' of https://github.com/noisymime/speeduino 2020-07-23 09:45:26 +10:00
Josh Stewart bce06ec4cf New test write calibration methods for the consolidation 2020-07-23 09:44:48 +10:00
Josh Stewart c8d07527ba Teensy 4.1 compatibility fixes 2020-07-23 09:39:51 +10:00
Mateusz Muszyński 5b342d27bd
Water methanol injection (#417). Refer #154
* Add water methanol injection

* Set signature back to default

* Set signature back to default

Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-07-22 11:27:21 +10:00
Tjeerd b9bab9cbfc
Changed platformio.ini to build with the newest visual studio code and PIO. (#418)
Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2020-07-19 20:31:00 +10:00
Josh Stewart d5bc11e006 Fix bug with the delayed inj priming that could cause lockup 2020-07-14 14:05:07 +10:00
Josh Stewart 4e1a429ff6 Fix the travis test so that it uses Teensy41 2020-07-14 13:58:25 +10:00
Josh Stewart e17874553f Change the TEENSY40 config to be TEENSY41 2020-07-14 13:57:36 +10:00
Teemo Vaas 92ab0a847c
Vbatt reading overflow fixed. sensors.ino (#409)
* Update sensors.ino

Prevent vbatt reading form going negative due to the vatVoltCorrect and overflowing the uint variable.
Variable changed to signed int  and added check to correct if gone negative.
Thought given that all filters using the temp variable shoud remain working.

* Update sensors.ino
2020-07-08 15:29:56 +10:00
Josh Stewart 90fe79a059 Only allow the oil pressure protection to enable if the oil pressure input is actually on 2020-07-07 16:47:28 +10:00
Josh Stewart bf8d9558fe Minor changes to the injector priming routine 2020-07-06 22:17:56 +10:00
Josh Stewart f006dacf2b Merge branch 'master' of https://github.com/noisymime/speeduino 2020-07-05 14:30:22 +10:00
Josh Stewart 99eb493d90 Minor changes to the engine limiter interface 2020-07-05 14:30:18 +10:00
Vitor Moreno B. Sales 7bcf4bcb15
[FP] Add injector delay for priming (#391)
* [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>
2020-07-05 14:28:57 +10:00
Teemo Vaas 876c09ff27
Pinout corrections for STM32F407VE (#407)
Some more corrections to move battery voltage measurement from pin PC6 to PC5. Because PC6 is not analog input capable (black_STM32F407VE boards).
2020-07-03 14:02:26 +10:00
Vitor Moreno B. Sales f04ea85db4
BlackPill update (#406)
* BlackPill fix

* Fix for disable timers

* Fix STM32GENERIC
2020-07-02 17:25:16 +10:00
Josh Stewart cd6f831c99 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-07-02 10:35:49 +10:00
Tjeerd 7c82095d44
STM32F407 32bit timer issue fix (new) (#374)
* Fixed 32 bit timers again

* Set the battery voltage to a default value when board starts. So before a sensible value is read this is 0. The dwell correction is creating the ignition spurious pulses direct after reset of the  board. (When "flying start" the engine)
2020-07-02 10:35:27 +10:00
Josh Stewart e964ceac6a Warnings cleanup 2020-07-01 17:52:17 +10:00
Josh Stewart e42a742797 Initial implementation of the 420a decoder. See #133 2020-07-01 16:54:52 +10:00
Josh Stewart ae29912ecd Minor typos, comments and wording cleanup 2020-06-30 11:18:12 +10:00
Josh Stewart 6242fa4412 Fix crash on higher IGN channel setups when using trigger fixed cranking timing 2020-06-29 14:39:24 +10:00
Josh Stewart 53bd588062 Experimental new rolling code method (WIP) 2020-06-29 14:38:01 +10:00
Josh Stewart 3d878a1ad4 Default stm32f4 board to 8/8 channels 2020-06-26 15:36:51 +10:00
Josh Stewart b1709f2067 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-06-26 14:56:23 +10:00
Josh Stewart 1f2caef3ba Fix for bad TPS values when using in 'reversed' wiring setups 2020-06-26 14:55:45 +10:00
Josh Stewart ac6f1d1b25 Initial memory reduction work on temp tables (WILL BREAK CALIBRATION) 2020-06-16 08:09:14 +10:00
Josh Stewart 1ec7e7ee86 Mostly complete engine protection (excl AFR) 2020-06-06 14:27:46 +10:00
Josh Stewart 56509b3a4a Merge branch 'master' of https://github.com/noisymime/speeduino 2020-06-06 10:55:38 +10:00
Josh Stewart c3c6cc33c7 Minor work on oil and fuel pressure readings 2020-06-06 10:55:34 +10:00
Josh Stewart 940a6826b5 Initial work on engine protection system 2020-06-06 10:52:27 +10:00
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