Implement RC calibration, common for the real drone and the simulation

This commit is contained in:
Oleg Kalachev
2024-01-02 11:54:09 +03:00
parent 78f3f6e3b3
commit f520b57abe
9 changed files with 74 additions and 20 deletions

View File

@@ -52,6 +52,10 @@ public:
return result;
}
size_t print(int n) {
return printf("%d", n);
}
size_t print(float n, int digits = 2) {
return printf("%.*f", digits, n);
}