Skip to content

Commit

Permalink
Adjustments of the release
Browse files Browse the repository at this point in the history
  • Loading branch information
hderambure committed Jan 23, 2017
1 parent 05b4637 commit a468c55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/first_runner.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,11 @@ int beginner_large_stadium(state *s, mainpos *p)
getchar();

//Release ball
usleep(100000);
sleep(5);
log_this(s, "\n[%s:beginner_large_stadium] Releasing the ball\n",__FILE__);
release(s, RELEASING_SPEED);
send_message(s, MSG_BALL, s->ally);
sleep(4);

//Go back a little
log_this(s, "\n[%s:beginner_large_stadium] Going back a little\n", __FILE__);
Expand Down
2 changes: 1 addition & 1 deletion src/motors.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ int release(state *s, int speed)
log_this(s, "[%s:release] Releasing failed already in release position\n", __FILE__);
return -1;
}
ev3_set_ramp_up_sp(s->grabmotor, 500);
ev3_set_speed_sp(s->grabmotor, speed);
ev3_set_ramp_up_sp(s->grabmotor, 7000);
ev3_set_position_sp(s->grabmotor, -7);
ev3_command_motor_by_name(s->grabmotor, "run-to-abs-pos");
while (ev3_motor_state(s->grabmotor) & MOTOR_RUNNING);
Expand Down

0 comments on commit a468c55

Please sign in to comment.