Biopsy

calibrate

May 16th, 2012
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. os.loadAPI("aware")
  2. os.loadAPI("utils")
  3.  
  4. local tArgs = { ... }
  5. if #tArgs ~= 4 then
  6.   utils.termwrite("usage: 'calibrate x y z o'")
  7. else
  8.   local position = {tonumber(tArgs[1]),tonumber(tArgs[2]),tonumber(tArgs[3]),tonumber(tArgs[4])}
  9.   aware.setposition("current", position)
  10.   os.reboot()
  11. end
Advertisement
Add Comment
Please, Sign In to add comment