**This is an old revision of the document!**

Drone

Provided by Drones.

Component name: drone.
Callbacks:

  • getStatusText():string
    Get the status text currently being displayed in the GUI.
  • setStatusText(value:string):string
    Set the status text to display in the GUI, returns new value.
  • move(dx:number, dy:number, dz:number)
    Change the target position by the specified offset.
  • getOffset():number
    Get the current distance to the target position.
  • getVelocity():number
    Get the current velocity in m/s.
  • getMaxVelocity():number
    Get the maximum velocity, in m/s.
  • getAcceleration():number
    Get the currently set acceleration.
  • setAcceleration(value:number):number
    Try to set the acceleration to the specified value and return the new acceleration.
  • getLightColor():number
    Gets the current color of the flap lights as an integer encoded RGB value (0xRRGGBB).
  • setLightColor(value:number):number
    Sets the color of the flap lights to the specified integer encoded RGB value (0xRRGGBB).

They also share most world interaction methods with robots, e.g. detect, suck, drop, drain, fill and so on. http://ocdoc.cil.li/api:robot TODO: Insert those here.