Skip to content
Josh edited this page Mar 9, 2015 · 6 revisions

Commandqueue Documentation -> I will add commands and the required argument syntax as I make them here - Josh

###Motor Commander

  • MOVE
    Required Arguments in string: Direction Orientation
    acceptable Direction arguments: NORTH SOUTH EAST WEST
    acceptable Orientation arguments: NORTH SOUTH EAST WEST
    example: CommandQueue::sendNewCommand(3, "MOVE", "NORTH EAST");

Calls move(direction, orientation) which moves the robot based on the direction and orientation passed to it.

###Navigation

  • CHANGEROUND
    Required Arguments in string: round
    acceptable Round arguments: 1 2 3
    example: CommandQueue::sendNewCommand(1, "CHANGEROUND", "2");

Calls changeround(round) which sets the round for loading the path or determining the behavior of the robot.

  • REPORTMOVE Required arguments in string: position direction Acceptable position arguments: integer 1-47 Acceptable direction argument: NORTH SOUTH EAST WEST (change to front, left, right, back?) example: `CommandQueue::sendNewCommand(1, "REPORTMOVE", "24 NORTH")

Calls change position(position) and addMove(direction) to update robot positional information.

Clone this wiki locally