Framkvæmdi test á hegðun PI_controller
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
@@ -23,6 +23,7 @@ double PI_controller::update(double ref, double actual)
|
||||
integral = new_integral;
|
||||
}
|
||||
return u;
|
||||
// return 0.0;
|
||||
}
|
||||
|
||||
void PI_controller::reset()
|
||||
|
||||
Reference in New Issue
Block a user