Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This script will save the starting location of the turtle using the gps.locate() function
- -- Get the starting location
- startingLocation = gps.locate()
- -- Extract the X, Y, and Z coordinates from the starting location
- startingX = startingLocation.x
- startingY = startingLocation.y
- startingZ = startingLocation.z
- -- Log the starting location
- print("Starting location: (X=" .. startingX .. ", Y=" .. startingY .. ", Z=" .. startingZ .. ")")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement