Commit Graph

305 Commits

Author SHA1 Message Date
VitorBoss c10a637853 Sync with last changes 2017-08-28 01:35:49 -03:00
Josh Stewart a15e830321 Add filters for Miata 99-05 2017-08-28 13:02:06 +10:00
Josh Stewart e01dccc6b8 Initial work on revised version of the Miata 99-05 decoder 2017-08-27 09:26:36 +10:00
VitorBoss 38a89e41d0 082617 2017-08-26 19:48:04 -03:00
Josh Stewart b8706f69b2 Re-add scope guard in comms.ino 2017-08-25 17:26:24 +10:00
Josh Stewart 4e47e8ae19 Cleanup page 11 array 2017-08-25 17:26:04 +10:00
Josh Stewart fc06ce4d1b Minor ini and comms cleanup 2017-08-24 17:24:28 +10:00
Josh Stewart 630a3bfe2a Checks on trailing ignition angles for FC rotary 2017-08-24 10:17:35 +10:00
Josh Stewart 9e4c191d7b Use correct page size for Pg 11 2017-08-24 08:33:32 +10:00
Josh Stewart 73712764c4 Add missing #defines for stm32 platforms 2017-08-24 01:05:25 +10:00
Josh Stewart 5400b3fe81 Comment cleanup 2017-08-24 00:56:05 +10:00
Josh Stewart 0a7b782af9 Better method of doing trailing select for FC rotary configs 2017-08-24 00:55:44 +10:00
Josh Stewart 7db1101429 Completely untested trailing spark for FC rotary ignitions
May God have mercy on us all
2017-08-23 17:18:59 +10:00
Josh Stewart 539618c583 Initial interface work on rotary ignition modes 2017-08-23 08:14:11 +10:00
Josh Stewart cf6beeb53c Disable VVT and Boost control timers when engine is off 2017-08-22 19:57:45 +10:00
Josh Stewart 13e3b1f37b Starting improvements on the 4g63 pattern 2017-08-21 11:52:12 +10:00
Josh Stewart b71c59947e Cleanup #defines in maths.x 2017-08-21 11:51:05 +10:00
Josh Stewart 4340e58fa3 Add very lite filter to the cycle average MAP sampling 2017-08-21 11:50:50 +10:00
Josh Stewart 90b4f5f62f Minor Subaru 6/7 decoder tweak 2017-08-18 08:50:39 +10:00
Josh Stewart c791302a0e Harley EVO decoder (courtesy of @bitwise17)
Closes #93
Slightly changed to fix bugs and be MISRA compliant
2017-08-17 14:17:21 +10:00
Josh Stewart afa83cfdd7 Experimental new low res mode (Testing only) 2017-08-17 13:51:12 +10:00
Josh Stewart 77094a59d1 Better startup procedure and DIY watchdog 2017-08-17 11:24:26 +10:00
Josh Stewart 83b486ef1f Change to single calculation of the cranking RPM 2017-08-10 11:44:32 +10:00
Josh Stewart 692cb68cf1 Better locked ignition timing during cranking 2017-08-09 10:37:53 +10:00
VitorBoss bf21e87829 MISRA work 2017-08-07 22:05:35 -03:00
Vitor Moreno B. Sales 33f14e8fe5 Merge branch 'master' into master 2017-08-07 21:57:58 -03:00
VitorBoss 1defafb387 Work on boost/vvt and timers for STM32 2017-08-07 21:40:27 -03:00
Josh Stewart 482bbfab40 Cleanup unused variables ignXLastRev 2017-08-07 16:42:34 +10:00
Josh Stewart d4b93c2b54 Fixed tacho output on wasted COP mode 2017-08-06 22:40:26 +10:00
Josh Stewart 345bf5d405 August dev signatures 2017-08-06 22:15:15 +10:00
Josh Stewart be9ad6bb85 Fix missing value for TPS calibration 2017-08-06 17:12:57 +10:00
Josh Stewart 4f7e11c233 Fix for spark miss every ~250 revs 2017-08-06 17:00:58 +10:00
Josh Stewart 586a71f08f Fix typo on fuel pump macro (Wasn't used anyway) 2017-08-06 16:28:40 +10:00
VitorBoss 94e0c6c19c Fix error on no STM32 boards 2017-08-04 17:05:16 -03:00
VitorBoss 7c15b2657c Fix last merge 2017-08-04 16:12:16 -03:00
VitorBoss 9f64ba2b6c idle, boost and vvt PWM added 2017-08-04 00:13:32 -03:00
VitorBoss 9398dadb48 Merge remote-tracking branch 'refs/remotes/noisymime/master'
# Conflicts:
#	speeduino/speeduino.ino
2017-08-03 22:49:10 -03:00
Josh Stewart e4207d9ee3 Add check to prevent system hanging on startup with fresh board if invalid flex pin is attempted 2017-08-03 23:45:51 +10:00
VitorBoss 6d3439060d Added possibility to use another library for STM32 2017-08-02 23:29:05 -03:00
VitorBoss fb3c345f23 Merge remote-tracking branch 'refs/remotes/noisymime/master' 2017-08-02 23:17:20 -03:00
Vitor Moreno B. Sales d9f38f82de Fixing last comit 2017-08-02 22:51:07 -03:00
Vitor Moreno B. Sales e9db1a2f78 New update to STM32
Using timer bits instead (mainLoopCount & 31) comparators.
Few changes to support another library on STM32
2017-08-02 22:46:48 -03:00
Josh Stewart 32b5c4684e Minor changes to multiple decoders 2017-08-03 00:35:10 +10:00
Josh Stewart e9861a299f Additional cranking check 2017-07-30 23:09:42 +10:00
Josh Stewart 523c05fda9 July signature and base tune 2017-07-30 23:07:48 +10:00
Josh Stewart 07afb535d0 Updater for July firmware 2017-07-30 23:04:37 +10:00
Josh Stewart c69499497b Better baro reading on startup 2017-07-30 14:25:07 +10:00
Josh Stewart 8db6ef21f8 New experimental boost control PID 2017-07-29 22:38:54 +10:00
Josh Stewart b9e6d8973a Enable the cranking curve lookup 2017-07-28 00:48:08 +10:00
Josh Stewart fde322f8f5 Fix for rare RPM error when cranking using missing tooth wheel 2017-07-27 15:25:57 +10:00
Josh Stewart 9cd31f335f Cleanup of comms variables 2017-07-27 14:04:38 +10:00
Josh Stewart 3db9dc99fd New MAP calculation method (More accurate and allows negative calibration values) 2017-07-27 12:47:59 +10:00
Josh Stewart a183838887 Prevent occasional pulses when boost duty = 0%. Helps prevent overboost in some conditions 2017-07-24 17:05:55 +10:00
Josh Stewart f11cae0eb8 Guard boost/vvt control from stm32 2017-07-24 16:40:50 +10:00
Josh Stewart e53f8c628d Mostly complete boost/vvt control for Teensy 2017-07-24 16:34:13 +10:00
Josh Stewart bfc5c7c841 Cleaner transitions when using VVT for on/off control 2017-07-24 16:04:29 +10:00
Josh Stewart 1da217eb40 Type fix 2017-07-24 14:24:41 +10:00
Josh Stewart 9a7d3b1fdf Fix ini 3/4 pin mapping for MX5 PNP 2017-07-24 14:19:39 +10:00
Josh Stewart e878be5260 MISRA work in tables.ino 2017-07-24 14:19:29 +10:00
Josh Stewart e16da51101 Additional work for the new memory page 2017-07-24 14:19:07 +10:00
Josh Stewart 11294364bc 4G63 decoder improvements (+MISRA work) 2017-07-24 14:18:25 +10:00
Josh Stewart be98d2d0d3 Addition of comms for Pg 11 2017-07-24 09:50:50 +10:00
Josh Stewart ccb6e194b7 Initial work creating a new memory page (pg 11) 2017-07-20 16:54:50 +10:00
Josh Stewart 4d8ca38a05 Small improvements to the TPSdot calc 2017-07-18 14:05:26 +10:00
Josh Stewart c570e6de78 Correct revolutionTime variable on Basic Distributor to allow dwell limiter to function 2017-07-18 09:55:31 +10:00
Josh Stewart 9d2e938a4d Initial (mostly untested) live baro reading 2017-07-17 17:06:14 +10:00
Josh Stewart 905a8642ff July dev signature 2017-07-17 16:36:44 +10:00
Josh Stewart 3b99e85775 Revert one the the MISRA changes due to bug in 3D lookup 2017-07-15 10:31:45 +10:00
Josh Stewart 9c6acabb65 Add missing break into 2D table lookups 2017-07-11 20:12:13 +10:00
Josh Stewart a931000c45 Fix for bad base tune value 2017-07-11 16:27:05 +10:00
Josh Stewart e5591bc7bc June signature and base tune 2017-07-11 16:21:44 +10:00
Josh Stewart b0c6b40ff6 Error checks on the missing tooth end tooth calculation 2017-07-10 11:56:49 +10:00
Josh Stewart 24f34eccbe Add updater for CAN variables in this months firmware 2017-07-10 11:56:11 +10:00
Josh Stewart a09c5772ee Add freeRam() function for stm32 2017-07-07 09:26:13 +10:00
Josh Stewart 5ddfde074f Check pin validity individually 2017-07-07 09:26:13 +10:00
Josh Stewart 3d2a692d53 Change freeRam() to unsigned int 2017-07-07 09:26:13 +10:00
Josh Stewart fa49d38253 Tweaks to the missing tooth per tooth timing 2017-07-05 21:12:21 +10:00
Josh Stewart 80471100be Tweak to potentially avoid spikes during cranking on some decoders 2017-07-04 16:33:41 +10:00
Josh Stewart 90fb7e0509 Cleanup of previous commit 2017-07-03 18:47:23 +10:00
Josh Stewart 5992e31f2f Experimental commit of per tooth based ignition timing 2017-07-03 18:39:10 +10:00
Josh Stewart 7f86b91198 Add fields to allow custom MAP sensors being entered 2017-07-03 12:14:07 +10:00
Josh Stewart 086d705561 Few minor performance tweaks 2017-07-03 11:52:27 +10:00
Josh Stewart 64ade1a9a6 Fix MISRA violations from branch merge 2017-07-02 22:54:41 +10:00
Josh Stewart f67f24f16d Merge pull request #89 from Autohome2/can_io_2
External devices over serial3 update
2017-07-02 22:40:45 +10:00
Josh Stewart 6e9ed35648 Only run cppcheck compile once in Travis 2017-06-29 14:52:51 +10:00
Josh Stewart b92a37a044 MISRA compliant table.ino (NEEDS TESTING!) 2017-06-29 14:37:49 +10:00
Josh Stewart adde2138d7 Minor fixes on Daihatsu decoder 2017-06-29 14:37:26 +10:00
Josh Stewart aafdd4fc02 MISRA compliant sensors.ino 2017-06-29 14:34:47 +10:00
Josh Stewart 5a0bdf5866 MISRA compliant timers.ino 2017-06-28 22:48:54 +10:00
Josh Stewart 652624b288 Add initial Daihatsu +1 decoder (also 3 cylinder sequential ignition) 2017-06-26 17:34:10 +10:00
Josh Stewart 315cc3ff8c MISRA compliant scheduler (Multiple files) 2017-06-21 15:34:41 +10:00
Josh Stewart d82345785d Add missing file from last commit 2017-06-21 13:09:57 +10:00
Josh Stewart 595edccd2a New secondary scheduling method for fuel schedules 2017-06-21 13:00:58 +10:00
Josh Stewart f7b3a804e1 Change fastMap1023toX to be a macro (And fix a bug in it) 2017-06-20 20:21:38 +10:00
Autohome2 8db13859e1 Merge branch 'master' into can_io_2 2017-06-20 02:44:51 +01:00
darren siepka 0ea42483d0 Merge branch 'can_io_2' of https://github.com/Autohome2/speeduino into can_io_2 2017-06-20 02:30:37 +01:00
darren siepka 35dfa6395d support read values(16channel) from gpio or other external device . other device can also access the speeduino data values(realtime)
all via serial3
2017-06-20 02:29:55 +01:00
Josh Stewart 4f42c289b2 MISRA compliant maths.ino 2017-06-19 22:02:40 +10:00
Josh Stewart 08406b957c Fix for missed number in storage.ino 2017-06-17 13:15:27 +10:00
Josh Stewart 8db54c9c22 MISRA work on maths.ino 2017-06-16 22:31:42 +10:00
Josh Stewart 75f79f7bae MISRA compliant storage.ino 2017-06-16 17:41:22 +10:00
Josh Stewart fa75db126c MISRA compliant idle.ino 2017-06-16 17:20:24 +10:00
Josh Stewart c8fa9f9246 MISRA compliant errors.ino 2017-06-16 16:41:45 +10:00
Josh Stewart 6b8961e088 MISRA compliant decoders.ino 2017-06-16 08:45:39 +10:00
Josh Stewart 865c2cfe5b Cleanup unused code from last commit 2017-06-14 16:29:17 +10:00
Josh Stewart 19ec917b94 Move to new output triggering method (Injectors only for now) 2017-06-14 12:15:26 +10:00
Josh Stewart 3dc0ebf15a Fix Teensy #ifdef typo 2017-06-13 17:23:14 +10:00
Josh Stewart 244b7a068e Add missing pin mapping for stepper on Teensy adapter 2017-06-13 17:05:02 +10:00
Autohome2 1a72d50985 Merge pull request #40 from noisymime/master
update 13062017
2017-06-13 03:16:31 +01:00
darren siepka 94f67f6a49 removed test code 2017-06-13 03:12:32 +01:00
darren siepka 8d996f7b31 Merge branch 'can_io_2' of https://github.com/Autohome2/speeduino into can_io_2
# Conflicts:
#	speeduino/comms.ino
2017-06-13 03:07:12 +01:00
darren siepka 0296f06438 changes to serial3 protocol and further tidyng with new canserial use 2017-06-13 03:02:50 +01:00
darren siepka b62f943bb3 changes to serial3 protocol and further tidyng with new canserial use 2017-06-13 02:58:00 +01:00
Josh Stewart 981af96e10 Fix launch control mapping on the MX5 PNP 2017-06-11 09:15:47 +10:00
Josh Stewart ae7a75673f June dev signature 2017-06-06 08:32:08 +10:00
Josh Stewart 4f62900cba May base tune file 2017-06-05 14:41:58 +10:00
Josh Stewart 02564d3218 May signature 2017-06-05 14:28:28 +10:00
Josh Stewart 5aa4cbc36c Comment cleanup 2017-06-05 14:27:07 +10:00
Josh Stewart 780c9ab2ee Logic change from some of the MISRA work 2017-06-04 22:48:59 +10:00
Josh Stewart 4ba2fbf52c MISRA compliant corrections.ino 2017-06-03 20:45:25 +10:00
Vitor Moreno B. Sales c925905c95 Initial STM32F4 series support 2017-06-02 18:09:36 -03:00
Josh Stewart d44410fff4 MISRA compliant comms.ino 2017-06-02 21:56:21 +10:00
Josh Stewart 60a013655c MISRA compliant cancomms.ino 2017-05-31 18:57:36 +10:00
Josh Stewart d1eb72f2bb MISRA compliant auxiliaries.ino 2017-05-31 18:13:04 +10:00
Josh Stewart 65415c0aff Correct issue where injector timing was forced to simultaneous on 6 and 8 cylinders 2017-05-26 11:06:20 +10:00
Josh Stewart a106ea72ca Have the missing tooth decoder use the cranking specific RPM calc 2017-05-20 21:55:50 +10:00
Josh Stewart fbde19253f Clear cranking and WUE bits when engine speed drops to 0rpm 2017-05-16 22:01:33 +10:00
Josh Stewart 81c548a9e8 Tentative 6 cylinder support (3000GT) added to 4G63 decoder
Requested in #76
Needs testing. Select the decoder and set cylinders to 6.
Note that the Medium and Aggressive trigger filters do NOT currently
work for 6 cylinders and should not be used.
2017-05-16 16:49:35 +10:00
Josh Stewart f27f883a5c Add updater mechanism for translating data between firmware versions 2017-05-16 15:05:39 +10:00
Josh Stewart 1db7be4a33 Flex fuel boost adder 2017-05-12 18:14:14 +10:00
Josh Stewart bcd7b29b59 Merge pull request #86 from Autohome2/can-serial3
r command bug fixes and further multiprocessor can and serial3 support
2017-05-11 21:53:19 +10:00
darren siepka bffb4fb72f r command bug fixes and further multiprocessor can and serial3 support 2017-05-11 00:08:24 +01:00
Josh Stewart 7b13b8995c Prevent the IAT retard curve from clobbering spark advance values below 0 2017-05-10 15:46:14 +10:00
Josh Stewart cfebe84514 Belated May dev signature 2017-05-10 13:55:26 +10:00
Josh Stewart a7460f93d2 Merge pull request #85 from Autohome2/can-serial3
serial3 and canbus integration improvements
2017-05-10 12:15:29 +10:00
Josh Stewart 04a6866115 Allow spark advance values below 0 in the main table 2017-05-09 17:29:55 +10:00
darren siepka 49a23d9a33 This version is based from the can-serial3 branch which was updated from josh's master on 07/05/2017
Before change it compiled at
bytes of 63,444 flash(24%) and 4137 bytes of ram(50%) used
upon pr submission this changed to
bytes of 63,574 flash(25%) and 4155 bytes of ram(50%) used

Changes were to allow the use of the "r" command to access specific data in the realtime list
It contains minor changes to the ini file to link to the help for serial3 and can interface.
also change 0x07 to 0x30(dec48) as discussed on slck with josh for the r command
added teensy and stm32 can references and some specific canwork for teensy3.5
need to use pawelsky flexcan library (https://github.com/pawelsky/FlexCAN_Library)
2017-05-08 23:15:03 +01:00
Josh Stewart aaebf2d833 Fix warning presented in Arduino IDE for 4g63 change 2017-05-08 06:10:04 +10:00
Josh Stewart b0d0c40bec April signature and base tune 2017-05-06 23:43:57 +10:00
Josh Stewart 9a080986f6 Faster first pulse on 4g63 2017-05-06 23:41:58 +10:00
Josh Stewart 2004034674 Add CRC stack for testing (Currently unused) 2017-05-05 08:52:10 +10:00
Josh Stewart bae708a4d6 Multiple small fixes and checks, particularly for Basic Distributor decoder
Possible impact on #81 but still unable to reproduce that issue reliably
2017-05-04 14:17:05 +10:00
Josh Stewart 7c909f021e Set appropriate type for fixed cranking additional dwell 2017-05-04 13:47:50 +10:00
Josh Stewart fa9f418c35 Resolve all pr/77 conflicts 2017-05-02 21:17:33 +10:00
Josh Stewart 3f099f06f1 Merge branch 'master' into pr/77
# Conflicts:
#	reference/speeduino.ini
#	speeduino/comms.ino
2017-05-02 12:25:51 +10:00
Josh Stewart 89296bea44 Merge pull request #79 from VitorBoss/STM_dev
Updated STM work
2017-04-23 19:27:30 +10:00
Josh Stewart 4380f8b0d5 Move to TS optimised serial comms model + many minor serial improvements 2017-04-22 23:31:13 +10:00
Vitor Moreno B. Sales fc577c9a59 Updated STM work 2017-04-21 11:30:13 -03:00
Josh Stewart 32e6cc9a2e Small fix on 4g63 decoder in calculating revolution time 2017-04-21 17:33:28 +10:00
Josh Stewart 538bc5f0bf Initial commit of dwell limiting when it exceeds maximum time in revolution 2017-04-21 17:29:09 +10:00