Added ESP-IDF Wifi/UDP support (but it still give linker errors)

This commit is contained in:
Pascal Serrarens 2025-04-02 12:45:59 +02:00
parent 7461a1ff77
commit 06ff5e9ab6
3 changed files with 11 additions and 11 deletions

View File

@ -21,7 +21,7 @@ template <typename T>
class AngleOf {
public:
/// @brief Create a new angle with a zero value
AngleOf<T>();
AngleOf();
/// @brief An zero value angle
const static AngleOf<T> zero;

View File

@ -3,7 +3,7 @@
#pragma region Matrix1
LinearAlgebra::Matrix1::Matrix1(int size) : size(size) {
Matrix1::Matrix1(int size) : size(size) {
if (this->size == 0)
data = nullptr;
else {
@ -12,7 +12,7 @@ LinearAlgebra::Matrix1::Matrix1(int size) : size(size) {
}
}
LinearAlgebra::Matrix1::Matrix1(float* data, int size)
Matrix1::Matrix1(float* data, int size)
: data(data), size(size) {
this->externalData = true;
}

View File

@ -9,8 +9,8 @@ namespace LinearAlgebra {
/// @brief A 1-dimensional matrix or vector of arbitrary size
class Matrix1 {
public:
int size = 0;
float* data = nullptr;
int size = 0;
Matrix1(int size);
Matrix1(float* data, int size);
@ -74,12 +74,12 @@ class Matrix2 {
}
return r;
}
friend Matrix2 operator*(float f, const Matrix2& v) {
Matrix2 r = Matrix2(v.nRows, v.nCols);
for (int ix = 0; ix < r.nValues; ix++)
r.data[ix] = f * v.data[ix];
return r;
}
// friend Matrix2 operator*(float f, const Matrix2& v) {
// Matrix2 r = Matrix2(v.nRows, v.nCols);
// for (int ix = 0; ix < r.nValues; ix++)
// r.data[ix] = f * v.data[ix];
// return r;
// }
void SetSlice(int rowStart,
int rowStop,
@ -208,6 +208,6 @@ class MatrixOf {
};
} // namespace LinearAlgebra
using namespace LinearAlgebra;
//using namespace LinearAlgebra;
#endif