Commit Graph

2359 Commits

Author SHA1 Message Date
Matthew Kennedy e727d7305e
enable the sanitizer in tests again (#490) 2024-09-17 20:54:24 -07:00
Matthew Kennedy 4a37518d75 adjust test for new clamping default 2024-09-17 20:09:31 -07:00
Matthew Kennedy 8524a2212e we have almost 600 tests! 2024-09-17 18:51:26 -07:00
Matthew Kennedy 3a394dc83a ETB expAverage cleanup #489 2024-09-17 18:49:13 -07:00
Matthew Kennedy 64108b67cf only check throttle jam while ignition is on #489 2024-09-17 18:33:32 -07:00
Matthew Kennedy 877ec23c47 etb jam tests #489 2024-09-17 18:18:00 -07:00
Matthew Kennedy 5c3d417441 simpler ETB jam detection #489
rather than try to integrate error over time, simply fault if there's been too much error for too long. Up to +-X error is allowed for any period of time, more is allowed for Y seconds.
2024-09-17 17:58:19 -07:00
alrijleh 9c928539bc
Disable DFCO when clutch is applied (#487)
* compiles but untested

* hide TS setting if clutchUpPin is not configured

* unit test passes

* disable feature if io not configured, fix unit test commit

* de morgans to align with other gating conditions - no functional change
2024-09-16 22:39:41 -07:00
Matthew Kennedy 8312686f22 AC state change uses a timer 2024-09-12 23:52:10 -07:00
Matthew Kennedy 89338bd4f9 implement DFCO hysteresis #478 2024-09-12 22:55:49 -07:00
Matthew Kennedy 48488b4f82 prefer true/false over 1/0 2024-09-12 22:52:00 -07:00
Matthew Kennedy 367cb28c99 oops missed one 2024-09-12 22:37:52 -07:00
alrijleh 86c1c52551
configure DFCO MAP threshold to vary based on RPM (#485)
* it compiles

* added description to the graph panel

* fixed typo and improved description

* dfco fuel cut map unit test added and passes

* added default settings
2024-09-12 22:13:30 -07:00
Matthew Kennedy 093ae1a17c fix alphaNUseIat 2024-09-12 22:00:25 -07:00
Matthew Kennedy ec043ad81f getVVTPosition returns expected<> 2024-09-12 21:25:18 -07:00
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