Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Make Rate always trigger on first step

Oleg Kalachev3f4577bb2cbf
diff --git a/flix/util.h b/flix/util.h
index 4db65a4..32df03e 100644
--- a/flix/util.h
+++ b/flix/util.h
@@ -68,7 +68,7 @@ public:
class Rate {
public:
float rate;
- float last = 0;
+ float last = -INFINITY;
Rate(float rate) : rate(rate) {}
operator bool() {