Reference.RobotWaitContinue History

Hide minor edits - Show changes to markup

May 15, 2013, at 09:28 AM by Scott Fitzgerald -
Changed lines 3-4 from:

waitContinue(key)

to:

waitContinue()

May 15, 2013, at 09:28 AM by Scott Fitzgerald -
Changed lines 10-12 from:

Robot.waitContinue(); Robot.waitContinue(key);

to:

Robot.waitContinue()
Robot.waitContinue(key)

May 15, 2013, at 09:28 AM by Scott Fitzgerald -
Changed lines 7-8 from:

A helper function for pausing the program and wait for a key on D-pad to be pressed. Once you press the key, the program continues.

to:

Pauses the current program and waits for a key press from one of the 5 momentary buttons. Once you press the key, the program continues.

Changed line 10 from:
to:

Robot.waitContinue();

Changed lines 15-22 from:

key: the button on D-pad that'll continue the program. The default value is BUTTON_MIDDLE. Potential values are:

BUTTON_LEFT
BUTTON_RIGHT
BUTTON_MIDDLE
BUTTON_UP
BUTTON_DOWN

to:

key: the momentary switch to listen for. The default value is BUTTON_MIDDLE. Valid choices are

  • BUTTON_LEFT
  • BUTTON_RIGHT
  • BUTTON_MIDDLE
  • BUTTON_UP
  • BUTTON_DOWN
May 09, 2013, at 06:26 PM by Xun Yang -
Changed lines 49-51 from:
to:
May 09, 2013, at 06:24 PM by Xun Yang -
Changed lines 15-16 from:

key: the button on D-pad that'll continue the program. Potential values are:

to:

key: the button on D-pad that'll continue the program. The default value is BUTTON_MIDDLE. Potential values are:

Deleted lines 30-31:

int compassValue;

Changed line 33 from:
  Robot.beginLCD();//Initialize the LCD module
to:
  Robot.waitContinue();//stop the robot, and wait for the middle button to be pressed
Changed lines 37-38 from:
  compassValue=Robot.compassRead();
  Robot.drawCompass(compassValue);//draw the compass
to:
  Robot.motorsWrite(255,255);
  delay(2000);
  Robot.motorsWrite(0,0);
  delay(2000);
Changed lines 45-48 from:

It uses Robot.debugPrint() for displaying the compass value. So you can't use debugPrint() in other part of your sketch.

Drawing other stuff on the LCD may overlap with the compass.

to:

This will not stop sound playing or the millis() function.

Changed line 51 from:
to:
May 09, 2013, at 06:18 PM by Xun Yang -
Added lines 1-52:

Share