Skip to content
Snippets Groups Projects
Verified Commit bd87e098 authored by Stauder, Lucas's avatar Stauder, Lucas
Browse files

formatted and moved to int

parent 56294811
No related branches found
No related tags found
No related merge requests found
#include "controller.h" #include "controller.h"
double controller(double w, double y,double maxControl){ int controller(int w, int y, int maxControl) { return 0; }
return 0;
}
#ifndef controller_H #ifndef controller_H
#define controller_H #define controller_H
double controller(double w, double y,double maxControl); int controller(int w, int y, int maxControl);
#endif // controller_H #endif // controller_H
...@@ -4,8 +4,8 @@ extern "C" { ...@@ -4,8 +4,8 @@ extern "C" {
} }
TEST_CASE("PI_Regler") { TEST_CASE("PI_Regler") {
REQUIRE(controller(8,0,500) == 16.0); REQUIRE(controller(8, 0, 500) == 16);
REQUIRE(controller(-2,0,500) == -4.0); REQUIRE(controller(-2, 0, 500) == -4);
} }
TEST_CASE("limits") { TEST_CASE("limits") {
......
#include <stdio.h> #include <stdio.h>
#include "controller.h" #include "controller.h"
int main() { int main() { return 0; }
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment