Project

General

Profile

Revision 1140

it's slightly better

View differences:

branches/simulator/projects/simulator/simulator/core/motion.c
10 10
#define TIME 1 /*sec*/
11 11
#define ROBOT_WIDTH 131 /*mm*/
12 12

  
13
#define MOTOR_CONVERSION_FACTOR 10.0
13
#define MOTOR_CONVERSION_FACTOR 100.0
14 14

  
15 15
#define FUDGE 10 /* minimum rangefinder distance until collision */
16 16

  
......
71 71
	}
72 72
	else
73 73
	{
74
		radius = ROBOT_WIDTH * speed2 / (speed2 - speed1);
74
		radius = ROBOT_WIDTH * speed2 / (speed1 - speed2);
75 75
		t = speed2 / radius / MOTOR_CONVERSION_FACTOR;
76 76
	}
77 77

  

Also available in: Unified diff