Project

General

Profile

Revision 636

Added by Greg Tress about 16 years ago

Added new move command to robot. Need to test.

View differences:

trunk/code/projects/colonet/robot/colonet_dragonfly/colonet_dragonfly.c
446 446
      break;
447 447
    case MOVE:
448 448
      new_movement_command_received = 1;
449

  
450
      sprintf(buf, "calling move with: %d, %d\n", args[0], args[1]);
449
      /* format for move: left direction, left velocity, right direction, right velocity */	  
450
      sprintf(buf, "calling motor1 set with: %d, %d\ncalling motor2 set with: %d %d\n", 
451
        args[0], args[1], args[2], args[3]);
451 452
      usb_puts(buf);
452
      move(args[0], args[1]);
453
	  motor1_set(args[0], args[1]);
454
	  motor2_set(args[2], args[3]);  
453 455
      break;
454

  
455 456
    case PRINTF:
456 457
      usb_puts((char*)pkt->data);
457 458
      break;

Also available in: Unified diff