Drive Angle: Drive a Robot by Turning the Wheels [driveAngle()]
A robot moves by turning its wheels. The driveAngle block specifies the amount of angle (in degrees) for the wheels to turn, which then drives the robot:
Like with the driveDistance block, you can enter any integer value for the angle value in the driveAngle block. If the angle is positive, the wheels turn counter-clockwise, which drives the robot forwards. If the angle is negative, the wheels turn clockwise, which drives the robot backwards.
Example 1: Drive Wheels 360 Degrees
Drive the robot forward by rotating the wheels by 360 degrees, which represents one full wheel rotation. Click the More Info button to see how to calculate the distance it will travel.
Example 2: Drive Wheels 180 Degrees
Drive the robot forward by rotating the wheels by 180 degrees, which represents one-half wheel rotation. Click the More Info button to see how to calculate the distance it will travel.
Example 3: Drive Wheels 720 Degrees
Drive the robot forward by rotating the wheels by 720 degrees, which represents two full wheel rotations (because one full rotation is 360 degrees). Click the More Info button to see how to calculate the distance it will travel.
Piano
Grid Lines:
Tics Lines:
Widthpx
Hash Lines:
Widthpx
Labels:
Fontpx
Trace Lines:
Robot 1:
Widthpx
Robot 2:
Widthpx
Robot 3:
Widthpx
Robot 4:
Widthpx
Grid Size:
SML
Simple View:
MinView:
Coord: x-axisy-axis
Grid Lines: x-axisy-axis
Grid:
12x12 inches
24x24 inches
36x36 inches
72x72 inches
96x96 inches
192x192 inches
1x1 inches
2x2 inches
Fraction:
xy-Range:
Quad:
1 Quadrant
4 Quadrants
1&4 Quadrants
Units:
US Customary
Metric
Ruler:
Label:
1Linkbot
0
S
M
L
Initial Position (x, y):
(,) in
Initial Angle:
degrees
Current Position (x,y)
(0, 0) in
Current Angle:
0 degrees
Wheel Radius:
2Linkbot
0
S
M
L
Initial Position (x, y):
(,) in
Initial Angle:
degrees
Current Position (x,y)
(0, 4) in
Current Angle:
0 degrees
Wheel Radius:
3Linkbot
0
S
M
L
Initial Position (x, y):
(,) in
Initial Angle:
degrees
Current Position (x,y)
(0, 8) in
Current Angle:
0 degrees
Wheel Radius:
4Linkbot
0
S
M
L
Initial Position (x, y):
(,) in
Initial Angle:
degrees
Current Position (x,y)
(0, 12) in
Current Angle:
0 degrees
Wheel Radius:
Hardware
LArduino
Workspace
Load
Save
Ch
Ch Shell
Console
Lock
roboblocklyL387ex1.ch
Time
Pre-Board Workspace
Blocks
Workspace
Load
Save
Ch
Post-Board Workspace
Blocks
Workspace
Load
Save
Ch
varvar31101111221291.574503.12641051101100110010236812612MULTIPLY84MULTIPLY8.42Hi Sam\n Good day!variabletexttext\nvariable\n13comment2xyLeft click on gridxyLeft click on gridxyLeft click on grid30505correct3verticalvariableFALSEvariablevarvar2var13variable1FALSE3variablevar13var2var13variable1FALSE3variablevar13var2varFFFF00#999999#a52a2a2#00ffff0.700#ffffff0.7010#00ff000.5002#ffffff0.7004#00ff000.50.03x axistime (s)x-1010x5x1centertext4544891000490054544300804400890101002*x+11186231100286880121268000545315005453150054518000201200020120452700068-60-2626601,2,312380100012512612Dog568imageDogimageimage568image90imagehorizontalimage10.713OUTPUT13HIGH1330100013OUTPUT13HIGH1330A013100010003131000100031313100010001398985A09100019544240099091500999A0LOWOUTPUT0010230255590434904#00FFFF#00FFFF40.55555345090LadybugM10010HelloHello2HmmHmm2Hello100femaleen#00FFFF0.50.52colorshighlow21C3HalfC31200115904349034500.50.52colorshighlow21590434904#A52A2A#A52A2A40.55555345090LadybugM10010HelloHello2HmmHmm2Hello100femaleen#A52A2A0.50.52colorshighlow21C3HalfC31200115904349034500.50.52colorshighlow21590434904#FFA500#FFA50040.55555345090LadybugM10010HelloHello2HmmHmm2Hello100femaleen#FFA5000.50.52colorshighlow21C3HalfC31200115904349034500.50.52colorshighlow21590434904#000000#00000040.55555345090LadybugM10010HelloHello2HmmHmm2Hello100femaleen#0000000.50.52colorshighlow21C3HalfC31200115904349034500.50.52colorshighlow21varvar31101111221291.574503.12641051101100110010236812612MULTIPLY84MULTIPLY8.42Hi Sam\n Good day!variabletexttext\nvariable\n13comment2xyLeft click on gridxyLeft click on gridxyLeft click on grid30505correct3verticalvariableFALSEvariablevarvar2var13variable1FALSE3variablevar13var2var13variable1FALSE3variablevar13var2varFFFF00#999999#a52a2a2#00ffff0.700#ffffff0.7010#00ff000.5002#ffffff0.7004#00ff000.50.03x axistime (s)x-1010x5x1centertext4544891000490054544300804400890101002*x+11186231100286880121268000545315005453150054518000201200020120452700068-60-2626601,2,312380100012512612Dog568imageDogimageimage568image90imagehorizontalimage10.713OUTPUT13HIGH1330100013OUTPUT13HIGH1330A013100010003131000100031313100010001398985A09100019544240099091500999A0LOWOUTPUT001023025555111190904#00FFFF#00FFFF41C3Half#00FFFF113LadybugMHello100femaleen111135555111190904#A52A2A#A52A2A41C3Half#A52A2A113LadybugMHello100femaleen111135555111190904#FFA500#FFA50041C3Half#FFA500113LadybugMHello100femaleen111135555111190904#000000#00000041C3Half#000000113LadybugMHello100femaleen1111355varvar31101111221291.574503.12641051101100110010236812612MULTIPLY84MULTIPLY8.42Hi Sam\n Good day!variabletexttext\nvariable\n13comment2xyLeft click on gridxyLeft click on gridxyLeft click on grid30505correct3verticalvariableFALSEvariablevarvar2var13variable1FALSE3variablevar13var2var13variable1FALSE3variablevar13var2varFFFF00#999999#a52a2a2#00ffff0.700#ffffff0.7010#00ff000.5002#ffffff0.7004#00ff000.50.03x axistime (s)x-1010x5x1centertext4544891000490054544300804400890101002*x+1661812236600286880121268000545315005453150054518000201200020120452700068-60-2626601,2,312380100012512612Dog568imageDogimageimage568image90imagehorizontalimage10.713OUTPUT13HIGH1330100013OUTPUT13HIGH1330A013100010003131000100031313100010001398985A09100019544240099091500999A0LOWOUTPUT0010230255000909020909090909090909090909090000909020909090909090909090909090000909020909090909090909090909090000909020909090909090909090909090varvar31101111221291.574503.12641051101100110010236812612MULTIPLY84MULTIPLY8.42Hi Sam\n Good day!variabletexttext\nvariable\n13comment2xyLeft click on gridxyLeft click on gridxyLeft click on grid30505correct3verticalvariableFALSEvariablevarvar2var13variable1FALSE3variablevar13var2var13variable1FALSE3variablevar13var2varFFFF00#999999#a52a2a2#00ffff0.700#ffffff0.7010#00ff000.5002#ffffff0.7004#00ff000.50.03x axistime (s)x-1010x5x1centertext4544891000490054544300804400890101002*x+11186231100286880121268000545315005453150054518000201200020120452700068-60-2626601,2,312380100012512612Dog568imageDogimageimage568image90imagehorizontalimage10.713OUTPUT13HIGH1330100013OUTPUT13HIGH1330A013100010003131000100031313100010001398985A09100019544240099091500999A0LOWOUTPUT001023025513OUTPUT13HIGH1330100013OUTPUT13HIGH1330A013100010003131000100031313100010001398985A09100019544240099091500999A0LOWOUTPUT001023025513OUTPUT13HIGH1330100013OUTPUT13HIGH1330A013100010003131000100031313100010001398985A09100019544240099091500999A0LOWOUTPUT001023025513OUTPUT13HIGH1330100013OUTPUT13HIGH1330A013100010003131000100031313100010001398985A09100019544240099091500999A0LOWOUTPUT001023025513OUTPUT13HIGH1330100013OUTPUT13HIGH1330A013100010003131000100031313100010001398985A09100019544240099091500999A0LOWOUTPUT0010230255varvar31101111221291.574503.12641051101100110010236812612MULTIPLY84MULTIPLY8.42Hi Sam\n Good day!variabletexttext\nvariable\n13comment2FFFF00#999999#a52a2a2#00ffff0.700#ffffff0.7010#00ff000.5002#ffffff0.7004#00ff000.50.03x axistime (s)x-1010x5x1centertext4544891000490054544300804400890101002*x+11186231100286880121268000545315005453150054518000201200020120452700068-60-2626601,2,31238010001251212Dog568imageDogimageimage568image90imagehorizontalimage0.715LadybugM100#00FFFF90010LadybugM11x11x36x365x axistime (s)x-1010x5x1varvar31101111221291.574503.12641051101100110010236812612MULTIPLY84MULTIPLY8.42Hi Sam\n Good day!variabletexttext\nvariable\n13comment2xyLeft click on gridxyLeft click on gridxyLeft click on grid30505correct3verticalvariableFALSEvariablevarvar2var13variable1FALSE3variablevar13var2var13variable1FALSE3variablevar13var2varFFFF00#999999#a52a2a2#00ffff0.700#ffffff0.7010#00ff000.5002#ffffff0.7004#00ff000.50.03x axistime (s)x-1010x5x1centertext4544891000490054544300804400890101002*x+11186231100286880121268000545315005453150054518000201200020120452700068-60-2626601,2,312380100012512612Dog568imageDogimageimage568image90imagehorizontalimage0.715LadybugM100#00FFFF90010LadybugM11x11x36x365x axistime (s)x-1010360