Commit Graph

429 Commits

Author SHA1 Message Date
Josh Stewart 5de68f3c54 Add matching corrections.h to go with the current corrections.ino 2017-10-24 23:30:51 +11:00
Josh Stewart 91bea0766f Fix bug that could cause RPM to spike when first cranking on missing tooth patterns 2017-10-24 21:07:22 +11:00
Josh Stewart 2ec972948f Changes to logged variables 2017-10-24 16:54:18 +11:00
Josh Stewart 6a8ab1015b Move the pulse width function into the speeduino.h scope 2017-10-24 14:08:32 +11:00
Josh Stewart 543b33c774 Remove some unused variables 2017-10-24 11:22:05 +11:00
Josh Stewart d3303e8b3d Add small flash mode to help with the Bluepill memory problem 2017-10-19 17:15:08 +11:00
Josh Stewart 53b039a3df Add check on the fuel schedules to prevent overflow below 58rpm 2017-10-19 17:02:43 +11:00
VitorBoss a52adc48a8 Merge branch 'master' of git://github.com/noisymime/speeduino into noisymime-master 2017-10-13 18:00:58 -03:00
Josh Stewart 98f5640a77 Another attempted fix for fluctuating MAP readings 2017-10-11 18:54:42 +11:00
Josh Stewart ace8c1f129 Potential fix for erratic MAP readings in some instances 2017-10-11 00:12:07 +11:00
Josh Stewart e921901fc0 Pass fuel pulse width full value to TS 2017-10-10 21:58:03 +11:00
Josh Stewart 91a428401a October dev signature 2017-10-10 19:56:37 +11:00
Josh Stewart 2fca4d481b Correction for fuel pump over analog pin mapping 2017-10-09 13:34:41 +11:00
Josh Stewart b067ef100b Signature and base tunes for Sep 2017 release 2017-10-09 12:02:05 +11:00
Josh Stewart 34cd1d3cfd Corrected scope for valueOffset to fix chunk write issue 2017-10-09 11:52:27 +11:00
Josh Stewart ea77358045 More string trimming for bluepill 2017-10-08 20:50:54 +11:00
Josh Stewart 7adeeb3eaa Some incomplete work on 4g63 sequential 2017-10-08 20:15:49 +11:00
Josh Stewart 9af5534de4 Better handling of live chunk receives in comms 2017-10-08 11:07:49 +11:00
VitorBoss 59be466201 Typo fix 2017-10-06 16:44:29 -03:00
VitorBoss bc71f23895 Merge branch 'master' of git://github.com/noisymime/speeduino into noisymime-master 2017-10-06 14:43:56 -03:00
Josh Stewart ef89229e27 More consistent rolling hard cut 2017-10-04 21:16:08 +11:00
Josh Stewart 485affc81e Cleanup some of the strings to reduce sketch size for Bluepill 2017-10-04 18:02:12 +11:00
Josh Stewart 9202afe7cf Prevent memory corruption from the page expansion 2017-10-04 12:24:40 +11:00
Josh Stewart 621f6b4d68 Small adjustments to Miata 9905 pattern 2017-10-04 10:45:00 +11:00
Josh Stewart 683fe44562 Initial work on rolling sign cut rev limit 2017-10-04 09:48:46 +11:00
Josh Stewart 172cd18435 Add explicit on/off mode for the VVT table 2017-10-02 20:01:08 +11:00
Josh Stewart c901748974 Allow use of Analog pins for some selectable outputs 2017-10-01 00:07:36 +10:00
VitorBoss 44a0da5a62 Small fixes 2017-09-23 11:47:48 -03:00
Josh Stewart 9591d4f935 Add dedicated CPU and memory outputs for future benchmarking 2017-09-22 21:28:34 +10:00
Josh Stewart 7aa8d277f3 Potential fix for cranking problem on Miata 9905 pattern 2017-09-20 16:43:55 +10:00
Josh Stewart 515f0a626f MISRA cleanup from the comms work 2017-09-20 14:38:42 +10:00
Josh Stewart e4a18fb45e Updater script for all the crazy serial stuff 2017-09-20 14:07:15 +10:00
Josh Stewart 46b1663da9 Support chunk serial comms mode 2017-09-20 14:06:55 +10:00
Josh Stewart 9d89494666 Expand page 4 to 128 bytes 2017-09-20 12:15:41 +10:00
Josh Stewart 1cd2a0f296 Expand page 2 to 128 bytes in size 2017-09-19 15:09:32 +10:00
Josh Stewart 5b3df5ac4d Merge config pages 6 and 7 2017-09-19 14:51:33 +10:00
Josh Stewart 6763ff15b4 Initial work on new serial comms protocols (Working, but slow) 2017-09-19 14:10:07 +10:00
Josh Stewart 7ca7650a31 Disable manual WDT to prevent it causing problems with serial comms 2017-09-19 14:09:02 +10:00
Josh Stewart ae780dc940 New per page based EEPROM writes 2017-09-19 14:05:43 +10:00
Josh Stewart 02976029cf Comment cleanup 2017-09-18 10:38:49 +10:00
Josh Stewart 7d3ffa5941 Fix for fuel pump priming never ending on 4g63 and Miata9905 patterns 2017-09-16 16:45:40 +10:00
Josh Stewart 2d03665162 Remove unused odd fire variable 2017-09-12 14:02:00 +10:00
Josh Stewart d0d5a38c23 Double sync checking method for 4g63 2017-09-12 14:01:28 +10:00
Josh Stewart 0694564ed1 September dev signature 2017-09-10 00:51:10 +10:00
Josh Stewart d8d1d8ff04 August signature and base tune 2017-09-09 22:07:46 +10:00
Josh Stewart 70693ae3a8 Further improvements to the Nissan 360 pattern 2017-09-09 22:07:12 +10:00
Josh Stewart 62d3c19c31 Adjust for full sensitivity scale on ideal PID controller 2017-09-07 08:58:24 +10:00
Josh Stewart 7c0932a396 Adjust boost timings slightly 2017-09-07 06:20:22 +10:00
Josh Stewart 72c2a3fb4b Change MAP variable type to long for boost levels > 255kPa 2017-09-06 09:40:56 +10:00
Josh Stewart 4e858f1ca8 Completed new PID mode for boost control 2017-09-04 11:50:55 +10:00
Josh Stewart 3b33094230 Initial commit of new Ideal PID implementation (Active for boost control) 2017-09-03 20:28:49 +10:00
VitorBoss 8af08a7209 Included 12bit math for STM
Boost/VVT pins dont change if 0%
Change visual led clock to 4Hz
Change analog resolution to 10bits on STM32GENERIC core
2017-09-02 13:26:41 -03:00
VitorBoss 5721c9700b Changed pins to any STM32F1
Make debug more friendly on Updates.ino
2017-09-01 23:21:14 -03:00
VitorBoss da39db1476 Fix potential crash on IDLE when first flash
Other cosmetic changes
2017-09-01 16:16:45 -03:00
VitorBoss 04fe29010c Merge branch 'master' of https://github.com/VitorBoss/speeduino 2017-08-31 17:40:21 -03:00
VitorBoss 6b205e832f Fix error on IDLE 2017-08-31 17:38:41 -03:00
Josh Stewart bd54aae566 Enable per tooth timing on Nissan 360 2017-08-31 21:04:32 +10:00
Josh Stewart eb400302f4 Fix incorrect divide on Nissan 360 2017-08-31 18:20:25 +10:00
Josh Stewart e7ac717796 Startup improvements on Nissan 360 CAS 2017-08-31 18:01:37 +10:00
Josh Stewart 515cf332f1 MISRA cleanup 2017-08-31 15:03:39 +10:00
Josh Stewart 2d0189c76d Cleanup of files that didn't need to be changed in preparation for merge 2017-08-31 14:53:46 +10:00
Josh Stewart 976c18fb26 Merge branch 'master' into master 2017-08-31 14:46:06 +10:00
Josh Stewart 0ccab57e61 Fix for potential miss on trailing spark of FC rotary mode at high RPM 2017-08-31 12:09:13 +10:00
Josh Stewart 6aebf7e068 Allow for setting secondary trigger edge on Miata 99-05 2017-08-30 12:54:21 +10:00
Josh Stewart e93bf9f5ac Fix RPM calc issue on Miata 99-05 2017-08-30 12:53:56 +10:00
Josh Stewart 2ced120022 Tweaks to Miata 99-05 pattern 2017-08-29 00:11:50 +10:00
VitorBoss b9282e1edd Clear MISRA error on decoders 2017-08-28 02:36:28 -03:00
VitorBoss d4876f5883 Removed unused table code 2017-08-28 02:32:18 -03:00
VitorBoss 9e4746596a Fix github mistakes 2017-08-28 02:21:34 -03:00
VitorBoss 04be30dc03 Add missing variables 2017-08-28 02:15:05 -03:00
VitorBoss 1ffbad8a43 Revert "Merge branch 'master' into pr/5"
This reverts commit d8898db9fe, reversing
changes made to b1e7b854d0.
2017-08-28 02:01:36 -03:00
Vitor Moreno B. Sales 8f9619ca96 Update timers.ino 2017-08-28 01:54:53 -03:00
Vitor Moreno B. Sales d8898db9fe Merge branch 'master' into pr/5 2017-08-28 01:53:24 -03:00
VitorBoss b1e7b854d0 Enable CRC on multi lib 2017-08-28 01:44:08 -03:00
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