Commits

Trammell Hudson committed 099529f

iterating works

  • Participants
  • Parent commits 7121758

Comments (0)

Files changed (1)

 
 
 int
-robot_test(
+robot_ik_test(
 	robot_t * const robot,
 	double x,
 	double y
 }
 
 
+int
+robot_test(
+	robot_t * const robot,
+	double x,
+	double y
+)
+{
+	int steps = 100;
+
+	for (int i = 0 ; i < steps ; i++)
+	{
+		const double r = x + i * (y - x) / steps;
+		robot_ik_test(robot, r, 0);
+		usleep(50000);
+	}
+
+	return 0;
+}
+
+
 
 int
 main(