Commit Graph

23 Commits (e7812ecf16945fb41df201e6c8a65c0f8a421b59)

Author SHA1 Message Date
D.R.racer e7812ecf16 Fix+verify Cut filament unit test
it now finished ok, but future tweaks and improvements are expected
2021-06-18 09:42:56 +02:00
D.R.racer 2dd19e94aa Introduce Timebase module, refactor timing code + unit tests 2021-06-18 09:15:36 +02:00
D.R.racer 7a265cef78 Feed to FINDA unit tests : green 2021-06-18 07:46:55 +02:00
D.R.racer f9a715b8e8 Verify+fix second Feed to FINDA's unit test 2021-06-18 07:33:01 +02:00
D.R.racer 1b1e70a9e2 Unify buttons' API with other modules
- accepts millis() instead of doing the timing internally (which has
been a temporary solution just for the tests until now)
2021-06-18 07:27:43 +02:00
D.R.racer e136f5cd87 Shorten ADC reinit usage 2021-06-18 06:47:01 +02:00
D.R.racer 5bae3e8d23 Add forced reinit of all automata for the unit tests
+ added a few constexpr to constructors on the way
2021-06-18 06:47:01 +02:00
D.R.racer 87caa89354 Tune Feed to FINDA state machine and its unit test
so that it works as expected

Still, there is a task of resetting all of the state machines just for
the next unit test to be run.
2021-06-18 06:47:01 +02:00
D.R.racer 0943eb775f Add unit tests for Feed to FINDA state machine
+ improve infrastructure
2021-06-18 06:47:01 +02:00
D.R.racer e7ef601ccd Basic unit test structure for the logic layer
It compiles the Cut Filament unit test with all the necessary components.
Still, the unit test does nothing.
2021-06-18 06:47:01 +02:00
D.R.racer 019f74d6f2 Add debouncing for FINDA 2021-06-08 07:00:07 +02:00
D.R.racer bd335ec30d Unit test for LEDs interface + fixes 2021-05-26 11:39:24 +02:00
D.R.racer c377674aee Prepare unit tests for LEDs 2021-05-25 12:33:50 +02:00
D.R.racer 9226230fd5 Reformat sources to fit the new namespace formatting rules 2021-05-25 12:24:19 +02:00
D.R.racer fce2195558 Interface module for driving LEDs
+ start shaping up main.cpp
+ make the usage of namespaces and class names more consistent throughout the whole project
+ refactor related unit tests accordingly
2021-05-25 11:00:30 +02:00
D.R.racer 7611b98830 Add more unit tests and optimize (saved 1 byte per button on the AVR) 2021-05-25 10:02:02 +02:00
D.R.racer ba8eacfe33 Buttons module implementation
A module representing a model of the 3 buttons
Includes a unit test project (empty at this stage)
2021-05-25 10:02:02 +02:00
D.R.racer 6ebb281eda Update CMakeFiles.txt and temporarily fix compilation of unit tests 2021-05-18 08:58:23 +02:00
D.R.racer fe0ac4f9f9 More unit tests for decoding of response messages
+ related changes in code
2021-05-18 08:18:11 +02:00
D.R.racer 30fbf6d870 Unit tests for decoding requests and responses
+errors on requests
2021-05-18 08:18:11 +02:00
D.R.racer 0633dea881 Protocol implementation
+ unit tests for encoding of messages

API still subject to minor changes
2021-05-18 08:18:11 +02:00
D.R.racer 7eb346a54d Add first unit test
+proof of concept of Catch2 builds working in our repo
2021-05-13 17:35:08 +02:00
D.R.racer 257d0ec340 Prepare parts of the build system
extracted and slightly modified from Buddy-FW, still doesn't work
2021-04-19 07:03:47 +02:00