Categories

Makahiya – touch detection and automatic test

Hi everybody,
During this long week-end, I had time to work on the first lines of code of our project: the touch/slide detection algorithm. On Sunday, I recorded many data with different configuration in order to be able to test my code. To do the tests, I’ve chosen Criterion, which is a C unit testing framework, well documented and easy to use. The more I use automatic tests the more I like them: it’s so nice to have the opportunity to quickly check that what you’ve just done has not broken hours of work. And if something has been broken, you can fix it immediately. So I’m happy to have found time to learn how to use Criterion. For now, the algorithm is able to detect the touches and the slides on the records I’ve given to it. As Tanguy said, he suggested me another solution to detect slides and touches which visually seems efficient. I’ll integrate it in the code as soon as possible (I hope tomorrow) in order to see if it’s really as efficient as it looks like.

Today, with Samuel’s help, I set up a continuous integration tool on gitlab (it’s called Docker). Combining this tool and Criterion, the tests are now run automatically at each pull on gitlab. This is a good starting point for future clean developments of code.

As Tanguy said, we hoped we could test the optic fiber today but unfortunately, they were not there… We now hope to test it on Friday. In fact no, not in Friday. Because we’re almost certain that on Friday will occur a special event well known by all those who’ve followed the ROSE lessons: the challenge (called communication challenge in the previous years). Indeed, our lab code must work before Friday 07:00 am and we are strongly encouraged to look at our laptops starting from 07:30 am… So on Friday, it’s very likely that we won’t have time to test the optic fiber. So we’ll do it after, as soon as possible.

For the end of this week, I will continue to work on the detection algorithm and if possible we’ll do some tests with the optic fiber in order to definitely choose the LEDs and terminate the electrical schematic of our project.

Leave a Reply