Commit Graph

268 Commits

Author SHA1 Message Date
Josh Stewart 6ef3a3d5d5 [Arduino 1.6.6+ Required!] Utilise the included libs without needing to copy or move them. 2016-01-05 23:02:24 +11:00
Josh Stewart be51ddf852 Rename injector variable to better reflect its purpose 2016-01-05 08:00:47 +11:00
Josh Stewart 2c747e5459 Initial commit of IAT based timing retard 2016-01-03 07:40:27 +11:00
Josh Stewart 9a6d6dba00 Clean up some of the on/off functions for injectors and coils 2016-01-02 08:46:40 +11:00
Josh Stewart 3b3541698e Fix for missing ignition signals on channels 3 and 4 2015-12-31 16:25:57 +11:00
Josh Stewart 9545550f18 Fix for TPS reading fluctuation if ADC value fell outside of the calibration range 2015-12-27 22:35:20 +11:00
Josh Stewart 0eb1e8c967 Improvements to Audi 135 decoder - Tested against stim. 2015-12-22 16:55:49 +11:00
Josh Stewart 63588f8000 Minor fixes for fuel pump priming 2015-12-22 15:30:00 +11:00
Josh Stewart 65f430a930 Add fuel pump priming 2015-12-21 15:45:52 +11:00
Josh Stewart e00de31a37 Allow for 0ms injector pulse if VE lookup is 0 2015-12-15 21:05:29 +11:00
Josh Stewart 6472f8857e Initial commit of Audi 135 decoder 2015-12-15 16:06:42 +11:00
Josh Stewart bc92bcad0f Fix missing MAP reset in new error checking code 2015-12-13 16:53:36 +11:00
Josh Stewart 91a0649600 Experimental MAP error checking, tracking and filtering 2015-12-13 09:24:08 +11:00
Josh Stewart 5d59af7e61 Apply ignition schedule improvements to ch3/4 channels 2015-12-09 23:00:52 +11:00
Josh Stewart 23f10a918a Fix to low speed / small advance timing bug (CH 1/2 only) 2015-12-09 12:25:46 +11:00
Josh Stewart c54583f42c Add per decoder flagging for second derive prediction 2015-11-29 19:53:41 +11:00
Josh Stewart 9b69a583c2 Performance improvements (Div operations in getCrankAngle) 2015-11-25 16:55:36 +11:00
Josh Stewart c779f42d9e Potential fix for erratic spark behaviour 2015-11-25 15:39:52 +11:00
Josh Stewart 2d4ce39605 Only perform 2nd derive calcs once per tooth 2015-11-25 15:39:52 +11:00
Josh Stewart aee19dd5e2 Continued WIP 2nd derivative crank angle prediction 2015-11-14 22:01:05 +11:00
Josh Stewart 2517d97555 Move toothDeltaT out of interrupts 2015-11-08 22:56:54 +11:00
Josh Stewart 746753a4da Prevent fuel pump coming back on after 72 minute overflow 2015-11-07 22:20:29 +11:00
Josh Stewart 4191e6e865 Actually return a value when using the higher resolution cranking RPM 2015-11-04 21:49:37 +11:00
Josh Stewart 68f0ba8cfe Amending some decoders to work with 1st derive prediction 2015-11-03 21:57:12 +11:00
Josh Stewart 4b84e8bab8 Change for Jeep 2000 trigger to work correctly with cam tooth 2015-11-03 21:39:32 +11:00
Josh Stewart d992eb405a Experimental 1st deriv crank angle estimator 2015-11-03 21:22:33 +11:00
Josh Stewart c74db90249 Fix wasted COP spark mode 2015-10-30 20:50:15 +11:00
Josh Stewart ed02ba79f7 Better tuned tooth logger 2015-10-30 20:35:45 +11:00
Josh Stewart 7ea2757c95 Code optimisations, mostly small 2015-10-30 20:11:16 +11:00
Josh Stewart 8975698cdf Continued work on spark output modes 2015-10-29 06:13:16 +11:00
Josh Stewart 4c0585f902 Improvements to tooth logger 2015-10-25 22:13:58 +11:00
Josh Stewart 6fb864b0bd rpmDOT added 2015-10-21 22:19:15 +11:00
Josh Stewart fe1d58cd38 Basics of launch control in place 2015-10-18 23:20:16 +11:00
Josh Stewart fb8c93da10 IAT density correction re-added
No idea where this had disappeared to
2015-10-18 09:29:41 +11:00
Josh Stewart fda74b22cc Initial work on MAP sampling options 2015-10-09 12:42:09 +11:00
Josh Stewart 9dd0908d45 Minor safety checks added 2015-10-09 12:08:14 +11:00
Josh Stewart 57607b8ac0 Experimental fast digital IO work 2015-09-30 14:47:48 +10:00
Josh Stewart 85d1d55bc6 Fix boost and vvt eeprom offsets 2015-09-28 21:57:27 +10:00
Josh Stewart ea1a625c00 Missed file from last commit 2015-09-28 12:29:20 +10:00
Josh Stewart 4d4cd29a19 Complete but untested boost and vvt 2015-09-27 16:41:07 +10:00
Josh Stewart d5855eb7cd Further work on the boost and vvt controls 2015-09-27 09:14:29 +10:00
Josh Stewart e1f2f42107 Initial boost and vvt page work 2015-09-25 06:24:40 +10:00
Josh Stewart 2d0077f492 Re-add priming pulses 2015-09-19 10:24:15 +10:00
Josh Stewart f8fd0f9692 Allow for dynamically sized 3d tables 2015-09-18 15:06:21 +10:00
Josh Stewart d2516460d3 Correct logic on the soft rev limiter 2015-09-18 11:18:56 +10:00
Josh Stewart e7743fb001 Fix MAP scaling error 2015-09-18 09:41:10 +10:00
Josh Stewart edcc52f7cc Initial MAP sensor calibration work 2015-09-16 22:23:06 +10:00
Josh Stewart b0ecc67518 Add idleControl call back in 2015-09-16 06:12:35 +10:00
darren siepka 12f11cc1a3 added second o2 support 2015-09-14 00:16:46 +01:00
Josh Stewart 9ac2903cf1 Off by one on skip revolutions 2015-09-13 21:16:10 +10:00
Josh Stewart acf0d47c0d Minor fixes 2015-09-12 17:41:30 +10:00
Josh Stewart a789f7bbe6 Dual wheel decoder 2015-09-08 16:46:42 +10:00
Josh Stewart 7f67ac3b16 Fix for pwLimit overflow 2015-08-23 18:04:53 +10:00
Josh Stewart 60ffd8366f Low RPM timing fix 2015-08-23 11:36:18 +10:00
Josh Stewart ae7b355c3e Fix timer buffer overflow at low RPM 2015-08-22 16:24:49 +10:00
Josh Stewart 4c669423b4 Fix for fuel pump not coming on 2015-08-22 08:59:26 +10:00
Josh Stewart 93e88d4581 Confirmed polarity of 4g63 trigger. 2015-07-31 13:50:29 +10:00
Josh Stewart eb92924282 Minor corrections for 4g63 trigger 2015-07-31 13:11:25 +10:00
Josh Stewart 5b103b4959 Allow for swapped polarity on 4G63 decoder 2015-07-27 21:59:03 +10:00
Josh Stewart 322f0f6795 Complete but untested 4G63 / Miata decoder 2015-07-26 21:49:22 +10:00
Josh Stewart 359288efb7 Jeep 2000 decoder added 2015-07-24 14:07:05 +10:00
Josh Stewart 9c557ecffe GM 24X decoder added 2015-07-13 14:22:05 +10:00
Josh Stewart 57bb876964 Honour the alternating vs simultaneous injection option 2015-07-12 20:35:25 +10:00
Josh Stewart c614900fd8 Initial commit of GM7X decoder 2015-06-14 22:11:10 +10:00
Josh Stewart dd08d52db2 Add duty cycle limit option 2015-06-12 13:18:36 +10:00
Josh Stewart c8a7684d5a Actually fix the TPS from the last commit 2015-06-09 23:43:51 +10:00
Josh Stewart ade1b4d4b1 Fix faulty mapping on TPS 2015-06-09 23:38:41 +10:00
Josh Stewart eae0faa904 Minor cleanups and fixes 2015-06-09 23:32:00 +10:00
Josh Stewart d791cacae6 Another possible softLimit fix 2015-06-07 22:14:47 +10:00
Josh Stewart 24da9a4098 Possible fix for soft cut rev limit fails 2015-06-07 22:05:16 +10:00
Josh Stewart d35164c46f Minor timing protections 2015-06-05 23:30:37 +10:00
Josh Stewart 372f6da64e Switch 2D tables to pointers 2015-06-05 18:02:47 +10:00
Josh Stewart e65ed37fea Initial (Slightly buggy) commit of 16x16 tables 2015-06-05 17:28:31 +10:00
Josh Stewart f34c03c98e Big table lookup optimisation 2015-06-04 21:54:11 +10:00
Josh Stewart a9c2a2dec7 Minor performance tweaks 2015-06-04 00:31:02 +10:00
Josh Stewart 204f024218 Minor cleanups of the fan control additions 2015-06-02 22:56:18 +10:00
MoysieWRX f40958f576 Updated for Cooling Fan controls
Updated for Cooling Fan controls
2015-05-30 22:20:22 +03:00
Josh Stewart a2137403ce Some initial work on idle control 2015-05-29 17:33:00 +10:00
Josh Stewart 48f426317d Add explicit license information 2015-05-29 09:49:44 +10:00
Josh Stewart be153bd4e7 Allow for custom injection timing on a per channel basis 2015-05-29 00:15:27 +10:00
Josh Stewart 2004f066d9 Totally untested 6 and 8 cylinder support 2015-05-24 23:50:54 +10:00
Josh Stewart 5a56f05728 Add missing semi-colon from last commit 2015-05-23 21:56:15 +10:00
MoysieWRX a8b53afabf Update speeduino.ino 2015-05-23 04:34:29 +03:00
MoysieWRX 3b69b191d0 Default RPM pointer
Default RPM pointer to allow tuner studio to be opened prior to being able to configure board set-up
2015-05-23 04:07:44 +03:00
Josh Stewart 73b8979dfc Complete, but untested, 'Basic Distributor' decoder 2015-05-22 19:54:13 +10:00
Josh Stewart 30caaada2b Completed moduler decoder 2015-05-22 14:14:03 +10:00
Josh Stewart 5c77ed9d1d Correct order of setting trigger wheel 2015-05-22 11:43:10 +10:00
Josh Stewart 13c61026cb Additional modular decoder work 2015-05-18 22:46:22 +10:00
Josh Stewart a6eed4a18f Allow for trigger angle setting to 1 degree (NEED INI FILE RELOAD!!) 2015-05-16 22:06:05 +10:00
Josh Stewart a16916fa74 Initial work on modular decoders 2015-05-16 21:06:54 +10:00
Josh Stewart 0db28fab18 Add fuel pump and idle pin mappings 2015-05-16 21:06:23 +10:00
MoysieWRX de07544c80 Relocated coil and injector PinMode
Setting the coil and injector pin mode should be performed after calling the pin mapping, to ensure the outputs are set correctly preventing spurious faults. This shall correct part of the problem experienced with the ignition inversion option in tuner studio.
2015-05-09 02:56:42 +03:00
Josh Stewart 21c00cd3f9 Remove unneeded include for old file 2015-05-04 08:57:22 +10:00
Josh Stewart 128942aca6 Actually use the dwell correction curve in the code 2015-04-22 16:49:10 +10:00
Josh Stewart ffce6ad81c Add tacho output pulse 2015-04-14 14:41:44 +10:00
Josh Stewart 13f4d9b131 Remove extra byte that shouldn't have been in one of the config pages 2015-04-10 17:26:38 +10:00
Josh Stewart 3f2cd5cad3 Semi-sequential injector timing 2015-03-24 20:06:19 +11:00
Josh Stewart 2d815fa9c1 Voltage correction tables added (Not currently used) 2015-03-24 13:12:35 +11:00
Josh Stewart f97a60eb35 Add config option to set the board layout being used 2015-03-15 22:54:47 +11:00
Josh Stewart fee967d23f Initial I2C OLED display work. Functioning. 2015-03-01 08:27:16 +11:00
Josh Stewart a8e7066b41 Fixes and performance improvements to TAE 2015-02-17 16:31:26 +11:00
Josh Stewart 524c7f94f2 Reduce frequency of TPS sampling to every 16 loops 2015-02-17 15:40:09 +11:00
Josh Stewart 6568772638 Remove static casts after changing type of curGap 2015-02-16 08:47:10 +11:00
Fredrik Johansson b743b2d1d0 Make the code compileable with eclipseArduino 2015-02-14 18:04:00 +01:00
Josh Stewart 7270b0b664 Inclusion of spark tracking byte 2015-02-10 00:01:46 +11:00
Josh Stewart ea647441d3 Honour dwellCrank 2015-02-07 18:16:08 +11:00
Josh Stewart 5edf3f0699 Fix for potential missed schedules when the start time occurs at a point in the future closer than the next main loop 2015-02-06 21:18:35 +11:00
Josh Stewart 7a3996d6e0 Initial code for the closed loop algorithm 2015-02-06 08:11:33 +11:00
Josh Stewart ca67510e70 Minor cleanup of pulsewidth calc. 2015-02-04 11:52:01 +11:00
Josh Stewart e62231fb06 All the code infrastructure for the AFR target table 2015-02-03 21:33:22 +11:00
Josh Stewart 9c920f060b Revert fastMap usage 2015-01-30 23:51:01 +11:00
Josh Stewart 965b6d89eb Performance tweaking 2015-01-28 19:31:09 +11:00
Josh Stewart 2d9484731a Fix 10x error in TAE check 2015-01-28 13:04:23 +11:00
Josh Stewart e00e29144d Add serial buffer threshold check to avoid potential overflow 2015-01-26 19:40:48 +11:00
Josh Stewart 3c934962aa Enable WUE 2015-01-19 09:10:01 +11:00
Josh Stewart 2f94559101 Experimental temperature fix 2015-01-12 23:23:43 +11:00
Josh Stewart 45e4cb6466 Fixed missing temp offset on the comms signal 2015-01-12 21:23:25 +11:00
Josh Stewart 8eb6530044 Untested support for 3 cylinder engines 2015-01-03 09:09:19 +11:00
Josh Stewart c0e0e73639 Experimental change to the PW calc 2014-12-30 16:23:18 +11:00
Josh Stewart 6ec1d3fedf Use injector open time from TS rather than hardcoded 2014-12-30 11:12:01 +11:00
Josh Stewart 7d7bd02922 Fix occasional RPM flutter 2014-12-24 10:25:40 +11:00
Josh Stewart 81cfec3e2d Minor tweaks to startup and cranking 2014-12-23 20:27:46 +11:00
Josh Stewart 72ec1179b0 New calibration values for O2 2014-12-23 18:05:52 +11:00
Josh Stewart e98dba1f98 Enable basic corrections 2014-12-21 22:43:30 +11:00
Josh Stewart 6c861939ee Better decoding of -2 wheels 2014-12-21 21:00:44 +11:00
Josh Stewart 28f1285a55 Fix for potential weirdness on 2nd outputs in some cases 2014-12-19 11:25:53 +11:00
Josh Stewart fcd700b6f9 Further testing on the calibration receives from TS (Partially Broken) 2014-12-16 00:34:02 +11:00
Josh Stewart 838f0ee5c7 New sensor calibration system - Mostly working (With limitations) 2014-12-11 10:21:59 +11:00
Josh Stewart 6612e6bcf8 Fix potential overflow with low RPM schedules 2014-12-09 15:32:02 +11:00
Josh Stewart 3c325a7190 Minor changes to ini for logging and input checks 2014-11-17 22:20:40 +11:00
Josh Stewart f9a1a29fde Correctly pull in battery reference voltage (And report in TS) 2014-10-15 11:49:11 +11:00
Josh Stewart 67b4c2247b Fix for potential overflow of the req_fuel figure 2014-10-10 16:39:38 +11:00
Josh Stewart 8a5888edc3 Seemingly working TunerStudio tooth logger 2014-10-03 14:19:37 +10:00
Josh Stewart 0bd13361dd Trigger angle fix for byte division in serial comms 2014-09-22 20:15:50 +10:00
Josh Stewart f1a94642c0 Initial tooth logging 2014-09-22 09:07:34 +10:00
Josh Stewart 86d163a072 Tweaks to PW calcs 2014-09-22 05:52:32 +10:00
Josh Stewart f81294fae3 Disable corrections for now 2014-09-21 08:46:04 +10:00
Josh Stewart dee88e2340 Add corrections output channel + RPM logic change 2014-09-21 08:17:14 +10:00
Josh Stewart ea84f4d5eb Revert use of fastMap 2014-09-17 21:41:33 +10:00
Josh Stewart 1a9ad33e3a Honour the fixed timing angle setting 2014-09-15 09:08:20 +10:00
Josh Stewart 9d8d4b278d Fix compiler warning 2014-09-09 13:59:27 +10:00
Josh Stewart 601e7ed541 Addition of v0.2 pin mappings 2014-09-04 08:19:17 +10:00
Josh Stewart 9022f6e8ff Initial code for cranking staging 2014-08-25 22:03:57 +10:00
Josh Stewart eadd5e53b2 Appropriate MAP mapping for MPX4250 2014-07-17 23:42:06 +10:00
Josh Stewart b0cdc7639c Changed the triggerFilterTime to be dynamic based on max rpm 2014-07-08 09:05:32 +10:00
Josh Stewart d306e8aee7 Tweak trigger filter time to better value for 36-1 2014-07-07 22:48:50 +10:00
Josh Stewart c463aaa6d5 Minor changes to the injector schedules
Trying to track down source of injector weirdness that was reported.
Can’t see anything odd, but maybe related to multiple schedules running
concurrently.
2014-07-06 21:50:02 +10:00
Josh Stewart f17c66fe6c Fix for math error on crank timing optimisation 2014-06-30 13:04:55 +10:00
Josh Stewart 82d6ede7b8 Injector timing math tweaks 2014-06-30 00:32:22 +10:00
Josh Stewart 0943415f8a Fix for cylinder setting from TunerStudio 2014-06-29 19:36:29 +10:00