speeduino/test
tx_haggis 0afffb2ca0
Unit test the schedule calculations (#1010)
* Refactor: separate out schedule calcs from speeduino.ino
(so they can be unit tested)

* Add unit tests for compute_delay

* Use PROGMEM to store test input & output

* Add some 720 unit tests

* Rename unit test file

* Test ignition codepaths 2-8

* Test ign1 calcs

* Add first injector calc tests

* Add 720 deg tests
Simplify

* Simplify test_calc_inj1_timeout

* Claw back RAM

* Simplify test framework
Channel angle is part of the test data set.

* Move schedule calculation unit tests into their own harness
Competing for RAM with the rest of Speeduino
can cause them to fail,

* Performance: inline all schedule calcs.

* Unit test end angle

* Unit test calculateIgnitionAngle1

* Test start angles also
And test end angles for channel 1

* Unit test calculateIgnitionAngle3

* Unit test calculateIgnitionAngle4

* Improve unit test output

* Add Nissan360 decoder unit tests.

* Add Ford ST170 decoder unit tests

* Add NGC decoder unit tests
2023-03-06 17:23:17 +11:00
..
test_decoders Unit test the schedule calculations (#1010) 2023-03-06 17:23:17 +11:00
test_fuel Tests failing due to out of memory and uninitialized variables (#979) 2023-01-09 06:53:45 +09:00
test_misc Tests failing due to out of memory and uninitialized variables (#979) 2023-01-09 06:53:45 +09:00
test_misc2 Tests failing due to out of memory and uninitialized variables (#979) 2023-01-09 06:53:45 +09:00
test_schedule_calcs Unit test the schedule calculations (#1010) 2023-03-06 17:23:17 +11:00
test_schedules Unit test the schedule calculations (#1010) 2023-03-06 17:23:17 +11:00
test_table3d_native Add table2d tests (#748) 2021-12-23 15:07:38 +11:00