int move_carousel(uint8_t dir)
{
uint8_t act_car_pos, new_car_pos;
- ROBOT_LOCK(carousel);
+ ROBOT_LOCK(drives);
act_car_pos = robot.orte.drives.carousel_pos;
- ROBOT_UNLOCK(carousel);
+ ROBOT_UNLOCK(drives);
switch(dir) {
case LEFT:
if(act_car_pos==0)
default:
break;
}
- ROBOT_LOCK(carousel);
+ ROBOT_LOCK(drives);
robot.orte.drives.carousel_pos = new_car_pos;
- ROBOT_UNLOCK(carousel);
+ ROBOT_UNLOCK(drives);
return 0;
}