return 1;
}
-/* if (time_get_s() > 39) */
-/* DEBUG(E_USER_STRAT, "i,j = (%d %d), count=%d", i, j, corn_count_neigh(i, j)); */
+/* if (time_get_s() > 32) */
+/* DEBUG(E_USER_STRAT, "i,j = (%d %d), count=%d", i, j, */
+/* corn_count_neigh(i, j)); */
if (corn_count_neigh(i, j) == 2)
return 1;
+ /* we are on intersection, let's go slow... but as we enter in
+ * the curve-part of the clitoid, we should not go there */
if (wp_belongs_to_line(i, j, num2, dir2))
return 0;
+ /* we can ge fast if it's a 60deg angle and if we checked the
+ * current point */
+ if (is_60deg(dir1, dir2))
+ return 0;
+
/* get next point */
if (wp_get_neigh(i, j, &i2, &j2, dir1) < 0) {
DEBUG(E_USER_STRAT, "%s(): cannot get neigh1",
return 1;
}
- /* if (i2, j2) belongs to next line, check corn in opposition */
+ /* if (i2, j2) belongs to next line, check corns */
if (wp_belongs_to_line(i2, j2, num2, dir2)) {
if (corn_count_neigh(i2, j2) > 0)
return 1;
return 1;
}
- /* if (i3, j3) belongs to next line, check corn in opposition */
+ /* if (i3, j3) belongs to next line, check corns */
if (wp_belongs_to_line(i3, j3, num2, dir2)) {
if (corn_count_neigh(i2, j2) > 0 ||
corn_count_neigh(i3, j3) > 0)
clitoid_slow = clitoid_select_speed(num1, dir1, num2, dir2);
if (clitoid_slow) {
- DEBUG(E_USER_STRAT, "slow clito\n");
+ DEBUG(E_USER_STRAT, "slow clito");
strat_set_speed(SPEED_CLITOID_SLOW, SPEED_ANGLE_SLOW);
}
else {
- DEBUG(E_USER_STRAT, "fast clito\n");
+ DEBUG(E_USER_STRAT, "fast clito");
strat_set_speed(SPEED_CLITOID_FAST, SPEED_ANGLE_SLOW);
}