NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

drivetrain.set_drive_velocity(100, PERCENT)
drivetrain.set_turn_velocity(100, PERCENT)
# The drive and turn velocity is set to 100%

drivetrain.drive_for(REVERSE, 200, MM)

pen.move(DOWN)
pen.set_pen_color(GREEN)
# The pen is moved down and its color is set to green

# The robot will start drawing the bedroom (green rectangle)
drivetrain.drive_for(FORWARD, 250, MM)
# The robot will drive forward 250mm
drivetrain.turn_for(RIGHT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 450, MM)
# The robot will turn 90º to the right then drive forward 450mm
drivetrain.turn_for(RIGHT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 250, MM)
# The robot will turn 90º to the right then drive forward 250mm
drivetrain.turn_for(RIGHT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 450, MM)
#The robot will turn 90º again to the right then drive forward 450mm

pen.move(UP)
#The pen is moved up

drivetrain.drive_for(REVERSE, 450, MM)
drivetrain.turn_for(RIGHT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 350, MM)
# The robot moves on its way to drawing the next drawing

pen.move(DOWN)
pen.set_pen_color(BLUE)
#The pen is moved down and its color is set to blue

# The robot will start drawing the living room (blue rectangle)
drivetrain.drive_for(FORWARD, 200, MM)
# The robot will drive forward 200mm
drivetrain.turn_for(LEFT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 200, MM)
drivetrain.turn_for(LEFT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 200, MM)
drivetrain.turn_for(LEFT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 200, MM)
# The robot will turn 90º to the left then drive forward 200mm 3 times

drivetrain.turn_for(LEFT, 90, DEGREES)
pen.move(UP)
# The pen is moved up
drivetrain.drive_for(FORWARD, 300, MM)
# The robot will drive forward 300mm
# The robot moves on its way to drawing the next drawing

pen.move(DOWN)
pen.set_pen_color(RED)
# The pen is moved down and its color is set to red

# The robot will start drawing the comfort room (red pentagon)
drivetrain.turn_for(LEFT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 190, MM)
# The robot will turn 90º to the left then drive forward 200mm
drivetrain.turn_to_heading(345, DEGREES)
drivetrain.drive_for(FORWARD, 150, MM)
# The robot will turn to heading 345º then drive forward 150mm
drivetrain.turn_to_heading(55, DEGREES)
drivetrain.drive_for(FORWARD, 150, MM)
# The robot will turn to heading 55º then drive forward 150mm
drivetrain.turn_to_heading(125, DEGREES)
drivetrain.drive_for(FORWARD, 150, MM)
# The robot will turn to heading 125º then drive forward 150mm
drivetrain.turn_to_heading(200, DEGREES)
drivetrain.drive_for(FORWARD, 150, MM)
# The robot will turn to heading 200º then drive forward 150mm

pen.move(UP)
# The pen is moved up

drivetrain.turn_to_heading(180, DEGREES)
drivetrain.drive_for(FORWARD, 650, MM)
drivetrain.turn_for(RIGHT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 600, MM)
# The robot moves on its way to drawing the next drawing

pen.move(DOWN)
pen.set_pen_color(BLACK)
# The pen is moved down and its color is set to black

# The robot will start drawing the dining area (black heptagon)
drivetrain.drive_for(FORWARD, 150, MM)
drivetrain.turn_to_heading(315, DEGREES)
# The robot will drive forward 150mm then turn to heading 315º
drivetrain.drive_for(FORWARD, 150, MM)
drivetrain.turn_to_heading(45, DEGREES)
#The robot will drive forward 150mm then turn to heading 45º
drivetrain.drive_for(FORWARD, 150, MM)
drivetrain.turn_to_heading(90, DEGREES)
#The robot will drive forward 150mm then turn to heading 90º
drivetrain.drive_for(FORWARD, 150, MM)
drivetrain.turn_to_heading(135, DEGREES)
#The robot will drive forward 150mm then turn to heading 135º
drivetrain.drive_for(FORWARD, 150, MM)
drivetrain.turn_to_heading(225, DEGREES)
#The robot will drive forward 150mm then turn to heading 225º
drivetrain.drive_for(FORWARD, 150, MM)
#The robot will drive forward 150mm

pen.move(UP)
# The pen is moved up
drivetrain.turn_to_heading(270, DEGREES)
drivetrain.drive_for(FORWARD, 300, MM)
drivetrain.turn_for(RIGHT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 300, MM)
drivetrain.turn_for(RIGHT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 50, MM)
# The robot moves on its way to drawing the next drawing

pen.move(DOWN)
pen.set_pen_color(GREEN)
# The pen is moved down and its color is set to green

# The robot will start drawing the kitchen (green triangle)
drivetrain.drive_for(FORWARD, 300, MM)
drivetrain.turn_to_heading(325, DEGREES)
# The robot will drive forward 300mm then turn to heading 325º
drivetrain.drive_for(FORWARD, 250, MM)
drivetrain.turn_to_heading(215, DEGREES)
# The robot will drive forward 250mm then turn to heading 215º
drivetrain.drive_for(FORWARD, 250, MM)
# The robot will drive forward 250mm

pen.move(UP)
# The pen is moved up

drivetrain.turn_to_heading(270, DEGREES)
drivetrain.drive_for(FORWARD, 50, MM)
drivetrain.turn_for(RIGHT, 90, DEGREES)
# The robot moves on its way to drawing the next drawing

pen.move(DOWN)
pen.set_pen_color(BLACK)
# The pen is moved down and its color is set to black

# The robot will start drawing the outline of the floor plan
drivetrain.drive_for(REVERSE, 400, MM)
drivetrain.drive_for(FORWARD, 700, MM)
# The robot will drive reverse 400mm then forward 700mm
drivetrain.turn_for(RIGHT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 400, MM)
# The robot will turn 90º to the right then drive forward 400mm
drivetrain.turn_for(RIGHT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 700, MM)
# The robot will turn 90º to the right then drive forward 700mm
drivetrain.turn_for(RIGHT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 400, MM)
# The robot will turn 90º to the right then drive forward 400mm

drivetrain.drive_for(REVERSE, 1000, MM)
drivetrain.turn_for(RIGHT, 90, DEGREES)
# The robot will drive reverse 1000 mm then turn 90º to the right

drivetrain.drive_for(FORWARD, 400, MM)
drivetrain.turn_for(LEFT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 600, MM)
# The robot will drive forward 400mm then turn left 90º then drive forward 600mm

drivetrain.drive_for(REVERSE, 250, MM)
drivetrain.turn_for(RIGHT, 90, DEGREES)
# The robot will drive reverse 250 mm then turn 90º to the right
drivetrain.drive_for(FORWARD, 300, MM)
drivetrain.turn_for(RIGHT, 90, DEGREES)
# The robot will drive forward 400mm then turn left 90º
drivetrain.drive_for(FORWARD, 350, MM)
drivetrain.turn_for(RIGHT, 90, DEGREES)
# The robot will drive forward 350mm then turn right 90º
drivetrain.drive_for(FORWARD, 350, MM)
drivetrain.drive_for(REVERSE, 650, MM)
# The robot will drive forward 350 mm then reverse 650mm
drivetrain.turn_for(RIGHT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 350, MM)
# The robot will turn 90º to the right then drive forward 350mm
drivetrain.turn_for(LEFT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 350, MM)
# The robot will turn 90º to the left then drive forward 350mm

pen.move(UP)
# The pen is moved up

drivetrain.drive_for(REVERSE, 450, MM)
stop_project()
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.