#ifndef COMPUTE_H #define COMPUTE_H #include "usart.h" #include "print.h" #ifdef __linux__ #include #include #define Debug ::printf #else #define Debug(...); #endif extern void ReadData (int * data, const int len); extern float msqrtf (const float x); extern float sincos (const float x, const bool even); static constexpr unsigned N = 3u; class Vector { float data [N]; public: explicit Vector () { for (unsigned n=0u; n(ptr [i]); } } float & operator[] (const unsigned n) { return data [n]; } float abs () const { float r = 0.0f; for (unsigned n=0u; n