Guillaume Chauvon
/
Asservissment_robot2_v16_05
l
Diff: math_precalc.cpp
- Revision:
- 2:3066e614372f
- Parent:
- 0:38dbe2988e77
- Child:
- 4:eac6746544fb
diff -r 0d76bc4e1aea -r 3066e614372f math_precalc.cpp --- a/math_precalc.cpp Wed Apr 17 15:49:42 2019 +0000 +++ b/math_precalc.cpp Wed May 08 21:19:10 2019 +0000 @@ -85,4 +85,12 @@ return -1; } return 0; +} +float min(float f1, float f2){ + if (f1-f2>0){ + return f2; + } + else{ + return f1; + } } \ No newline at end of file