Reference.RobotDrawCompass History

Hide minor edits - Show changes to markup

May 17, 2013, at 06:09 PM by David Cuartielles -
Changed lines 7-8 from:

A helper function for displaying the compass on LCD. Relies on Robot.beginLCD(). drawCompass() uses debugPrint(), which can't be used in the same sketch.

to:

A helper function for displaying the compass on the TFT. Relies on Robot.beginTFT(). drawCompass() uses debugPrint(), which can't be used in the same sketch.

Changed line 31 from:
  Robot.beginLCD();//Initialize the LCD module
to:
  Robot.beginTFT();//Initialize the TFT module
Changed line 42 from:
to:
May 15, 2013, at 10:07 AM by Scott Fitzgerald -
Changed lines 7-8 from:

A helper function for displaying the compass on LCD. For it to work you need to call Robot.beginLCD()

to:

A helper function for displaying the compass on LCD. Relies on Robot.beginLCD(). drawCompass() uses debugPrint(), which can't be used in the same sketch.

Mind where you draw text and other graphic elements when using drawCompass() so that you don;t overlap elements.

Changed lines 17-18 from:

degrees: an int value between 0 to 359. Typically it's determined by Robot.compassRead().

to:

degrees: int between 0 and 359. Typically it's determined by Robot.compassRead().

Deleted lines 39-43:

Note

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.

Changed line 44 from:
to:
May 13, 2013, at 11:30 PM by Scott Fitzgerald -
Changed lines 3-4 from:

drawCompass(degrees)

to:

drawCompass()

May 09, 2013, at 06:15 PM by Xun Yang -
Added lines 41-42:

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

May 09, 2013, at 06:14 PM by Xun Yang -
Added lines 1-45:

Share