Commit Graph

2344 Commits

Author SHA1 Message Date
Matthew Kennedy 51a23364e2
Odd cylinder engine wasted spark (#479)
* allow wasted spark spin-up

* allow firing without phase sync on odd cyl engines

* support odd cyl wasted spark

* changelog

* unit test it

* wow, it's easy to support odd-fire too
2024-08-31 02:22:31 -07:00
Matthew Kennedy 761efd862c
MAP avg uses engine module callbacks (#475)
* use engine module callbacks

* happy tests

* happy small-can-board

* interact with map avg via module

* simplify map avg init

* tweaks

* omit module to disable it instead!

* unnecessary guard

* minor cleanups

* unnecessary branch - lookups for these tables are fine at 0 rpm

* oop
2024-08-29 22:38:30 -07:00
Matthew Kennedy 75a50695c6 extend engineModules.apply_all to onEnginePhase 2024-08-28 02:26:16 -07:00
Matthew Kennedy bd7f8f2bb6 remove trigger input debug pins 2024-08-28 02:06:02 -07:00
Matthew Kennedy 2d4a87523e fix tests 2024-08-07 12:16:19 -07:00
Matthew Kennedy 08c878dbb9 sorry ADC trigger, your performance was never proven and you're in the way now 2024-08-06 23:21:36 -07:00
Matthew Kennedy e4b8aa3747
oil pressure protection (while running) (#460)
* config

* implement

* defaults

* check array bins

* gauge

* test the new behavior
2024-08-06 13:10:10 -07:00
Matthew Kennedy b1a05c8e64 triggers txt 2024-08-05 22:10:45 -07:00
Matthew Kennedy 70025791c6 this assertion didn't actually confirm any observable behavior 2024-08-05 11:47:54 -07:00
Matthew Kennedy f3045af367 AE is engine module 2024-08-01 21:45:54 -07:00
Matthew Kennedy ff5e47c95d
Engine modules participate in the build system (#452)
* infrastructure for engine modules in the build

* fully move fuel pump

* fan

* gear detector

* gear detect

* fan control cleanup

* trip odometer

* shuffle makefiles around a little

* minor format
2024-07-23 18:05:43 -07:00
Matthew Kennedy 7713071a8f std::isnan 2024-07-23 15:47:30 -07:00
Nathan Schulte 50f7a653a7
Toyota ETCS-i [02/02]: RedundantSensor: partial second (avoid average, etc.) (#431) 2024-07-16 02:08:43 -07:00
Matthew Kennedy 9cae70c341 fix tests 2024-07-12 14:06:29 -07:00
Matthew Kennedy dd8dea61c0 rename Executor -> Scheduler 2024-07-11 17:03:13 -07:00
Matthew Kennedy e61e4c4b09 remove scheduleByTimestamp() 2024-07-11 16:38:42 -07:00
Matthew Kennedy 89a0b273c6 don't use scheduleByTimestamp 2024-07-11 16:32:55 -07:00
Matthew Kennedy 1731b30337 remove scheduleForLater 2024-07-11 16:27:30 -07:00
Matthew Kennedy 23f91d2fca wow, all of this was dead code 2024-07-03 00:37:27 -07:00
Matthew Kennedy bb1d5f26d2 for loop formatting 2024-07-03 00:22:48 -07:00
Matthew Kennedy d907e6123f fix sensor mock tests 2024-06-28 10:13:22 -07:00
Nathan Schulte cd38fa1f61
remove functionpointer sensor (#442)
* remove functionpointer sensor

* remove function_pointer_sensor.cpp from tests.mk
2024-06-14 12:17:09 -07:00
Matthew Kennedy 2eb6c25313
ts refactoring (#439)
* replace large buffer instances

* handlePageReadCommand uses locked

* cleanup

* explicitly call big vs. small packet implementation

* correctness

* unused UNUSED

* cleaner TS logging & cleanup

* about time we bumped this
2024-06-09 20:26:27 -07:00
Matthew Kennedy c3e63d5541 fix test 2024-06-03 18:00:22 -07:00
Nathan Schulte a195289a12
Toyota ETCS-i [01/02]: meld FordRedundantTps Sensor into RedundantSensor (#430)
* remove redundant_ford_tps

* meld redundant_ford_tps logic into RedundantSensor

* default tps/ppsSecondaryMaximum is 100

* initTps uses melded RedundantSensor

* meld RedundantSensor unit tests

* RedundantSensor::showInfo prints redundancy status

* RedundantSensor::showInfo prints partial redundancy status

* assert SensorResult code in RedundantSensor tests

* RedundantSensor doesn't hide primary sensor result code

in the case of a single sensor only, don't hide the UnexpectedCode value
2024-06-03 11:28:56 -07:00
Nathan Schulte 4351a8b1bc
size_t vs int compare fix (#438) 2024-06-03 11:27:29 -07:00
Matthew Kennedy 202ce2a8df s 2024-06-03 01:04:58 -07:00
Matthew Kennedy 493ddfdd92 happy tests? 2024-06-02 22:44:58 -07:00
Matthew Kennedy e70d4c7528 implement mazda L cam 2024-05-27 21:07:57 -07:00
Matthew Kennedy 044e575af6 Map3D considered harmful #421 2024-05-03 22:55:18 -07:00
Matthew Kennedy fecb5f6cfc unit test time is actually stored in ticks 2024-04-27 02:04:25 -07:00
Matthew Kennedy 80358ad54e setTimeNowUs(): replace global fiddling with a functino call 2024-04-27 01:59:38 -07:00
Matthew Kennedy 5f52f5fc9f no need for getTimeNowUs on ETH 2024-04-27 01:48:02 -07:00
Matthew Kennedy 1561a894ee minor cleanup 2024-04-26 12:49:37 -07:00
Matthew Kennedy 6c7bc7961c unit test global cleanup 2024-04-26 02:04:04 -07:00
Matthew Kennedy 80d9fd41aa unit test global cleanup 2024-04-26 02:02:49 -07:00
Matthew Kennedy 47ee857699 haha these two functions do the same thing!? 2024-04-25 22:17:20 -07:00
Matthew Kennedy decbaaef4a common getTimeNowUs 2024-04-25 22:01:46 -07:00
Matthew Kennedy be2c04813a common getTimeNowS 2024-04-25 21:57:50 -07:00
Matthew Kennedy 79dfb0f2c4 wrap times in simple structs 2024-04-25 15:46:53 -07:00
Matthew Kennedy d5ac15b9f2 test 2024-04-25 14:19:32 -07:00
Matthew Kennedy 46b3a748ba more tests that are less chaos now 2024-04-12 12:19:24 -07:00
Matthew Kennedy 3c28268a6c testFasterSpinup doesn't trigger error 2024-04-12 12:13:25 -07:00
Matthew Kennedy 9d8a23241b better log 2024-04-12 12:13:12 -07:00
Matthew Kennedy 61dd44a4ba test for noisy triggers and another fix 2024-04-12 11:29:38 -07:00
Matthew Kennedy 52c2aa45ea
fix overdwell in case of noisy trigger (#410) 2024-04-12 04:08:58 -05:00
rusefillc f269d56474
Odd fire unit (#407) 2024-04-10 21:36:01 -05:00
rusefillc 89462092a1
default argument to improve test API (#405) 2024-04-09 22:42:16 -07:00
Matthew Kennedy 3f8931f341 we often mean inline when we say static 2024-03-28 18:20:40 -07:00
Matthew Kennedy 3face67d0d maybe fix mac 2024-03-23 13:13:04 -07:00