ver CAN

Revision:
13:ea34af94e90c
Parent:
12:3fa4f849d6f7
Child:
14:b1b58b74dd4c
diff -r 3fa4f849d6f7 -r ea34af94e90c ikarashiMDC.cpp
--- a/ikarashiMDC.cpp	Sat Nov 11 09:42:04 2017 +0900
+++ b/ikarashiMDC.cpp	Sat Nov 11 10:50:30 2017 +0000
@@ -16,8 +16,7 @@
 {
     uint8_t data[4],dataSpeed;
     //Limiter
-    const double cropped_speed = fmin(1.0,fmax(-1.0,speed);
-
+    const double cropped_speed = std::min(1.0,std::max(-1.0,speed));
     //dataspeed 0~253 neutaral 126
     dataSpeed = ((cropped_speed+1.0)/2.0)*253;
     //printf("%d\n",dataSpeed);