Commit Graph

2511 Commits

Author SHA1 Message Date
Josh Stewart 3aa21a160a Change name of rtc.h/.ino files to avoid conflict for stm32 2021-01-23 08:49:44 +11:00
Pasi Kemppainen 3b46db4ca2
STM32 CAN library improvement: addition of TX mailboxes (#508)
* CAN-bus library for STM32

This adds CAN-bus library for STM32. Mainly for STM32F4, but others can be added later.

* CAN2 and F446 support added for STM32 CAN library

Adds support for second can interface and F446 bit timings.

* Fix STM32 CAN pin selection and STM32F1 support

The previous way to select CAN pins wasn't actually working, so this fixes that problem and also the F1 support too.

* Fix building for Mega/Teensy

* Update cancomms.ino

* Update speeduino.ino

* STM32 CAN library fixes

* TX mailbox addition

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
Co-authored-by: Josh Stewart <josh@noisymime.org>
2021-01-23 08:40:39 +11:00
Pasi Kemppainen 941da74154
Fix Advance 1/2 gauges in TS ini. (#509)
Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
2021-01-23 08:25:37 +11:00
Josh Stewart 42ebf460a9 Merge branch 'master' of https://github.com/noisymime/speeduino 2021-01-22 16:31:18 +11:00
Josh Stewart 1175b0ddb6 Add AE check to see whether MAP_DOT or TPS_DOT are increasing 2021-01-22 16:31:14 +11:00
Josh Stewart ca6eef2b31 Initial layout work on RTC and SD 2021-01-22 16:16:30 +11:00
Pasi Kemppainen eebf8ed1f6
STM32 CAN-bus library fixes. (#503)
* CAN-bus library for STM32

This adds CAN-bus library for STM32. Mainly for STM32F4, but others can be added later.

* CAN2 and F446 support added for STM32 CAN library

Adds support for second can interface and F446 bit timings.

* Fix STM32 CAN pin selection and STM32F1 support

The previous way to select CAN pins wasn't actually working, so this fixes that problem and also the F1 support too.

* Fix building for Mega/Teensy

* Update cancomms.ino

* Update speeduino.ino

* STM32 CAN library fixes

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
Co-authored-by: Josh Stewart <josh@noisymime.org>
2021-01-20 17:32:03 +11:00
Antti Muurikainen 375ed6b5fe
Lookup afrTarget value also in case O2 sensor is disabled, but incorporate AFR is turned on (#502)
Co-authored-by: antti.muurikainen <antti.muurikainen@nodeon.com>
2021-01-20 13:01:04 +11:00
Josh Stewart 1af5ce1a91 Merge branch 'master' of https://github.com/noisymime/speeduino 2021-01-17 23:16:14 +11:00
Josh Stewart 5aeb794c2a Add teensy36 build and master uploads for teensy36 and teensy41 2021-01-17 23:16:09 +11:00
Piotr Rogowski 62dbec22c5
Fix Warmup Enrichment dialog responsiveness (#500)
Move description from extra field to context help
2021-01-12 11:24:01 +11:00
Josh Stewart d5e4370343 Small change to the MPX4115/KP234 baro sensor values 2021-01-02 09:33:49 +11:00
Josh Stewart 0ca79b1ecc Minor parts updates to v0.3 BOM 2021-01-02 09:32:34 +11:00
Josh Stewart 2aa86c7ebf Merge branch 'master' of https://github.com/noisymime/speeduino 2020-12-16 07:49:15 +11:00
Josh Stewart a92aa958d8 Minor parts updates for v0.4 BOM 2020-12-16 07:49:10 +11:00
James Portman e22faf56da
refactor calculateIgnitionAngles (#491)
easier to read and to follow the logic, remove code duplication

Co-authored-by: James <james@notarealemailaddress.com>
2020-12-15 13:00:29 +11:00
Josh Stewart 0c5472096f 202101 dev signatures 2020-12-15 10:25:01 +11:00
Josh Stewart 0995eb4ad4 Fix for misaligned spark2 memory 2020-12-13 15:36:01 +11:00
Josh Stewart 23bbee6b82 Add some missed update variables for 202012 2020-12-13 09:40:03 +11:00
Josh Stewart 5de6becbfa Signatures and base tunes for 202012 2020-12-12 08:09:01 +11:00
Josh Stewart b70cdd7421 Fix for 'sticking' VVT output 2020-12-11 12:50:13 +11:00
Josh Stewart 4c9321f6b0 Add command handler for stm32 reboot button 2020-12-08 09:24:34 +11:00
Tjeerd 5c5ecbbcea
Fix building stm32 f401 (#489)
* fix building for STM32F401CC and general macro cleanup

* Now building for all generic STM32F4x7 boards in arduino IDE is ok.

* buildflag cleanup

Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2020-12-08 00:43:01 +11:00
Josh Stewart cebf27e573 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-12-07 17:12:10 +11:00
Josh Stewart 5853c6e630 Potential fix for new ignition mode on channels 4+ 2020-12-07 17:08:47 +11:00
Vitor Moreno B. Sales a3c7c529d6
Only do ign math if channel is active (#486) 2020-12-06 09:14:28 +11:00
Vitor Moreno B. Sales 0760fa65d0
STM32 jump to DFU bootloader (#485)
* STM32 jump to DFU

This enable jumping to hardware bootloader with software command.
Based on @iLeeeZi previous work.

Co-Authored-By: iLeeeZi <3372213+iLeeeZi@users.noreply.github.com>
Co-Authored-By: Pasi Kemppainen <48950874+pazi88@users.noreply.github.com>

* lowercase functions fixes

Co-authored-by: iLeeeZi <3372213+iLeeeZi@users.noreply.github.com>
Co-authored-by: Pasi Kemppainen <48950874+pazi88@users.noreply.github.com>
2020-12-03 09:24:15 +11:00
Josh Stewart 232439e39d Merge branch 'master' of https://github.com/noisymime/speeduino 2020-12-03 09:02:08 +11:00
Josh Stewart 98d08b7446 Add DIY-EFI wideband calibration 2020-12-03 09:01:54 +11:00
Vitor Moreno B. Sales c8ee272aca
Update speeduino.ini (#483) 2020-12-03 08:54:25 +11:00
Josh Stewart e073834135 Cleanup some stm32 warnings 2020-12-02 13:21:00 +11:00
Sepehr20mg10 c3df8bf66d
Update sensors.h (#469)
Reducing the minimum limit of barometric pressure (when using map as baro sensor)
The highest motorable road is "Khardung La" with 49 kPa barometric pressure but I think 65 kPa is a safer limit than that.
maybe it needs to be customizable in TS ?
2020-12-02 11:06:24 +11:00
Tjeerd 6078b7e32a
Changes to prevent board lockup with initial run. (EEPROM all 0xFF) (#463)
Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-12-02 11:04:37 +11:00
Tjeerd 8451aacf55
Add support for stm32F401internal flash as EEPROM emulation (#462)
* Add support STM32F401CC using internal flash as EEPROM

* update flash location of EEPROM

Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2020-12-02 10:52:13 +11:00
celso acyr 4a2d6482e3
Value of programmable outputs in the datalogger. (#444)
Fixed value of programmable outputs, now appears in the datalogger.

Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-12-02 10:50:06 +11:00
Pasi Kemppainen affce3c162
Fix BMW PnP board pin mapping (#460)
* Fix BMW PnP board pin mapping

Remove duplicate uses of pin 48. Also add default VSS and Baro pins.

* Fix typo

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
2020-12-02 09:55:06 +11:00
Josh Stewart 4f6e99cbe0 Revise the number of channels on the stm32 Balck testing board. Closes #473 2020-12-02 09:52:23 +11:00
Josh Stewart 1321be93e6 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-12-02 09:08:02 +11:00
Josh Stewart ed8a80c6a5 Teensy41 header file 2020-12-02 09:07:57 +11:00
Vitor Moreno B. Sales 00801ad82f
Added pinIsReserved macro (#479)
* Added pinIsReserved macro

Function used to don't initialize reserved pins such as USB on ARM boards, each pin must be defined on board.h file

* Update board_teensy35.h

Include Serial and CAN0 pins
2020-12-02 08:59:44 +11:00
Tjeerd df1f5ccbf0
Closed loop idle improve (#481)
* Squashed commit of the following:

commit c73f316fa5bf8c929a8fef5736f4a40045ea992f
Author: Tjeerd <tjeerdie@users.noreply.github.com>
Date:   Wed Nov 25 21:53:45 2020 +0100

    cleanup and fix merge issues

commit 57f1e8c6c73bcfb699b18ac51a2ec646be822f55
Merge: 04478ca 131673d
Author: Tjeerd <tjeerdie@users.noreply.github.com>
Date:   Wed Nov 25 18:59:58 2020 +0100

    Merge branch 'Closedloop_idle_improvements' into ClosedLoopIdleImprovement

commit 131673dc60417cbc773b0763d2f93e917c83325f
Author: Tjeerd <tjeerdie@users.noreply.github.com>
Date:   Sun Nov 22 21:54:03 2020 +0100

    more fiddeling with idle control

commit e4406166cde91552027a0dfb7958d6894098f066
Author: Tjeerd <tjeerdie@users.noreply.github.com>
Date:   Sun Nov 22 20:36:24 2020 +0100

    More fiddeling with idle control

commit 45822003d41e021e3ed93e8e14ce05479ddfd17b
Author: Tjeerd <tjeerdie@users.noreply.github.com>
Date:   Sat Nov 21 14:59:32 2020 +0100

    fix initial value

commit ff8fadae7844bd8e5934ee0f311fbf5e0842ec29
Author: Tjeerd <tjeerdie@users.noreply.github.com>
Date:   Thu Nov 19 23:14:14 2020 +0100

    add TPS limit to prevent integeral windup.

commit 7683b2e65569787b1c94eae6f4847cdadd394402
Author: Tjeerd <tjeerdie@users.noreply.github.com>
Date:   Thu Nov 19 22:40:53 2020 +0100

    cleanup idle.h

commit da55ee9dbd76d65608bfb5b950bc948a498b9599
Author: Tjeerd <tjeerdie@users.noreply.github.com>
Date:   Thu Nov 19 22:36:18 2020 +0100

    Further improvement simplifying code for closedloop PID control with feedforward.
    make PWM output work
    Tinkering new Idle control
    working on closedloop idle
    Initial work on improving closed loop Idle control

* reset platformio.ini

Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2020-12-02 08:37:58 +11:00
Pasi Kemppainen 8d262bd8fc
STM32 CAN bus library addition (#482)
* CAN-bus library for STM32

This adds CAN-bus library for STM32. Mainly for STM32F4, but others can be added later.

* CAN2 and F446 support added for STM32 CAN library

Adds support for second can interface and F446 bit timings.

* Fix STM32 CAN pin selection and STM32F1 support

The previous way to select CAN pins wasn't actually working, so this fixes that problem and also the F1 support too.

* Fix building for Mega/Teensy

* Update cancomms.ino

* Update speeduino.ino

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-12-02 08:29:10 +11:00
Josh Stewart 4825f573b2 Further work unifying the MC33810 build. Complete but needs testing 2020-12-01 18:12:39 +11:00
Josh Stewart 04478caf79 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-11-19 21:38:07 +11:00
Josh Stewart fd9fa36c29 Major revamp of unit testing framework 2020-11-19 21:38:00 +11:00
Benas Brazdziunas 33485ae9e1
Temporary fix for Teensy CanBus ALT pins being set (#476)
* Temporary fix for Teensy CanBus ALT pins being set and not possible use pins 29 30 for other stuff.

* Add comment indicating why the setRX/TX calls are needed

Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-11-17 10:21:54 +11:00
Josh Stewart bccf70f445 Fix typo on 8 cylinder Wasted COP init 2020-11-17 09:36:32 +11:00
Josh Stewart 4101236e88 Slightly adjust execution order within the Travis tests 2020-11-17 00:59:02 +11:00
Josh Stewart bfbd04b899 Warnings cleanup from last commit 2020-11-16 23:20:30 +11:00
Josh Stewart 1c3a48de64 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-11-16 22:51:37 +11:00