* distance. */
uint8_t trajectory_finished(struct trajectory *traj)
{
- return trajectory_angle_finished(traj) &&
+ uint8_t flags, ret;
+ IRQ_LOCK(flags);
+ ret = trajectory_angle_finished(traj) &&
trajectory_distance_finished(traj);
+ IRQ_UNLOCK(flags);
+ return ret;
}
/** return true if traj is nearly finished */
uint8_t err;
strat_set_acc(ACC_DIST, ACC_ANGLE);
-#ifdef HOST_VERSION
- strat_set_speed(600, SPEED_ANGLE_FAST);
-#else
- /* 250 */
- strat_set_speed(250, SPEED_ANGLE_FAST);
-#endif
-
strat_set_speed(600, 60); /* OK */
//strat_set_speed(250, 28); /* OK */
strat_eject();
while (1) {
- strat_set_speed(250, SPEED_ANGLE_FAST);
+ strat_set_speed(250, SPEED_ANGLE_SLOW);
strat_harvest_circuit();
strat_eject();
}