Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local lib = {}
- local status = ""
- local accel = 0
- function lib.getStatusText()
- return status
- end
- function lib.setStatusText(text)
- status = text
- print("[Drone] New status: ", status)
- end
- function lib.move(x, y, z)
- print("[Drone] Moved to: ", x, y, z)
- end
- function lib.getOffset()
- return 0
- end
- function lib.getVelocity()
- return 1
- end
- function lib.getMaxVelocity()
- return 2
- end
- function lib.getAcceleration()
- return accel
- end
- function lib.setAcceleration(value)
- accel = value
- print("[Drone] New acceleration: ", accel)
- end
- return lib
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement