custom-board-bundle-sample-.../firmware/controllers/trigger/decoders
Scott Smith 9d61fb4cfd Drop SingleChannelStateSequence in favor of MultiChannelStateSequenceWithData (#3519)
* Drop SingleChannelStateSequence in favor of MultiChannelStateSequenceWithData

Most all the users were Multi* anyways, so just improve that:
1. Allow up to 8 waveforms to share one byte per timestamp.  It could be better but this is simple
   and gets most of the benefit.
2. Use a wrapper structure to handle reserving space for the arrays.  Makes the interface simpler
   and more rigid.  Also saves 4 bytes per Multi*.  Downside is access is now via -> and *,
   not . and (nothing).

Saves 224 bytes of BSS, 1832 bytes of RAM4/CCM, 952 bytes of TEXT, and 103 bytes of RODATA

* Instantiate a base_t to make debugging easier.
Also fixes crash on real firmware by using &m_base instead - LTO optimization issue?

* No magical templated StaticAlloc thingy.  Just virtual functions.
2021-11-21 04:56:07 -05:00
..
readme.md https://rusefi.com/forum/viewtopic.php?f=5&t=2117 2021-09-11 23:42:05 -04:00
trigger_chrysler.cpp remove engine pointer passing (#3556) 2021-11-16 04:15:29 -05:00
trigger_chrysler.h
trigger_gm.cpp refactoring 2021-07-17 00:56:50 -04:00
trigger_gm.h
trigger_honda.cpp brave refactoring 2021-11-19 23:56:52 -05:00
trigger_honda.h Honda K cam wheels #3405 2021-10-24 17:12:19 -04:00
trigger_mazda.cpp adjust miata sync conditions (#3577) 2021-11-19 02:30:05 -05:00
trigger_mazda.h OMG dead code?! 2021-06-24 22:01:57 -04:00
trigger_mercedes.cpp math is fun (#3545) 2021-11-14 15:32:35 -05:00
trigger_mercedes.h mercedes two lobe trigger testing (#3543) 2021-11-13 21:50:04 -05:00
trigger_misc.cpp https://rusefi.com/forum/viewtopic.php?f=5&t=2117 2021-09-12 13:58:03 -04:00
trigger_misc.h https://rusefi.com/forum/viewtopic.php?f=5&t=2117 2021-09-11 23:42:05 -04:00
trigger_mitsubishi.cpp
trigger_mitsubishi.h
trigger_nissan.cpp remove engine pointer passing (#3556) 2021-11-16 04:15:29 -05:00
trigger_nissan.h nissan MR18DE VVT cam pattern (#3466) 2021-11-05 15:33:22 -04:00
trigger_renix.cpp
trigger_renix.h
trigger_rover.cpp
trigger_rover.h
trigger_structure.cpp Drop SingleChannelStateSequence in favor of MultiChannelStateSequenceWithData (#3519) 2021-11-21 04:56:07 -05:00
trigger_structure.h Drop SingleChannelStateSequence in favor of MultiChannelStateSequenceWithData (#3519) 2021-11-21 04:56:07 -05:00
trigger_subaru.cpp fix (#3253) 2021-09-21 00:27:14 -04:00
trigger_subaru.h
trigger_suzuki.cpp https://rusefi.com/forum/viewtopic.php?f=5&t=2143 Suzuki G13B tooth pattern 2021-10-04 19:59:51 -04:00
trigger_suzuki.h https://rusefi.com/forum/viewtopic.php?f=5&t=2143 Suzuki G13B tooth pattern 2021-10-04 11:25:27 -04:00
trigger_toyota.cpp
trigger_toyota.h
trigger_universal.cpp brave refactoring 2021-11-19 23:56:52 -05:00
trigger_universal.h https://rusefi.com/forum/viewtopic.php?p=40383 2021-04-11 18:20:35 -04:00
trigger_vw.cpp Use pch in lots of files (#3066) 2021-07-26 01:05:17 -04:00
trigger_vw.h
triggers-meta.yaml Refactoring, technical debt: export more of trigger attributes into triggers.txt file #2077 2021-04-30 01:05:23 -04:00

readme.md

Trigger Decoders

This folder is and should not be aware of engine.h or engine_configuration.h

Hints on adding new trigger

Step 1: add into rusefi_config.txt

Step 2: add into rusefi_enums.h, update TT_UNUSED, invoke gen_enum script

Step 3: get it working.

It's useful to un-comments AllTriggersFixture line in unit_tests/main.cpp

It's useful to add setVerboseTrigger(true) into unit tests while troubleshooting fresh trigger code