MDC3.0 rs-485 コントロールプログラム can も追加予定.... 詳細はwiki バグレポートは中田くんに,やさしく教えてください(煽り禁止)
Dependents: quadOmni_yanagi NHK2017_octopus ikarashiMDCmaster NHK2017_octopus2 ... more
Diff: ikarashiMDC.cpp
- Revision:
- 13:ea34af94e90c
- Parent:
- 12:3fa4f849d6f7
--- 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);