Commit Graph

515 Commits

Author SHA1 Message Date
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
Josh Stewart 6b0116cace More complete Teensy pin mappings 2017-04-21 16:33:52 +10:00
Josh Stewart 6915987339 A few small multi-arch fixes 2017-04-21 16:33:24 +10:00
Josh Stewart e399eb1df6 Some teensy fixes 2017-04-15 08:42:33 +10:00
Josh Stewart ac37fafc84 April dev firmware 2017-04-15 08:40:29 +10:00
Josh Stewart 21cdfa7f03 Add error message indicating when the wrong board is selected in the Arduino IDE 2017-04-13 09:40:12 +10:00
darren siepka 9bff58a265 added 8ch input over serial3 , displays data in TS live and logs to TS log file.
Data format follows j1939 type methods , see protocol doc
2017-04-09 01:17:36 +01:00
Josh Stewart 5d031a0fc9 Signature and base tune for March 2017-04-03 16:12:24 +10:00
Josh Stewart 34b9adb777 Add stepper idle disable function for DRV8825 2017-04-02 21:17:29 +10:00
Josh Stewart 676a001fb8 Initial commit of Subaru 6/7 (Likely has bugs) 2017-03-31 22:39:33 +11:00
Josh Stewart 822c400c01 Fix for potentially wrong initialisation of the on/off idle control 2017-03-30 00:01:52 +11:00
Josh Stewart 87ba2164fb Somewhat hacky workaround for different speed AVR timers 2017-03-29 18:11:16 +11:00
Josh Stewart 3820fa8201 Some Teensy compatibility improvements 2017-03-29 14:03:38 +11:00
Josh Stewart 4897e44f55 Merge branch 'master' into pr/73
# Conflicts:
#	reference/speeduino.ini
#	speeduino/comms.h
#	speeduino/comms.ino
#	speeduino/globals.h
2017-03-25 09:17:06 +11:00
Josh Stewart 9c3776f12c Complete compiling (and linking) on stm32 2017-03-23 17:34:10 +11:00
Josh Stewart a5e47cb3ff Compile (but not link) cleanly on stm32 2017-03-23 17:19:18 +11:00
Josh Stewart d38a9584c5 Bunch of little stm32 compatibility tweaks 2017-03-23 12:25:51 +11:00
Josh Stewart 360d208b56 Allow for cam speed missing tooth wheels where the tooth count will not divide into 360 (but will into 720) 2017-03-22 16:56:41 +11:00
Josh Stewart 8fc87e062a Fixes for closed loop stepper idle (Now ready for wider testing) 2017-03-22 12:44:22 +11:00
Josh Stewart 697e3a2c17 Add option to disable resync once every cycle (Dual wheel, Audi 135 and 4G63) 2017-03-21 17:19:07 +11:00
Josh Stewart babbd726d6 Better initial outputs for closed loop stepper 2017-03-20 23:29:34 +11:00
Josh Stewart 880947746f Many small updates to the idle system (Including additional logging) 2017-03-20 22:29:42 +11:00
Josh Stewart c28547dc3a Add a bunch more values to the log output (Including boost duty) 2017-03-16 18:17:12 +11:00
Josh Stewart eb334b5a1c Cleanup of variable names and Enable check 2017-03-15 23:19:08 +11:00
Josh Stewart afb6f71aae Complete closed loop stepper idle (Needs testing) 2017-03-14 17:25:59 +11:00
Josh Stewart 31836511a3 Initial closed loop stepper idle (Not quite complete) 2017-03-10 20:34:39 +11:00
darren siepka 74cf93b979 add test modes to injector and spark outputs 2017-03-10 00:46:11 +00:00
Josh Stewart 2c2d926bf8 Low speed sync fix for Audi 135 2017-03-08 14:02:05 +11:00
Josh Stewart d686364e69 March dev signature 2017-03-08 13:19:30 +11:00
Josh Stewart a0ede949b7 Base tune and signature update for Feb release 2017-03-03 12:51:34 +11:00
Josh Stewart 5c5cc71d8f Final minor cleanup before Feb release 2017-03-03 12:51:19 +11:00
Josh Stewart 7818d418d4 Minor performance tweaks to Nissan 360 2017-03-01 16:53:29 +11:00
Josh Stewart 22af95db32 Seemingly working Nissan 360 decoder (4 and 6 cylinder) 2017-03-01 16:17:30 +11:00
Josh Stewart 4e3760057c Define correct pin mask/ports for the primary trigger 2017-03-01 14:45:23 +11:00
Josh Stewart bfd62bcff2 Remove MK20 schedule definition (Use generic TEENSY def) 2017-03-01 14:44:25 +11:00
Josh Stewart 88e412bcf6 Teensy idle code 2017-03-01 14:42:24 +11:00
Josh Stewart 26a6945856 Consistency improvements to Audi135 and 4G63 decoders 2017-03-01 10:30:23 +11:00
Josh Stewart 707d65cac8 Shuffle around memory to make upgrades simpler 2017-02-26 16:33:03 +11:00
Josh Stewart b7aacc6040 Add some ground work for Teensy inj and ign channels 5-8 2017-02-20 21:34:28 +11:00
Josh Stewart 0d055dc7f1 Allow min and max duty cycles for closed loop idle and boost 2017-02-20 17:57:46 +11:00
Josh Stewart a881ddc405 Temporarily disable ADC interrupt until the bug with it is found 2017-02-15 22:20:43 +11:00
Josh Stewart f6818adecc Faster responding boost PID 2017-02-15 16:51:01 +11:00
Josh Stewart a7d0a95611 Use currentStatus.spark rather than currentStatus.engine for error indicator. Fixes #67 2017-02-14 15:21:38 +11:00
Josh Stewart 0ae02e23f1 Minor cleanups or warnings and error (from last commit) 2017-02-14 01:07:05 +11:00
Josh Stewart 650a096175 Initial (untested) commit of Nissan 360. ONLY support 4 cylinder so far 2017-02-12 18:35:18 +13:00
Josh Stewart 91512b775a Very weak filter added to instantaneous MAP readings 2017-02-12 14:43:18 +13:00
Josh Stewart 667e80dc26 Add boost target to log 2017-02-12 14:31:37 +13:00
Josh Stewart bec06bca3a Improve calculation speed of boost control 2017-02-11 22:33:07 +13:00
Josh Stewart b8fec27bc0 Swap incorrect boost and VVT pin assignments 2017-02-09 21:51:18 +11:00
Josh Stewart 0fc212ec11 Remove all traces of PSI based boost targets
The metric conspiracy lives! Muhahahahahah
2017-02-09 14:24:07 +11:00
Josh Stewart 4ca8205591 More MAP sanity settings 2017-02-09 14:22:57 +11:00
Josh Stewart 7db51bd416 Sanity checks on the average MAP calculation 2017-02-09 14:17:20 +11:00
Josh Stewart 74137338e5 February dev signature 2017-02-09 09:54:25 +11:00
Josh Stewart 8b4008ce27 Extremely early stm32 work
I was bored
2017-02-08 15:40:44 +11:00
Josh Stewart 279893f580 Remove some old display code that is no longer used 2017-02-08 15:28:27 +11:00
Josh Stewart c555bbc060 Move to PlatformIO for project layout 2017-02-06 20:56:46 +11:00