Framkvæmdi test á hegðun PI_controller

This commit is contained in:
2026-10-01 10:58:06 +00:00
parent 11df24f592
commit bf389cd012
4 changed files with 53 additions and 20 deletions
+5 -1
View File
@@ -1,3 +1,6 @@
// main.cpp er sleppt i test-build (pio test) svo setup()/loop() rekist ekki a prof
#ifndef PIO_UNIT_TESTING
#include <Arduino.h>
#include <avr/interrupt.h>
@@ -88,4 +91,5 @@ int main()
// int main(){
// return 0;
// }
// }
#endif // PIO_UNIT_TESTING
+1
View File
@@ -23,6 +23,7 @@ double PI_controller::update(double ref, double actual)
integral = new_integral;
}
return u;
// return 0.0;
}
void PI_controller::reset()