mobile robot control with artificial hormones

Dependencies:   Communication_Robot RTC-DS1307 iSerial mbed

Fork of Andante_v00 by potiwat ngamkajornwiwat

Revision:
5:aae71a94cb41
Parent:
4:42dc950d54f4
--- a/param.h	Mon Mar 02 05:53:20 2015 +0000
+++ b/param.h	Wed Jul 15 08:34:08 2015 +0000
@@ -1,25 +1,25 @@
 #ifndef PARAM_H
 #define PARAM_H
 //set frequancy unit in Hz
-#define F_UPDATE 50
-#define F_SAMPING 100
+#define F_UPDATE 1.0f
+#define F_SAMPING 100.0f
 
 //step TIMER 
-#define TIMER_UPDATE 1/F_UPDATE
-#define TIMER_SAMPING 1/F_SAMPING
+#define TIMER_UPDATE 1.0f/F_UPDATE
+#define TIMER_SAMPING 1.0f/F_SAMPING
 
 //range servo unit in microsecond(us)
-#define FRONT_MIN 500
+#define FRONT_MIN 1000
 #define FRONT_CENTER 1500
-#define FRONT_MAX 2500
+#define FRONT_MAX 2000
 
-#define REAR_MIN 500
+#define REAR_MIN 1000
 #define REAR_CENTER 1500
-#define REAR_MAX 2500
+#define REAR_MAX 2000
 
-#define RC_SPEED_MIN 500
-#define RC_SPEED_CENTER 1500
-#define RC_SPEED_MAX 2500
+#define RC_SPEED_MIN 590
+#define RC_SPEED_CENTER 1440
+#define RC_SPEED_MAX 2470
 
 //counter not receive from station
 #define TIMEOUT_RESPONE_COMMAND 5